I have recently bought a LIFX led strip. It has several individually addressable zones. I have found that the state of the individual zones are not available in HA. The LED strip is represented as a single LightEntity
instance and the state of this instance reflects the state of the first zone of the LED strip.
Although there is a service call, lifx.set_state
, which takes a parameter, zones
, allowing individual control over the zones, it seems that the current state of the zones are not available.
Turning to the lifx
component implementation in HA Core, it seems that HA actually gets the state information from each zone in the update_color_zones()
method by calling get_color_zones()
from the aiolifx
module. (https://github.com/home-assistant/core/blob/94f06f86cf426bd5469ee19f615c317dfcb045a8/homeassistant/components/lifx/light.py#L736)
I might be overlooking something obviously… I am after all quite new to HA. But as far as I can see, I cannot get the zone state information from HA, even though it seems to know the state for each zone somewhere internally.
Assuming I’m correct, I would love to help implementing this feature, however, I’m not quite sure what would be the best way. I’m not quite sure how the @property
methods work. Would it be possible to add extra @property
methods, and then make the LightEntity carry additional information, or are you limited to the inherited methods? Alternatively; could it be a solution (e.g. would it be wise) to represent the LED strip as len(zones)
different LightEntity
instances, each representing a unique segment of the LED strip?