Hey @chris-1243 , I tested your new version 2024-10-31. Unfortunately, it doesn’t work for me. Simple press commands to turn on don’t work. In the trace I could see that the hold command is being tried (brightness move for me).
I’m back to your version 2024-10-27. It still works.
The thanks are due to you! After all, you are helping me too.
One more question, it’s not entirely clear to me. Would this blueprint also work with zigbee2mqtt 2.0? MQTT trigger can still be used and is not discontinued. Or is the affected action property still being used?
Hey, I tested latest-dev of Z2M based on the event trigger. For the PTM215Z/ZE, I do not see any benefits. The blueprint based on the MQTT trigger will work with Z2M 2.x.x without any issue.
There is an update available here. I cleaned a bit the code.
Feel free to test the blueprint based on the new event triggerhere
Hi! Please excuse the late feedback, I was on vacation. I wish you all the best for 2025!
Thank you for the update.
I’ve already thought of that. Your version with the MQTT trigger works so well that you don’t have to replace it without need.
I will be happy to test the “event” version when I get the chance. But I will probably wait with z2m 2.0 until the first . Update, maybe until February. But still, thank you very much for your support!
Can you briefly explain to me why and what you have optimized?
It is only some syntax changes in some conditions. It reflects more what I have created for myself as well. It is also easier for me to maintain my own work.
Hey @chris-1243 I’m now using your optimized version. As expected, it runs smoothly (with z2m 2.0 too). The optimization looks good as far as I understand it.
As soon as the event entities are no longer experimental at z2m, I will try that version in the future. But actually I find triggering on the native MQTT messages to be stable and perhaps more future-proof. They cannot become outdated so easily.
Have you ever considered sharing your awesome blueprints on Blueprints Exchange? I really like them.
Yes, I have created a topic and I do share some of my work (PTM216Z). Unfortunately, not the blueprint you are using. As it seems to work well, I will reconsider this statement and maybe I will share it.
Yes, you’re right. I marked your post with the update as the solution, as it eliminated the original cause of the error. All the best, I’m sure we’ll hear from each other again somewhere else sometime.