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

14 lines
335 B
YAML
Raw Permalink Normal View History

2024-04-22 17:34:44 +00:00
- 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
2024-07-31 18:20:30 +00:00
below: 50
2024-04-22 17:34:44 +00:00
action:
- service: switch.turn_off
target:
entity_id: switch.computer_outlet