2023-06-12 21:56:22 +00:00
|
|
|
- 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
|
2023-08-29 21:56:28 +00:00
|
|
|
|
|
|
|
- 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
|