This blueprint has been working flawlessly with multiple devices for a few weeks now!
Thank you so much!
I’ve used it with:
Zemismart 4-gang Scene Switch

Zemismart 2-gang Switch

Switches similar to the first one in 2-gang and 3-gang

(These ones are branded “MOES”.)
Obviously, with 2-gang and 3-gang, you need to ignore the blueprint’s inputs for buttons 3 and/or 4.
There’s however one more switch that this blueprint didn’t accommodate as-is, and it is the 1-gang scene switch:

Contrary to the others, this switch does not send payloads prefixed with the button’s number (eg 1_single
, 2_double
, etc). Payloads are simply single
, double
and hold
. All I had to do was to add the following lines to the end of the blueprint for it to work
- conditions:
- "{{ command == 'single' }}"
sequence: !input "button_one_short_press"
- conditions:
- "{{ command == 'double' }}"
sequence: !input "button_one_double_press"
- conditions:
- "{{ command == 'hold' }}"
sequence: !input "button_one_long_press"
In case you accept PRs… Support 1-gang switch by davidstosik · Pull Request #1 · AramidX/ha-blueprint · GitHub