stelgenhof / AiLight

AiLight is a custom firmware for the esp8266 based Ai-Thinker (or equivalent) RGBW WiFi light bulbs
MIT License
256 stars 41 forks source link

Gamma boolean can not be set via REST or mqtt #23

Closed petefats closed 5 years ago

petefats commented 6 years ago

Thanks for the incredible firmware. Its been an integral part of an outdoor project of mine using 24 lights. After a recent snowstorm, part of the lights report gamma correction true, part of them report false. I believe this is a EEPROM problem due to the cold, nothing to do with AiLight itself.

The problem I'm running into however is that AiLight doesn't expose this variable to either REST or mqtt, making it difficult to return all of the lights the same state. I'm uncertain if this is a bug or simply unimplemented (and working as expected). I've attached a repro in case it helps.

gamma-repro.txt

stelgenhof commented 6 years ago

Thanks! @petefats. In this case it is just a matter of 'unimplemented'. The firmware was targeted at HomeAssistant, which doesn't know anything about 'Gamma Correction'.

I agree that it would be better to be able to set Gamma Correction via REST or MQTT as well. Let me see how that can be done :)

petefats commented 6 years ago

Thanks for looking. In the interim, I found that I could connect directly via websocket to adjust this variable.

stelgenhof commented 6 years ago

@petefats I know you were able to work around this by using the Websockets. However, I have added the ability to set the Gamma Correction via REST API and MQTT now as well.

It's not available yet as part of an official release, however you can try it out by compiling the firmware (develop branch) yourself.

Cheers! Sacha

stelgenhof commented 5 years ago

Included in the just released version 0.6.0.