Zigbee2MQTT - PTM216Z

Mainly based on the hard work of @vandalon

:warning: Even if they are quite close, this blueprint works with PTM216Z only. :warning:

A working version for the PTM215Z/ZE can be found here.

In order to get full functionality, a text helper must be created and the “elapsed” function must be enabled in Zigbee2MQTT as well. The helper is mainly used to create a long press action.

This blueprint works on both Z2M version 1.x or 2.x.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Direct link to github

UPDATE

2024.10 :
The blueprint has been updated and there is no need anymore to use the elapsed function.
The latest syntax has been used which implies that Homeassistant must run version 2024.10.x minimum.

Thank you very much for the blueprint. What is the required length for the text input helper?

The helper is just here to store the last command. It is used for the long press action as the PTM216Z send only release as a command without specifying the number pressed (release_1 like the PTM215Z/ZE). I would keep the proposed values.

I am currently working on a version where this helper is not required. You would need the event option to be set in Z2M