Add printer on/off button
This commit is contained in:
parent
d488b02331
commit
feb247749b
1 changed files with 13 additions and 0 deletions
13
configuration/automations/rack.yaml
Normal file
13
configuration/automations/rack.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
- id: rack-printer-button
|
||||||
|
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
|
Loading…
Reference in a new issue