1
0
ansible-home-assistant/configuration/automations/office-computer-off.yaml

13 lines
319 B
YAML

- 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
action:
- service: switch.turn_off
target:
entity_id: switch.computer_outlet