Honeywell CH/DHW via RF - evohome, sundial, hometronics, chronotherm

Testing using 0.21.4, the command no longer gives an error, but I would expect an extra entry in the commands list of the remote after the call is finished. I didn’t see that, there’s nothing in the logs either.

I also tried the new ramses_cc.learn_command service. Several things I noticed:

  1. The description of the timeout parameter is wrong (it mentions CO2 level).
  2. The timeout parameter should be marked as mandatory, the service fails if you don’t set the check box.
  3. It doesn’t seem to pass the command parameter to the underlying call, when I call the service using this yaml I get an error:
service: ramses_cc.learn_command
data:
  entity_id: remote.29_163515
  command: away
  timeout: 120

The error is:

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: must be exactly one command to learn
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1738, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 769, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
    await result
  File "/config/custom_components/ramses_cc/remote.py", line 214, in svc_learn_command
    await self.async_learn_command(*args, **kwargs)
  File "/config/custom_components/ramses_cc/remote.py", line 140, in async_learn_command
    raise TypeError("must be exactly one command to learn")
TypeError: must be exactly one command to learn