almost every topic I’ve found about this - is using the old method with url like https://XXX.duckdns.org/api/services/?api_password=YYY
but as we can configure integration with IFTTT now slightly differently - I’m using the “new” method and… it’s still failing for me
as most of us in similar cases, I want to run a script after talking to Google Assistant. configuration & integration is done and works [I can see no errors tied with them in the logs. base_url & all the rest is set in config]. my IFTTT looks like this:
Make a web request:
URL: https://XXX.duckdns.org:27/api/webhook/YYYYYYYYYYYYYYYYYYYYYYYYY
Method: POST
Content Type: application/json
Body: { "action": "call_service", "service": "script.turn_on", "entity_id": "script.some_script" }
IFTTT is triggerred correctly, because after my configured hot word/sentence Google Assistant responses with my custom phrase and then nothing happens. script is not started. IFTTT logs show time when it was last runned, without errors. HA log isn’t showing anything new to me also [I mean: nothing IFTTT/script related].
Even the IFTTT event is fired, nothing happens. The only strange thing is that the internal homeassistant editors marks the action part of the automation as invalid action. But I can’t find the solution.
Thanks in advanced
don’t know if it is an issue but in yaml spaces/formatting is VERY important! looking at the code you’ve pasted, I can see some troubles with formatting - maybe that’s it?
[pay attention to identation]. also - try putting “call_action” into single quotes like I did.
oh, and if you’re pasting the code here - try to use the proper formatting too [you can paste the yaml, select it and press “</>” button over the editing window here]. that will make us sure how your yaml looks like in terms of formatting
Just to share my experience, in my case I was having a lot of troubles to get it working and the issue was with the " vs ” symbols. I just did copy and paste using ” instead of using " standard quotes.
It is fixed and working fine now.
check for any space/formatting issues, wrong quote-signs etc. many of my troubles with different automations/configurations were because of accidentally entered characters in the config. it’s possible that post may be working, but HA can’t deal with it because of some config issues.
would anyone happen to know how is it that we can read a value sent from IFTTT? For instance, I want to set my lights to xx brightness, how would I read that value in my automation? I’ve tried trigger.event.data.entity_id.value but that doesn’t work ( I get an error when running a check config in HASS).