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

I misunderstood. I thought you meant the feature should be available in the actual code running on the AG devices, not in the dashboard.

Not sure how a local (as in to an internal IP like in your first post) http request would work from the dashboard. :upside_down_face:

Sorry, you are right… I didn’t realize that the alerts are running in the cloud.

@Busch09 trying to understand what are the implications of this.

Wouldn’t that mean that you would need to define the triggers on the device, eg if CO2 > 5000 …. I wonder how you would set these up on the device?

my bad, I thought the rules you’re configuring in the dashboard alerts are running on the device, but then I realized that they are actually running in the cloud.
GIS is right there’s no infrastructure on the device to do that.