core: Control 4 lights no longer with C4 3.3
The problem
Control 4 lights no longer working in HA since C4 update to version 3.3. Get two errors in the logs:
Unexpected error fetching light data: Empty response recieved from Director! The variable LIGHT_LEVEL doesn’t seem to exist for any items.
Error while setting up control4 platform for light
What version of Home Assistant Core has the issue?
2022.6.5
What was the last working version of Home Assistant Core?
2022.6.5
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Control 4
Link to integration documentation on our website
https://www.home-assistant.io/integrations/control4
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.control4.light
Source: components/control4/director_utils.py:32
Integration: Control4 (documentation, issues)
First occurred: 17:17:14 (2 occurrences)
Last logged: 17:28:46
Unexpected error fetching light data: Empty response recieved from Director! The variable LIGHT_LEVEL doesn't seem to exist for any items.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 191, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/control4/light.py", line 56, in async_update_data_dimmer
return await director_update_data(hass, entry, CONTROL4_DIMMER_VAR)
File "/usr/src/homeassistant/homeassistant/components/control4/director_utils.py", line 32, in director_update_data
data = await director.getAllItemVariableValue(var)
File "/usr/local/lib/python3.9/site-packages/pyControl4/director.py", line 137, in getAllItemVariableValue
raise ValueError(
ValueError: Empty response recieved from Director! The variable LIGHT_LEVEL doesn't seem to exist for any items.
..............................
Logger: homeassistant.components.light
Source: components/control4/light.py:107
Integration: Light (documentation, issues)
First occurred: 17:17:14 (2 occurrences)
Last logged: 17:28:46
Error while setting up control4 platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/control4/light.py", line 107, in async_setup_entry
if item_id in dimmer_coordinator.data:
TypeError: argument of type 'NoneType' is not iterable
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (1 by maintainers)
Hi everyone,
As some of you have noticed, the integration at https://github.com/lawtancool/hass-control4 works with newer C4 versions. This is because it uses a new Websockets communication protocol with Control4, and it seems that C4 3.3 has limited the REST API that was used by the old integration. (actually, the new Websockets integration does call the REST API once during first setup and every time the Websocket is disconnected/reconnected, so I’m not sure how that works…)
If this works, it is the solution I would recommend for now. Unfortunately, I do not have the ability or time to jailbreak my C4 and update it to the latest OS version to test. Perhaps one day I will find some free time to get the Websockets changes merged into the official HA integration, but it requires quite a bit of refactoring.