- id: office_computer_auto_off alias: '[Office] Turning computer off' mode: single trigger: - platform: numeric_state entity_id: sensor.computer_outlet_electrical_measurement for: minutes: 15 below: 50 action: - service: switch.turn_off target: entity_id: switch.computer_outlet