cyberslak
/lightsout
/amendments
/main.c
Amendments on March 17, 2025
cyberslak made amendment
24
17 days ago
cyberslak made amendment
23
17 days ago
Amendments on March 15, 2025
cyberslak made amendment
22
19 days ago
Amendments on March 13, 2025
Work around HA brightness range quirks
Some lights in HA have a brightness range of 1-255, and some of 1-254 (notably Zigbee lights), without any way of distinguishing the two. To handle both, we internally use the 1-255 range (0 = off) and map 254 to 255 when requesting the entity state. This means we may show 99.6% brightness as 100%, but that is far better than showing it as 99% and being unable to set a light to 100%.
Amendments on March 12, 2025
cyberslak made amendment
17
22 days ago
Amendments on March 11, 2025
cyberslak made amendment
16
23 days ago
Amendments on March 10, 2025
cyberslak made amendment
15
24 days ago
cyberslak made amendment
14
24 days ago
main: add scroll support to main window and clean up entity access patterns
Because we now also have a scrollbar control, our control handling needs to be more sophisticated than simply iterating over all controls in a window. We now generally use list_foreach to iterate over entities. Additionally, we store some more info in reference constants (window_info and control_type).
Amendments on March 9, 2025
main: smorgasbord of changes
- Add preferences support
- Add support for adding entities (Cmd-A)
- Load saved entities
- Handle update/activate/suspend/resume events better
- Port handling tweaks
Amendments on March 7, 2025
cyberslak made amendment
1
27 days ago
1