geerlingguy / airgradient-prometheus

AirGradient Prometheus exporter.
MIT License
176 stars 59 forks source link

Add ESPHome configuration for AirGradient ONE #39

Closed geerlingguy closed 4 months ago

geerlingguy commented 1 year ago

The AirGradient ONE is the latest and greatest sensor, and comes with a TVOC sensor (Sensirion SGP41) and 11 RGB LEDs (WS2812B) across the top of the device.

It would be cool if I could support the ONE for Home Assistant / ESPHome.

See build instructions for the v9 Pro pre-soldered kit: https://www.airgradient.com/open-airgradient/instructions/pro-v9/

geerlingguy commented 1 year ago

Looks like there's another config available here: https://forum.airgradient.com/t/new-airgradient-indoor-kit-monitor-available-now/1240/8

Direct link: https://github.com/MallocArray/airgradient_esphome/blob/main/airgradient-one.yaml

geerlingguy commented 1 year ago

I've added a config based on MallocArray's, and will be testing it out. Wanted to make LED brightness adjustable because at the default it lights up the whole room at night!

zeuzere commented 11 months ago

Thx for the MallocArray link, It work great as is... I added the color_correct to reduce the overall brightness, Exemple: When red is set to 60% in the co2->on_value, It mean the actual value will be 30% because we set below the color_correct to 50%


light: color_correct : [50%,50%,50%]

stronk-dev commented 11 months ago

Hi guys, just installed my airgradient one using this so thanks for that The original script has some nice new additions to pull in (led control) I also had to add prometheus: to the .yaml file to get the metrics endpoint exposed

stronk-dev commented 11 months ago

Another point of feedback: if not connected to home assistant it will reboot every 15 minutes: [E][api:128]: No client connected to API. Rebooting...

So for people who are only interested in the Prometheus endpoint they should comment out API access or add the following to the API block: reboot_timeout: 0s

github-actions[bot] commented 7 months ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 4 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.