misenhower/homebridge-wyze-connected-home

Light Bulb does not reflect real state

whreams opened this issue · 2 comments

Real state of light bulb is not matching the HB status. Using the Wyze app, I toggle the state, and the HB state/HK state does not match.

Could be related???

[12/19/2020, 5:23:05 PM] [Wyze] Request failed: Error: read ETIMEDOUT
[12/19/2020, 5:23:05 PM] [Wyze] Error, refreshing access token and trying again

After a few days of use, (new wyze user - old HB user) there seems to be some bouncing in the state when JSON is fed to the HB plugin. As I feed JSON to a bulb, it sometimes reacts correctly to the JSON, other times it bounces back a response of what the state of the bulb was before the request to change it. Example:

Requested State:
{
"On": true,
"Brightness": 25,
"ColorTemperature": 400
}

Current State:
{
"On": false,
"Brightness": 25,
"ColorTemperature": 400
}