Mainly based on the hard work of @vandalon and @alexsaas who was my beta tester…
Choose carefully the version according to your needs
There are explanations in the UPDATE section to see the main differences between the versions available.
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.02 :
There are two different versions of the blueprint available. The second version (v2) aim to enable the repeat function which eases the dimming when using HA commands. PTM215ZE: New commands added (version - 2025.02.12)
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.