Extension to restore desired state on deviceAnnounce #7642
Replies: 7 comments 16 replies
-
@Koenkk I noticed this stopped working on the latest dev, could it be the refactor to use TS broke all legacy extensions? onZigbeeEvent() never seems to fire. |
Beta Was this translation helpful? Give feedback.
-
Sjorge, thank you for you extension, it has been very useful in the past! Unfortunately I found no solution for |
Beta Was this translation helpful? Give feedback.
-
When I was trying to fix this, the result between the two was not the same.
Yeah there is definitely room for improvement but there is currently still a bug that requires a full restart because when trying to load it via mqtt (e.g. the frontend) it starts multiple instances, my network israther big and after ever restart it's rather on stable so i didn't really spend the time to poke this much futher. |
Beta Was this translation helpful? Give feedback.
-
Does anaybody know if this actually works? |
Beta Was this translation helpful? Give feedback.
-
Updated extension. No guarantee, use at your own risk...
|
Beta Was this translation helpful? Give feedback.
-
It doesnt work for me. Is it possible to get an example of your node red flow? |
Beta Was this translation helpful? Give feedback.
-
Today I found this discussion in my search on how to set the light bulb when it was switched on by the physical switch. Inspired by the comment on using node-red I tried to do it with an automation in Home Assistant. Here is my result:
(identifiers are in Dutch) It might help others |
Beta Was this translation helpful? Give feedback.
-
I dove right in with the goods, I have had this one or a while and use it mostly for my Ubisys S1/S2, although they do support
StartUpOnOff
of thegenOnOff
cluster the implementation on their end is broken and it always results in a toggle action regardless of what you write to it. They are aware of the issue, but it looks unlikely they will fix it.Hence the need for this extensions, it's pretty simple it attaches to the
deviceAnnounce
event and then simply restores the state it has read from the configuration file. It could probably be improved a bit by not using this.mqtt.emit() but directly calling the converters, however this works too and keeps the extension simple.Hopefully this is useful for someone.
Beta Was this translation helpful? Give feedback.
All reactions