sblantipodi / glow_worm_luciferin

Bias Lighting and Ambient Light firmware, designed for Firefly Luciferin.
GNU General Public License v3.0
158 stars 19 forks source link

[Feature request]: publish the values of the analog input #29

Closed RonaldHiemstra closed 1 year ago

RonaldHiemstra commented 2 years ago

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

I love your project, I also use it on dark and rainy working days as a background lighting. I would like to extend the ESP with an LDR sensor to measure the environment and use this to control the brightness of the LEDs.

Describe alternatives you've considered

No response

sblantipodi commented 2 years ago

Hi @RonaldHiemstra, thank you for your interest in Luciferin and for the kind words.

This is a good idea, I'll leave this feature request open until I'll have time to implement it. If someone wants to implement it it's obviously fine.

In the mean time, if you have an MQTT environment like Home Assistant, you can create an automation that sends the brightness information to Glow Worm via MQTT or via an HTTP GET.

If you are interested in the MQTT way I can send you the topic and the payload needed to set the brightness.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

RonaldHiemstra commented 2 years ago

If you are interested in the MQTT way I can send you the topic and the payload needed to set the brightness.

I currently have a dedicated ESP32 with an LDR, which publishes its ADC value (averaged over a few seconds) to MQTT (only if the difference is larger than a certain limit, because I don't want continuous changing backlight). I control the brightness of the Glow Worm is with Home Assistant. It works very nice this way 😃 (after finding a good location for the LDR, with minimum influence by Glow Worm, otherwise it starts blinking 🤣).

sblantipodi commented 2 years ago

very nice, thank you for sharing :)

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days