]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added automation for xiamoi button
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 11 Jan 2022 20:29:17 +0000 (21:29 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 21 Feb 2022 20:53:25 +0000 (21:53 +0100)
automations/zigbee_buttons.yaml.disabled [new file with mode: 0644]

diff --git a/automations/zigbee_buttons.yaml.disabled b/automations/zigbee_buttons.yaml.disabled
new file mode 100644 (file)
index 0000000..ceec9c0
--- /dev/null
@@ -0,0 +1,59 @@
+######################################################################
+# Zigbee Buttons: Wireless Switch - Single Click
+######################################################################
+- alias: wireless_switch_single
+  trigger:
+  - domain: mqtt
+    platform: device
+    device_id: 1862406b0bce11ebafd827a04c0fe3f3
+    discovery_id: 0x00158d0004081917 action_single
+    type: action
+    subtype: action_single
+  action:
+    - service: light.toggle
+      entity_id: light.luce_corridoio
+
+######################################################################
+# Zigbee Buttons: Wireless Switch - Double Click
+######################################################################
+- alias: wireless_switch_double
+  trigger:
+  - domain: mqtt
+    platform: device
+    device_id: 1862406b0bce11ebafd827a04c0fe3f3
+    discovery_id: 0x00158d0004081917 action_double
+    type: action
+    subtype: action_double
+  action:
+    - service: light.toggle
+      entity_id: light.luce_sala
+
+######################################################################
+# Zigbee Buttons: Wireless Switch - Triple Click
+######################################################################
+- alias: wireless_switch_triple
+  trigger:
+  - domain: mqtt
+    platform: device
+    device_id: 1862406b0bce11ebafd827a04c0fe3f3
+    discovery_id: 0x00158d0004081917 action_triple
+    type: action
+    subtype: action_triple
+  action:
+    - service: light.toggle
+      entity_id: light.luce_studio
+
+######################################################################
+# Zigbee Buttons: Wireless Switch - Long Click
+######################################################################
+- alias: wireless_switch_long
+  trigger:
+  - domain: mqtt
+    platform: device
+    device_id: 1862406b0bce11ebafd827a04c0fe3f3
+    discovery_id: 0x00158d0004081917 click_long
+    type: action
+    subtype: click_long
+  action:
+    - service: light.toggle
+      entity_id: light.luci_casa