Hi,
I integrated my isy with home assistant and it has been working fine for months, all of a sudden I started noticing that I cannot control my insteon devices from the isy.
When I reboot the isy, the integration works, so I created an automation that reboots the isy 3 times during the day, but it’s not a permanent fix.
Here is the error I get in the log when I try to control a specific light:
Logger: homeassistant.core
Source: components/isy994/light.py:100
First occurred: October 23, 2021, 12:56:40 AM (7 occurrences)
Last logged: 9:11:59 AM
Error executing service: <ServiceCall light.turn_on (c:3dffd1f6f070fb9809ef961eb69c93fc): entity_id=['light.office'], params=>
Error executing service: <ServiceCall light.turn_on (c:16f783e4e1acf08bc7373b5fd6f3f94f): entity_id=['light.office'], params=>
Error executing service: <ServiceCall light.turn_on (c:2b75395bf9c2acdbf565f19c29be8968): entity_id=['light.bedroom'], params=>
Error executing service: <ServiceCall light.turn_on (c:6f4e948430a911ca8938e4668ed3da1a): entity_id=['light.office'], params=>
Error executing service: <ServiceCall light.turn_on (c:016a9a9adda99725afb30cced15b641c): entity_id=['light.office'], params=>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1507, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 830, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 462, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/isy994/light.py", line 100, in async_turn_on
if not await self._node.turn_on(val=brightness):
File "/usr/local/lib/python3.9/site-packages/pyisy/nodes/nodebase.py", line 336, in turn_on
return await self.send_cmd(cmd, val)
File "/usr/local/lib/python3.9/site-packages/pyisy/nodes/nodebase.py", line 252, in send_cmd
if not await self.isy.conn.request(req_url):
File "/usr/local/lib/python3.9/site-packages/pyisy/connection.py", line 197, in request
retry_result = await self.request(url, retries + 1, ok404=False)
File "/usr/local/lib/python3.9/site-packages/pyisy/connection.py", line 197, in request
retry_result = await self.request(url, retries + 1, ok404=False)
File "/usr/local/lib/python3.9/site-packages/pyisy/connection.py", line 197, in request
retry_result = await self.request(url, retries + 1, ok404=False)
[Previous line repeated 2 more times]
File "/usr/local/lib/python3.9/site-packages/pyisy/connection.py", line 203, in request
res.status,
UnboundLocalError: local variable 'res' referenced before assignment