Skip to content

[Bug] Wyze Thermostat fails to update, not a valid FanMode #720

@jnjustice

Description

@jnjustice

Describe the bug
My Wyze Thermostat seems to have stopped working in the last 24ish hours. It appears based on the logs that Wyze maybe changed something with how the API responds.

To Reproduce
Steps to reproduce the behavior: Check your Wyze Thermostat, mine hadn't updated in 12+ hours and it appears home assistant could not find the entity. Upon checking the logs there seems to be some exception in the "FanMode"

  1. Go to Integrations
  2. Wyze Home Assistant Integration
  3. Check the status of your Wyze Thermostat entity

Mine showed that it could not be created due to not being ble to pull from the Wyze API

Expected behavior
The Wyze Thermostat entity to load and show data normally.

System configuration
System: Home Assistant OS on a Beelink Mini S
HA Version: 2025.8.1
WyzeApi Version: 0.1.35 (also tried going back to 0.1.33 but no luck)

home-assistant.log

Settings > System > Logs

Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:807
integration: Climate ([documentation](https://www.home-assistant.io/integrations/climate), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+climate%22))
First occurred: 8:30:54 PM (1 occurrence)
Last logged: 8:30:54 PM

wyzeapi: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 807, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1314, in async_device_update
    await self.async_update()
  File "/config/custom_components/wyzeapi/token_manager.py", line 45, in inner_function
    await func(*args, **kwargs)
  File "/config/custom_components/wyzeapi/climate.py", line 365, in async_update
    self._thermostat = await self._thermostat_service.update(self._thermostat)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/wyzeapy/services/thermostat_service.py", line 82, in update
    thermostat.fan_mode = FanMode(value)
                          ~~~~~~~^^^^^^^
  File "/usr/local/lib/python3.13/enum.py", line 726, in __call__
    return cls.__new__(cls, value)
           ~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/enum.py", line 1201, in __new__
    raise ve_exc
ValueError: 'o":\\\\"70\\\\\\",\\\\\\"heat\\\\\\":\\\\\\"65\\\\\\"},\\\\\\"sleep\\\\\\":{\\\\\\"cool\\\\\\":\\\\\\"70\\\\\\",\\\\\\"heat\\\\\\":\\\\\\"65verify' is not a valid FanMode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions