Call hubitat URL with post to turn switch on or off

I have a siren and another app. If an alert if triggered in the other App I can issue a HTTP post/get to an URL. I would like to create an ON/off URL on hubitat to turn the siren on/off.

How would I do that ?

You can do this using Maker API.

3 Likes

ha easy, awesome. Thank you!
Get the commands:
http://192.168.1.147/apps/api/89/devices/87/commands?access_token=xxx

Then build you command:
http://192.168.1.147/apps/api/89/devices/[Device ID]/[Command]/[Secondary value]?access_token=xxx

like

http://192.168.1.147/apps/api/89/devices/87/on?access_token=xxxx