Hi
I’m new in HA, and I need some help
I’ve got xiaomi gatewy, I’ve added a switch, and I’ve added an automation, which after double click turn on my test switch.
- alias: Double Click - Turn On
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d0001d8eb26
click_type: double
action:
service: switch.turn_on
data:
entity_id: switch.espurna_test
and it works. But I would like to add a line to turn off this switch 30 sek after turning on, and I don’t know how
Regards
WOJ