Roth touchline integration state

Hi
I have the Roth Touchline integration installation and it seems to work but the state is always “heat” even that temperature is above set, and that the Touchline controller is in holyday mode (can the controller mode be read?)


also clicking on the flame icon throw an error:
failed to call service climate/set_hvac_mode

any clue? @pilehave?

thanks
Kim

anyone have a clue or is it something in general with hvac?

the error from the log is:
Source: components/climate/init.py:418
Integration: Home Assistant WebSocket API
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 130, in handle_call_service
connection.context(msg),
File “/usr/src/homeassistant/homeassistant/core.py”, line 1247, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1282, in _execute_service
await handler.func(service_call)
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 213, in handle_service
self._platforms.values(), func, call, required_features
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 453, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 596, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 484, in _handle_entity_call
await result
File “/usr/src/homeassistant/homeassistant/components/climate/init.py”, line 422, in async_set_hvac_mode
await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode)
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/climate/init.py”, line 418, in set_hvac_mode
raise NotImplementedError()
NotImplementedError

It loks like an issue with Home Assistant itself, as Roth Touchline only has one HVAC mode; heat. So, there is obviously no set_hvac_mode supported.

set_hvad_mode is mentioned here: https://www.home-assistant.io/integrations/climate/

I did update the Roth Touchline service so it supports the different modes, but I gave up on the pull request here: https://github.com/home-assistant/core/pull/32221 beacuse of all the comments (doing what he wrote, renders Roth Touchline pretty much useless).

I run Home Assistant 0.106.2 with my own version of Roth Touchline and it works just fine:

Thats a shame it is so hard to get PR through as
Actually the touchline is also able to cool, but haven’t heard about anyone doing that. But at least it can be Off(holyday mode)
It would be nice if the HVAC_action was CURRENT_HVAC_HEAT in case the set temperature was above actual temperature, and CURRENT_HVAC_IDLE if set temperatur was reached.

I decided to fix the issues from the previous PR and make a new one:
https://github.com/home-assistant/core/pull/36054

I have zipped the updated file to http://cm3.dk/climate.zip for anyone to try out. Please make a backup of the existing climate.py file.

I don’t see a way of getting the controller to report back, if it is heating (valve opened) or idling (valve closed). It’s just not in any of the attributes reported back from the system.

Thanks for new PR
No the Touchline don’t provide a state of the valves. But maybe the integration can calculate it based on set and target temp. Like mentioned here: Touchline
I also have some thermostats with IR temp sensor and the value is not exposed in controller. Thats a bommer.

Can you have a look at the review comments in the PR, so it can get merged?