Closed samuelbagforsprivat closed 1 year ago
added the debug json
added more logitems I found in the HA core logs
same problem in beta49
Hi, I have a simmilar trv (Danfoss lc-13). Issue is that our TRV has only one hvac_modes : heat
"thermostat": { "climate.living_connect_z_thermostat_heating": { "name": "Radiator Office", "state": "heat", "attributes": { "hvac_modes": [ "heat" ], "min_temp": 4, "max_temp": 28, "current_temperature": null, "temperature": 17.9, "friendly_name": "Radiator Office", "supported_features": 1 }
So when it is called to set it to: "off" it just fails, and does not start. And here: https://github.com/KartoffelToby/better_thermostat/blob/5abcdec2d8a10414d449398162a46b50164555be/custom_components/better_thermostat/climate.py#L569 it is trying to set it to "off".
I managed to "workaround" this by going to developer tools and seting state to: heat for BT thermostats.
Beta 51, shoud use the set temp to min, if off, if no off mode is there, also there is an option too to force it.
Prerequisites
using z-wave JS, everything on the latest released versions.
Description
Added the thermostate in better thermostate gui and everything looks good until I go and look at the control, there it say that the better themostate control is unavaliable.
Steps to Reproduce
Going directly to the popp device via z-wave js it seems to work just fine.
Versions
latest versions on everything
Additional Information
Found these stuff in the logfiles
Logger: custom_components.better_thermostat.utils.bridge Source: custom_components/better_thermostat/utils/bridge.py:31 Integration: Better Thermostat (documentation, issues) First occurred: 28 November 2022 at 08:25:19 (13 occurrences) Last logged: 10:48:06
better_thermostat vardagsrum 2: intigration: zwave_js isn't native supported, feel free to open an issue, fallback adapter generic better_thermostat : intigration: zwave_js isn't native supported, feel free to open an issue, fallback adapter generic better_thermostat vardagsrum: intigration: zwave_js isn't native supported, feel free to open an issue, fallback adapter generic better_thermostat kontor: intigration: zwave_js isn't native supported, feel free to open an issue, fallback adapter generic better_thermostat -: intigration: zwave_js isn't native supported, feel free to open an issue, fallback adapter generic
Logger: custom_components.better_thermostat.climate Source: custom_components/better_thermostat/climate.py:570 Integration: Better Thermostat (documentation, issues) First occurred: 28 November 2022 at 08:25:54 (5 occurrences) Last logged: 10:48:06
better_thermostat Vardagsrum: No previously hvac mode found on startup, turn heat off better_thermostat vardagsrum 2: No previously hvac mode found on startup, turn heat off better_thermostat vardagsrum: No previously hvac mode found on startup, turn heat off better_thermostat kontor: No previously hvac mode found on startup, turn heat off
Logger: homeassistant Source: components/zwave_js/climate.py:475 First occurred: 28 November 2022 at 08:25:54 (5 occurrences) Last logged: 10:48:06
Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/better_thermostat/climate.py", line 657, in startup await control_trv(self, trv) File "/config/custom_components/better_thermostat/utils/controlling.py", line 153, in control_trv await set_hvac_mode(self, heater_entity_id, _hvac_mode_send) File "/config/custom_components/better_thermostat/utils/bridge.py", line 74, in set_hvac_mode return await self.real_trvs[entity_id]["adapter"].set_hvac_mode( File "/config/custom_components/better_thermostat/adapters/generic.py", line 39, in set_hvac_mode await self.hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1744, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1781, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/zwave_js/climate.py", line 475, in async_set_hvac_mode raise ValueError(f"Received an invalid hvac mode: {hvac_mode}") ValueError: Received an invalid hvac mode: off