waxlamp / elgato

Control program for El Gato brand keylights
Apache License 2.0
9 stars 0 forks source link

discovered.json should not track dynamic attributes #6

Closed waxlamp closed 4 years ago

waxlamp commented 4 years ago

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.