From bec8e28bea58ee6d748ac7af6b80badafdd32d1e Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 11 Jan 2022 21:29:17 +0100 Subject: [PATCH] Added automation for xiamoi button --- automations/zigbee_buttons.yaml.disabled | 59 ++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 automations/zigbee_buttons.yaml.disabled diff --git a/automations/zigbee_buttons.yaml.disabled b/automations/zigbee_buttons.yaml.disabled new file mode 100644 index 00000000..ceec9c07 --- /dev/null +++ b/automations/zigbee_buttons.yaml.disabled @@ -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 -- 2.47.3