Hello people. I’m struggling to do an automation with double click on the switch, I have tried it in several ways but without success. Below is what I did. Would anyone have a tip or suggestion?
- alias: double click
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.wireless_touch_switch
click_type: double
action:
service: switch.toggle
entity_id: switch.outside.lamp