I am trying to get webhooks working (not IFTTT webhooks) for use with my Flic buttons as they can send webhooks, but I am not having much luck.
I am trying to run the following:
Type: POST URL:Give yourself a better website » MY DOMAIN Headers: blank (should they be?) Body: { “action”: “trigger” } Content-Type: x-www-form-urlencoded Timeout: 10
I’ve turned off Validating certifcates
The button is firing, but not seeing any end result in HA. I’ve followed the documentation but I am at a loss.Though I admit I do not know where the files this section is talking about is:
The payload is available in an automation template as either trigger.json or trigger.data
Content-Type is a header, so I don’t think it matters that Headers are blank.
I notice you’re mixing types though. You’re sending JSON as your body, but you are telling HA that it is receiving x-www-form-urlencoded. Try set Content-Type to application/json and try again.
Also, whenever you deal with APIs, it’s highly recommended to break the problem into the receiving and sending side. Having separate systems play nice can be a real pain.
I’ve run the curl command, and nothing, I dont get any errors in curl, minus the SSL errors which I disabled.
But nothing happens in Home Assistant, the trigger just doesn’t seem to fire.
I’ve also tried in Postman, and get a 200 Ok response, but nothing in HA.