I have a group of covers (all my house shutters). I want to create an automation that when clicking two times the momentary up or down button on the physical switch it goes 100% up or down, but I don’t want to create an automation for each shutter. Is there anyway to create a global automation that will detect which device is being double pressed and applies the action to THAT specific device only?
Yes
what is the “physical switch” is a zigbee thing ???
does HA see the double click (clicking two times) ???
what have you tried so far ???
if the “physical switch” is the same name as the cover
then you can look use the “trigger.to_state.attributes.entity_id”
look at this
should start pointing you down the path
It’s just a regular shutter switch connected to a Shelly 2.5
It sees a long click, it fits:
I just don’t want to do this for each and every single (15+) shutters I have in my house. I would like to do an automation that on any double (long in this case) click detects which is the switch and the action acts on that device.
You should create a blueprint Using Automation Blueprints - Home Assistant that way you still need to setup individual automations but sense it’s based on the blueprint it’s just a parametrisation.