AirGradient Forum

AirGradient alert with http request

Hi, just got the airgradient ip-9dsl-de. Is it possible to setup an alert if co2 > x do y and trigger a local http request like this? http://192.168.0.36/apps/api/10249/trigger?access_token=ecd95469-bbcd-4889-a694-9b05ef80f4db
I did search but couldn’t find anything.

There is an Alarms section on the site:
https://app.airgradient.com/settings/alarms-and-notifications

But I don’t believe it can do anything with local HTTP requests. If you setup Home Assistant and use the native integration, you could have HA do some automations when criteria are met.

I’m aware of that but that’s more complicated than it should be. Surprised that I seem to be the only one wanting a feature like that as it’s so easy and lightweight to implement.

Devs, feature request? As a user I want to be able to configure alarms with HTTP Get trigger. If x > y, call HTTP URL.

I think you’re the only one asking for this because everyone else who wants to do it is doing it using external tools: either the aforementioned HA or a script that checks the value and calls the needed URL. Personally I wouldn’t want to see the AG code burdened with such alerts and notifications.

1 Like

Gis, I’m sorry but that’s nonsense. The infrastructure for this is already there. All that’s missing is a variable to enter a URL and instead of pub/sub call, call a HTTP post/get link.