Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Climate Preset modes work but give an erroneous error message #550

Open
pdoubleyou opened this issue Dec 12, 2024 · 6 comments
Open

Climate Preset modes work but give an erroneous error message #550

pdoubleyou opened this issue Dec 12, 2024 · 6 comments

Comments

@pdoubleyou
Copy link

Using wiser integration to control central heating room thermostat and radiator valves. When I select any boost mode, the indicator shows the device active, it functions correctly, but a warning message shows the following
"Preset mode is not valid. Valid preset modes are: Advance Schedule, Cancel Overrides, Boost 30m, Boost 1h, Boost 2h, Boost 3h."
Cannot say for sure if it is a result of a recent update because I did not have the preset modes active

@freshfieldx
Copy link

I'm also seeing errors with presets:

Log details (ERROR)
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/wiser/helpers.py:36
integration: Drayton Wiser Integration for Home Assistant (documentation, issues)
First occurred: 10:36:33 (332 occurrences)
Last logged: 13:33:38

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 267, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 478, in _async_refresh
self.async_update_listeners()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 177, in async_update_listeners
update_callback()
~~~~~~~~~~~~~~~^^
File "/config/custom_components/wiser/sensor.py", line 388, in _handle_coordinator_update
super()._handle_coordinator_update()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/wiser/sensor.py", line 267, in _handle_coordinator_update
_LOGGER.debug(f"{self.name} device update requested")
^^^^^^^^^
File "/config/custom_components/wiser/sensor.py", line 410, in name
return f"{get_device_name(self._data, self._device_id)} Signal"
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wiser/helpers.py", line 36, in get_device_name
if device.product_type == "iTRV":
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'product_type'

@msp1974
Copy link
Collaborator

msp1974 commented Dec 20, 2024

I'm also seeing errors with presets:

Log details (ERROR) This error originated from a custom integration. Logger: homeassistant Source: custom_components/wiser/helpers.py:36 integration: Drayton Wiser Integration for Home Assistant (documentation, issues) First occurred: 10:36:33 (332 occurrences) Last logged: 13:33:38

Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 267, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 478, in _async_refresh self.async_update_listeners() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 177, in async_update_listeners update_callback() ~~~~~~~~~~~~~~~^^ File "/config/custom_components/wiser/sensor.py", line 388, in _handle_coordinator_update super()._handle_coordinator_update() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/config/custom_components/wiser/sensor.py", line 267, in _handle_coordinator_update _LOGGER.debug(f"{self.name} device update requested") ^^^^^^^^^ File "/config/custom_components/wiser/sensor.py", line 410, in name return f"{get_device_name(self._data, self._device_id)} Signal" ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/wiser/helpers.py", line 36, in get_device_name if device.product_type == "iTRV": ^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'product_type'

This is not the same issue. Please can you log a new issue and provide a diagnostic file.

@msp1974
Copy link
Collaborator

msp1974 commented Jan 4, 2025

@pdoubleyou, I cannot recreate this (this was an issue in a previous version). Can you confirm you HA and Wiser integration versions. Thx

@pdoubleyou
Copy link
Author

pdoubleyou commented Jan 4, 2025 via email

@fascinatedcow
Copy link

Same here with ~HA 2025.1.0 (container version) and Wiser 3.4.15 (via HACS). I have only a hub and thermostat, no TRVs.

@lagore
Copy link

lagore commented Jan 11, 2025

I see the same error when doing an 'Advance Schedule', it works correctly but gives

ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139912436030992] Preset mode is not valid. Valid preset modes are: Advance Schedule, Cancel Overrides, Boost 30m, Boost 1h, Boost 2h, Boost 3h

Wiser 3.4.15
HA core 2024.12.3
Thanks
Edward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants