Ifttt, webhook, script.turn_on, automation.trigger .... nothing want to work!

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

thank you, i see it :wink:

but i don’t want use api_password :confused:

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:

image

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 !!!

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!