Home Assistant 0.112.3
Logger: homeassistant.components.websocket_api.http.connection.140318281651600
Source: custom_components/bgh_smart/climate.py:184
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:19:26 (4 occurrences)
Last logged: 9:19:35
'unknown'
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 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 430, 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 "/config/custom_components/bgh_smart/climate.py", line 202, in set_hvac_mode
self.set_mode()
File "/config/custom_components/bgh_smart/climate.py", line 184, in set_mode
self._fan_speed)
File "/usr/local/lib/python3.7/site-packages/pybgh/__init__.py", line 142, in set_mode
'fanMode': FAN_MODE[fan],
KeyError: 'unknown'
Atribuyo este problema cuando el servidor de Solidmation demora demasiado en dar una respuesta. Lo mismo pasa en la aplicación Smart Control, donde figuran todos los equipos con estado "desconocido" para luego reportar el estado correcto (con una demora aproximada de 40-60 segundos).