Hello all !
like others I couldn’t launch a script from ifttt via webhook…
it’s starting to drive me crazy…
would I have missed a step ?
I have another ifttt/webhook call that works, I don’t understand why the script.turn_on service is not running.
my script works when I run it manually.
I tried too with an automation >> works in manual triggering, programmed, but not via ifttt call
ifttt:
url : https://xxx.duckdns.org/api/webhook/myapikeywebhookwichisok
post / json
body : {“action”: “call_service”, “service”: “script.turn_on”, “entity_id”: “script.myscript”}
automation:
- id: '00'
alias: IFTTT Trigger
hide_entity: false
initial_state: 'true'
trigger:
platform: event
event_type: ifttt_webhook_received
event_data:
action: call_service
action:
service_template: '{{ trigger.event.data.service }}'
data_template:
name: '{{ trigger.event.data.name }}'
help !!!
I don’t know the answer on your question, i do know that following this guide is much easier
#How to Integrate Google Assistant and Home Assistant API using only IFTTT
Preamble
Hey all.
Been working on my Home Assistant set up for a couple of months now and would like to contribute a little something back.
Here is how you can use Google Assistant on Android with Home Assistant HTTP API calls.
##Requirements
Dynamic DNS entry for your Public IP address
e.g. DuckDNS or similar
IFTTT (If This Then That) account
Android phone with Google Assistant
Port forwarding for your …
thank you, i see it
but i don’t want use api_password
Markus99
(Mark)
October 29, 2019, 12:27pm
4
I followed the instructions from the HA documentation here: https://www.home-assistant.io/integrations/ifttt/
I will say I take a shortcut in the IFTTT webhook body and call the script directly in the service variable:
Other than that, everything else is verbatim what the instructions show
1 Like
Yes it work like this !! : {“action”: “call_service”, “service”: “script.envoi_liste_courses”}
But I didn’t see in the link you give, and that I’ve already consulted, where it is explained that you can call the service directly…
Thank you !!!
Markus99
(Mark)
October 29, 2019, 12:51pm
6
Hmm… I’m not expert my any means, but possibly scripts need to be turned on / called directly - where as other entities (lights, swtiches, etc.) need to have the extra entity_id variable? Regardless, glad it works for you!