IFTTT component

Hi
i fallow the instruction in the HA IFTTT component and i cant get it to work.
not sending from HA and not sending from IFTTT.
i did wrote in the configuration.yaml
ifttt:
key: xxxxxxxxxxxxxxxx
and fallow everything else as instructed in the IFTTT page
but no go
any idea?

Refael

OK. now the Sending events to IFTTT is working. i didnt put right name in the “event name”, but the string that i put is
{“event”: “TestHA”, “value1”: “Hello World”} and i only get
“The event named “TestHA” occurred on the maker service”
and NOT “Hello World”.
still straggling with Sending events from IFTTT to Home Assistant

Refael

did you create the IFTTT integration and get the webhook?

yes i did.

Refael

well post what you want to send back with password redacted so we can help

Hi
do i need to leave the text in automations.yaml like this

- id: 'reciveIfttt'
  alias: recive IFTTT
  trigger:
    platform: event
    event_type: ifttt_webhook_received
    event_data:
      action: call_service
  condition: []
  action:
    service_template: '{{ trigger.event.data.service }}'
    data_template:
      entity_id: '{{ trigger.event.data.service }}'

or should i put the service_template and the entity_id like this

- id: 'reciveIfttt'
  alias: recive IFTTT
  trigger:
    platform: event
    event_type: ifttt_webhook_received
    event_data:
      action: call_service
  condition: []
  action:
    service_template: switch.turn_on
    data_template:
      entity_id: switch._light_door_out

Thamks
Refael`Preformatted text`

OK. i think that grate news. so if i understand you right,for the Sending events to IFTTT, i do need to make automation but for the Sending events from IFTTT, i do not? right?
and also, how do i know that i put is the right "URL api webhook "?
when i Integrations in HA and than to IFTTT:IFTTT webhook, i dont see the api that HA gave when i configure IFTTT.

Thanks
Refael

1 Like

Actually… it’s changed and you do need an automation for incoming it seems… all different since I used it. You need to follow the docs here https://www.home-assistant.io/components/ifttt/

So in the IFTTT Integration you should have a webhook that you give IFTTT. Then IFTTT needs to construct JSON like this:

{ "action": "call_service", "service": "light.turn_on", "entity_id": "light.living_room" }

So that IFTTT can tell HA what it wants HA to do.
In that example it’s calling a service to turn light.living_room on…

Sorry for the bum steer - I don’t use IFTTT anymore at all.

Thanks a lot for your reply

Refael

1 Like