Closed Kkristian1 closed 11 months ago
Not a bug of this integration. You either don't have some priviledge or it is a problem of jablotronpy library. Also make sure you inserted correct PIN when configuring integration as PIN is required for controling gates.
Hi, when pushing PG switch I get message unable to control component.
Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/jablotron_cloud/switch.py:104 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 18:41:11 (8 occurrences) Last logged: 19:29:07
[139824495184096] Unable to control component [139824445895392] Unable to control component [139824469031664] Unable to control component [139824497106256] Unable to control component [139824446255504] Unable to control component Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 980, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1034, in async_turn_on await self.hass.async_add_executor_job(ft.partial(self.turn_on, *kwargs)) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, **self.kwargs) File "/config/custom_components/jablotron_cloud/switch.py", line 104, in turn_on bridge.control_programmable_gate(self._service_id, self._gate_id, True) File "/usr/local/lib/python3.10/site-packages/jablotronpy/jablotronpy.py", line 379, in control_programmable_gate return self.control_component(service_id=service_id, component_id=component_id, state=state, control_pg=True) File "/usr/local/lib/python3.10/site-packages/jablotronpy/jablotronpy.py", line 365, in control_component raise UnexpectedResponse("Unable to control component") jablotronpy.jablotronpy.UnexpectedResponse: Unable to control component