It should just have the name of the light and the address/port.
Other attributes (power, color, brightness) should always be dynamically determined after constructing a LegLight object from the address port, and never saved to / read from the discovery file.
Tracking these values persistently means that only upon a --refresh action can those dynamic values be updated, which is not what the system should be doing.
It should just have the name of the light and the address/port.
Other attributes (
power
,color
,brightness
) should always be dynamically determined after constructing aLegLight
object from the address port, and never saved to / read from the discovery file.Tracking these values persistently means that only upon a
--refresh
action can those dynamic values be updated, which is not what the system should be doing.