Moes/Tuya TS0044 - event entity blueprint
I made this blueprint for the Moes/Tuya TS0044 4-button scene switch.
There is already a TS0044 blueprint in this forum by @DJF3, so this is not meant to replace it. The difference is that this one uses the Home Assistant event entity exposed by Zigbee2MQTT.
With my TS0044, the event entity looks like this:
event_type: single
button: '1'
and for example:
event_type: double
button: '1'
The blueprint gives you a separate action for each button/action combination:
- 1–4: single
- 1–4: double
- 1–4: hold
Why I made it
After updating to Zigbee2MQTT 2.14.2, my existing blueprint stopped working.
The event data I was receiving had changed from the combined form I was expecting (1_single, 1_double, etc.) to separate button and event_type attributes.
I changed the blueprint to handle this new format and kept support for the previous format as well.
Current version: 1.1
If anyone else is using a TS0044 this way, I’d be interested to know if your event attributes look the same.