Auto turn computer off
This commit is contained in:
parent
6c11e307c0
commit
f6fdc3a677
2 changed files with 12 additions and 14 deletions
|
@ -1,14 +0,0 @@
|
||||||
- id: computer_off
|
|
||||||
alias: '[Computer Cave] Turning computer off automation'
|
|
||||||
description: ''
|
|
||||||
trigger:
|
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.hulk_ping
|
|
||||||
to: 'off'
|
|
||||||
for:
|
|
||||||
minutes: 5
|
|
||||||
action:
|
|
||||||
- service: light.turn_off
|
|
||||||
entity_id:
|
|
||||||
- light.office
|
|
||||||
mode: single
|
|
12
configuration/automations/office-computer-off.yaml
Normal file
12
configuration/automations/office-computer-off.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
- 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
|
Loading…
Add table
Reference in a new issue