WebThingsIO / zigbee-adapter

Zigbee adapter add-on for WebThings Gateway
Mozilla Public License 2.0
46 stars 29 forks source link

Tradfri wireless socket toggles, but UI doesn't reflect this? #190

Open flatsiedatsie opened 4 years ago

flatsiedatsie commented 4 years ago

I have a strange situation where all my Tradfri devices are working ok, except for the socket.

For example, if I say "Hey Snips, turn off the Tradfri socket", or if I toggle it via the UI, the power will be turned off as expected. So far so good.

But.. the UI doesn't change properly. Refresh the page, and the UI will show it's on, even though it's actually off:

tradfri_socket_strange

Similarly, I can't turn the socket on again with a voice command, because Voco wil complain that it's already in the onstate. Even though it isn't.

flatsiedatsie commented 4 years ago

Could it be because of the level property somehow? I get the sense that shouldn't be there in the first place.

flatsiedatsie commented 4 years ago

Just to add that this is not Voco related. The same issue occurs if toggle with a click in the UI.

tradfri toggle issue

It can lead to strange situations:

Now, while typing this, the light suddenly turned back on again. And off And on

Could it be that there is a list of commands, and that each command takes a few seconds to time out?

Or there's a ghost.

I am able to repeat this:

But a while later it will turn on, then off, and now on again. And now off again.

There are no rules relating to this thing/property.

I also checked if the level property (which should not be there) has an effect. For example, if setting the level to 0 means the socket will try to go back into the off state. But I couldn't find a correlation there.

flatsiedatsie commented 4 years ago

It seems to continue turning itself on and off again now. Very spooky.

flatsiedatsie commented 4 years ago

The internal log show a lot of this:

2020-02-12 22:58:33.305 INFO   : zigbee: setProperty property: on for: zb-086REDACTED-thing profileId: 0104 endpoint: 1 clusterId: 0006 zcl: on value: true
2020-02-12 22:58:40.569 INFO   : zigbee: setProperty property: on for: zb-086REDACTED-thing profileId: 0104 endpoint: 1 clusterId: 0006 zcl: on value: true

It's still turning itself on and off.

freaktechnik commented 3 years ago

I can confirm that the state of tradfri plugs is reported wrong. Toggling works fine though.