I'm trying to port over a Webcore piston that automatically turned on / off my AV Closet vent fan when temp gets to a certain threshold. The reason I'm using grafana webhooks to do this is I have a graph that monitors the temp difference grouped by 3m. When grafana determines that value is close to Zero (fan can't pump any more heat out of the closet), a webhook shuts the fan down.
Trying to use MAKER API to turn the fan on/off instead of webcore, but bumping into a problem. Looks like grafana webhooks can only send POST/PUT and MAKER API is looking for GETs?
Grafana reports "Failed to send webhook" logger=alerting.notifier.webhook error="Webhook response status 405 Method Not Allowed" webhook="HE - Turn AV Vent Fan Off"
Any way I can make this work with MAKER API?
edit: using this url for the webhook: http://[HE ip]/apps/api/XXX/devices/[Device ID]/off?access_token=[ABC123]