Double tap to close switches, an adventure - part 1

Thought it would be pretty easy to setup but perhaps not… Or I am of course doing something stupid.

Trying to get the following automation to work:

I have a MQTT device called “tvrum_belysning_molnet” (a lightswitch)
with the entity_id: “light.tvrum_belysning_molnet”

I want to turn off 3 zigbee switches at the same time with a double tap:

Device_ids:
“tvrum_julbelysning_fönster_1”, (its Ikea zigbee smart plug)
“tvrum_julbelysning_fönster_2” (its Ikea zigbee smart plug)
“tvrum_julbelysning_fönster_3”, (its Ikea zigbee smart plug)

and corresponding entity ID:s (switch.tvrum_julbelysning_fonster_1 etc)

I tried to use this blueprint - 🔁 Multi Click Button - Make any button multi-clickable

Because those are only working with switches and button, I tried to change the entity from light to switch. That initself is working. It shows up as a switch and can be turned on/off.

But I can´t get the blueprint to work. I get timeout error. I tried with other buttons but nope.

Is there any other way to get this working?

Thanks in advance! :slight_smile:

That’s my blueprint. Could you post your setup and traces?

Thanks for reaching out @AntonH !

This is the template I did for switching from light to switch:

This is the setup. When I try to run the specific light within blueprint it works.

The error code. I have tried different timeouts, also lights off or on. same thing.

The blueprint is timing out, which means it’s waiting for a consecutive ‘click’ but not receiving it in time.
In essence: you’re not clicking fast enough.

Try setting the Time between clicks to 1 second and adjust up or down from there.

Thanks I tried up to 1sec before. Now I even tried 2.3 sec and same “timeout error”, but clearly i pressed the button two times very fast.

The error that you’re getting is due to the timer starting and listening to the ‘clicks’, but timing out.

I’m starting to think that it’s not working because every state change of the switch is counted as a ‘click’. So when you click your switch twice, it’s actually turning ‘on’ and ‘off’ twice, so 4 counts in total.
Could you try setting the blueprint to 3 or 4?

Tried that too but nope. I am starting to think, maybe it´s the integration that is perhaps setup in some other way, not triggering it correctly?

Once again, I have via the helper added so that the light is a switch (too) and when I press that in the UI, it seems to work correctly (ie it turn off and on)

The light button is from this: GitHub - thomasloven/hass-plejd: 🔹 Plejd BLE integration for Home Assistant