You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Wyze iPhone app, check the status of the device. It also shows the fan set to Auto.
All of that makes sense. What doesn't make sense is:
The thermostat itself, sitting on my wall, still has the fan mode set to ON.
If I use the Wyze app to change the fan mode, everything works - calls to client.thermostats.info show the right status, the app shows the right status, and the unit on the wall shows the right status.
How the heck is the unit on the wall not updating from this wyze-sdk, but is updating from the app?
I set up a proxy to see what was going on.
Here's a request from the wyze-sdk via set_fan_mode():
The big difference I see here is the endpoint set_iot_prop_by_topic vs set_iot_prop. It looks like when setting one topic, the two endpoints accept the same signature of props. So I updated my locally running wyze-sdk to use set_iot_prop_by_topic instead, and voila! It updates my wall unit.
If I had to guess, maybe the set_iot_prop endpoint has a bug where it updates the state server side, which works for any clients that are polling, but doesn't push out any updates to the actual wall unit.
Not sure if you want to update all instances of set_iot_prop to set_iot_prop_by_topic, or just wait around for Wyze to maybe fix their endpoint.
The text was updated successfully, but these errors were encountered:
@pabo good sleuthing. It looks like set_iot_prop is only used for resetting the filters and updating schedule information - the way I read it, basically anything that doesn't talk to the actual thermostat.
Please pull branch 15-api-updates-state-but-actual-thermostat-unit-does-not and re-test. If this works better, I will create a new official release
I'm seeing a behavior I can't explain. (Spoiler alert: by the end of this post I think I've explained it)
ThermostatFanMode.ON
AUTO
:ThermostatFanMode.AUTO
All of that makes sense. What doesn't make sense is:
client.thermostats.info
show the right status, the app shows the right status, and the unit on the wall shows the right status.How the heck is the unit on the wall not updating from this wyze-sdk, but is updating from the app?
I set up a proxy to see what was going on.
Here's a request from the wyze-sdk via
set_fan_mode()
:and here's a request from my iphone app:
The big difference I see here is the endpoint
set_iot_prop_by_topic
vsset_iot_prop
. It looks like when setting one topic, the two endpoints accept the same signature of props. So I updated my locally running wyze-sdk to useset_iot_prop_by_topic
instead, and voila! It updates my wall unit.If I had to guess, maybe the
set_iot_prop
endpoint has a bug where it updates the state server side, which works for any clients that are polling, but doesn't push out any updates to the actual wall unit.Not sure if you want to update all instances of
set_iot_prop
toset_iot_prop_by_topic
, or just wait around for Wyze to maybe fix their endpoint.The text was updated successfully, but these errors were encountered: