I have been using HA for about a month, utilizing youtube videos and other forum post to help me along the way. Im running 0.103.5 on a rpi b3+. I have hit a slight wall as to get a webhook to trigger either a single device or run a script.
I have created a webhook in IFTTT to trigger a script, I can see that the applet ran but nothing happens in HA.
When posting code snippets, URLs, log messages, etc., please format them properly. E.g., enter a line before and after containing just three “back ticks”, like this:
```
code snippet
```
The default formatting will change indentation, quote characters, etc.
Well, your webhook request doesn’t match the automation. The automation requires four pieces of data – action, service, entity_id & state – but you only provided entity_id in the webhook.
If you just want to invoke a script (and use the webhook URL as is), then you could change your automation to:
Go to the EVENTS tab of the Developers Tools page. Enter ifttt_webhook_received where it says “Event to subscribe to” and click START LISTENING. Then cause your IFTTT applet to send the webhook request. You should see an event printed on that page. If you do then click STOP LISTENING and post what get (and remember to format it properly.) If you don’t then you need to check the IFTTT applet.
automation.ifttt_automation was not listed in the current entities so I created it and set the state to on. I have not restarted HA but will do that now and will let you know
What do you mean you created it and set the state to on?
If it wasn’t listed, then the automation didn’t exist, which is why it wasn’t doing anything. When you change automations.yaml you need to restart, or at least click on RELOAD AUTOMATIONS on the Configuration → Server Controls page.
Within Developer Tools - States I added automation.ifttt_automation and state to on at the top of the page.
I have just restarted HA and now the webhooks are triggering in HA.
I think i’ve configured this the long way round. I have restarted HA many times trying different things but your wisdom has pointed me in the correct direction and I can now start putting my hair back in.