From feb247749b4d1e2292eb0d826b3fb1b63b21a5ba Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 17 Jan 2023 02:13:19 +0100 Subject: [PATCH] Add printer on/off button --- configuration/automations/rack.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 configuration/automations/rack.yaml diff --git a/configuration/automations/rack.yaml b/configuration/automations/rack.yaml new file mode 100644 index 0000000..02a158d --- /dev/null +++ b/configuration/automations/rack.yaml @@ -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