From 4fe223e922b6740e1cb13a18bdfdb374adc2763f Mon Sep 17 00:00:00 2001 From: bkcberry Date: Sat, 20 Jan 2018 13:56:17 -0600 Subject: [PATCH] Adds Xiaomi double button click example (#4468) * added example for smart button double click * added example for smart button double click --- source/_components/xiaomi_aqara.markdown | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/_components/xiaomi_aqara.markdown b/source/_components/xiaomi_aqara.markdown index 2b142c434c4..c5cdbcc7885 100644 --- a/source/_components/xiaomi_aqara.markdown +++ b/source/_components/xiaomi_aqara.markdown @@ -222,6 +222,25 @@ This example plays the sound of a dog barking when the button is held down and s gw_mac: xxxxxxxxxxxx ``` +### {% linkable_title Double Click on Smart Button %} + +This example toggles the living room lamp on a double click of the button. + +```yaml +- alias: Double Click to toggle living room lamp + trigger: + platform: event + event_type: click + event_data: + entity_id: binary_sensor.switch_158d000xxxxxc2 + click_type: double + action: + service: light.toggle + data: + entity_id: light.living_room_lamp +``` + + ## {% linkable_title Troubleshooting %} ### {% linkable_title Initial setup problem %}