Add automation to recover rack outlet turning itself off
This commit is contained in:
parent
64d65c9158
commit
bbad2284b3
@ -11,3 +11,20 @@
|
||||
data: {}
|
||||
target:
|
||||
entity_id: switch.printer_switch
|
||||
|
||||
- id: rack_recover_turning_off
|
||||
alias: "[Rack] Recover turning off"
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- switch.rack_outlet_switch
|
||||
to: "off"
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 30
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.rack_outlet_switch
|
||||
|
Loading…
Reference in New Issue
Block a user