Mainly based on the hard work of @vandalon and @alexsaas who was my beta tester…
Choose carefully the version according to your needs
A new version for the PTM21xZ/ZE family is available here.
Home Assistant must run version 2024.10.x minimum in order to use those blueprints.
Tested on Z2M versions 1.x and 2.x.
UPDATE
2025.04:
A new version is now available HERE. Any PTM21xZ/ZE is supported as well as the multiple controller in the blueprint.
HOW TO UPGRADE
Import the new blueprint
Open your automation based on the older version
2.1 Edit in YAML PTM215Z/ZE
2.2.1. Update line 4 from path: path: Chris/PTM_215Z_ZE.yaml to path: path: Chris/PTM_21xZ_ZE.yaml PTM216Z
2.2.2. Update line 4 from path: path: Chris/PTM_216Z.yaml to path: path: Chris/PTM_21xZ_ZE.yaml
Hello
I am following your blueprint for a while on github. (zigbee2mqtt v.2 trigger)
i would like to use your bluepring, but repeated dimming with hold is not possible.
is there a way to implement repeat on hold in your blueprint? (at the moment the dimming funktion is only triggered once.
Hello, It should not be so complicated to modify the blueprint. It would be a complete re-write of the code unfortunately. I am using mode: single . This is why your automation is not repeated.
May I suggest, as you are dimming a light via Zigbee2mqtt, to use the brightness_move command. It would be like:
There is no disadvantage to have the elapsed option turned on. It is used to measure the time between two commands. I have not found an other way, for the moment, to measure easily the time between two mqtt topic.
If you do not want to use the elapsed option, you may try this blueprint based on the experimental events. The main problem with Z2M events is there might be some breaking changes in the incoming future as it is not yet completely implemented.
I am personally going to stick on mqtt as it will not change that much.
Hi, I have the problem that the press action is always executed, even after holding (using v2).
This is not a problem when switching on/dimming brighter, but when dimming darker, the lamp always goes out afterwards. How can this be fixed?
I just tested the blueprint again and it works as expected.
What you describe is when the light is decreased at minimum brightness. According to the light integration, when the brightness goes to 0, a light.turn_off command is then send to the light. This explain why you have the felling the blueprint does not work.
If your lights are connected to Zigbee2mqtt, I would use the standard version with brightness_move or brightness_move_onoff command which allow a better dimming experience.
I would also use the blueprint available in Zigbee2MQTT - PTM215Z/ZE and PTM216Z which is updated when required. I do not update the blueprint available in that thread anymore.