1
0
ansible-home-assistant/roles/automations/files/rack.yaml

31 lines
691 B
YAML
Raw Permalink Normal View History

- id: rack_printer_button
2023-01-17 01:13:19 +00:00
alias: '[Rack] Printer toggle button'
trigger:
- device_id: 0c23a8e92f43f628e584dc1805c6915e
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- service: switch.toggle
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