ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

Vibration sensor aqara does not keep value #148

Closed Nastras closed 1 year ago

Nastras commented 1 year ago

Hi Erik, I have a small problem with a vibration sensor from Aqara. When I use Sensitive, Duration or Enable the new vale jumps back to the original value after a short time. It does not save the new values. For all other aqara devices, it saves the adjusted new values.

Should the behavior with homebridge-deconz not be past or is it a bug?

ebaauw commented 1 year ago

Setting Enabled updates Status Active, but doesn't update config.on on the deCONZ gateway. This is a bug (simply missing the code needed for this) alright. Not just for the lumi.vibration.aq1, but for any (service based on a) sensors resource.

Setting Duration or Motion Sensitivity from Eve should work. Note however:

Nastras commented 1 year ago

Thanks for the great explanation 👌

I am not familiar with the DDF thing so far. I wanted to have a look at it for some time but have not yet got around to it. Therefore, I have all devices standard integrated without changes. Is it worth to get familiar with the DDF function?

If I understood you correctly you can fix the behavior but with a fix in an update or?

ebaauw commented 1 year ago

DDF is just the new way of how deCONZ adds support for (new) devices. Each new version includes more and more DDFs, and deletes the legacy code bit by bit. Unless you want to add support for new devices, you don’t need to handle DDFs yourself.

config/on will be fixed in the next release of Homebridge deCONZ. For the others you need deCONZ v2.22.1-beta, or a subsequent stable release.

ebaauw commented 1 year ago

config/on will be fixed in the next release of Homebridge deCONZ.

v0.1.19.