question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Control 4 lights no longer with C4 3.3

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lawtancoolcommented, Jul 19, 2022

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.

0reactions
mlbfamilycommented, Oct 17, 2022

For what it’s worth, the fact the lights don’t show dimming support appears to be a bug downstream of the Control4 integration. Because when creating automations, you can set the brightness percentage as a device action, and it works! So the fact the rest of light controls are not registering as dimming-supported is some other bug unrelated to the C4 integration protocol.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control4 OS 3.3 Lighting Updates
Control4 OS 3.3 update adds RGBW Lighting support. Today Control4 announced the release of OS 3.3. Chowmain Software & Apps has been working ......
Read more >
What's new in this release - Control4
What's new in this release. New features in Composer Pro 3.3.1. Z-Wave enabled on CORE 3 and 5 controllers. The CORE 3 and...
Read more >
OS 3.3.0 Release Notes - Control4
Control4 Smart Home OS 3.3.0 Release Notes. Go to 1 Introduction · Control4 Smart Home OS 3.3.0 Release Notes (PDF). Closed More help ......
Read more >
Using the Color agent - Control4
Minimum required OS version: OS 3.3.0 ... Note that individual lights may not be able to display all chromacity or CCT levels.
Read more >
Using lighting scenes - Control4
Your Smart Home Pro can help you create lighting scenes, or you can create ... Note: If a lighting scene you created is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found