Summary
It appears that light.color just returns the last colour written to the device rather than the actual colour of the LEDs. My Agile Innovative BlinkStick Strip has a (hardware?) problem in that not all LEDs change colour even if all LEDs are targeted. Sometimes when I call light.off() not all LEDs are switched off. If I read light.color when my BlinkStick Strip is in this state it incorrectly indicates that all LEDs are off. Could light.color be modified to read the device's state or another method added that does so? In stuart12/busylight-hass@606971f I added code to call light.off() repeatedly. The problem is that the number of times it is necessary to call light.off() is not constant. If the device's actual state was available, the code could stop calling light.off() when all LEDs are finally off. stuart12/busylight-hass@c87abd7 did not indicate that light.color was ever updated with device's actual state even when it took several seconds for all LEDs to be off.
Platform
Linux 6.17.0-6-generic x86_64 GNU/Linux
Version
0.15.3
Python version
Python 3.13.7
Summary
It appears that
light.colorjust returns the last colour written to the device rather than the actual colour of the LEDs. My Agile Innovative BlinkStick Strip has a (hardware?) problem in that not all LEDs change colour even if all LEDs are targeted. Sometimes when I calllight.off()not all LEDs are switched off. If I readlight.colorwhen my BlinkStick Strip is in this state it incorrectly indicates that all LEDs are off. Couldlight.colorbe modified to read the device's state or another method added that does so? In stuart12/busylight-hass@606971f I added code to calllight.off()repeatedly. The problem is that the number of times it is necessary to calllight.off()is not constant. If the device's actual state was available, the code could stop callinglight.off()when all LEDs are finally off. stuart12/busylight-hass@c87abd7 did not indicate thatlight.colorwas ever updated with device's actual state even when it took several seconds for all LEDs to be off.Platform
Linux 6.17.0-6-generic x86_64 GNU/Linux
Version
0.15.3
Python version
Python 3.13.7