I’m trying to follow the integration instructions for IFTTT and have become very confused. My problem is likely because what I want to do does not follow the example in the docs and I’m not understanding how the fields relate to each other and what is going on in the automation. With that said, I have this:
I’m trying to send a webhook from IFTTT to HA to trigger a Broadlink to send a remote code. I’ve got my fields filled out in IFTTT and this is what is in the body of the web-hook:
{ "service": "broadlink.send", "host": "10.0.1.220", "packet": ">- JgBQAAABIZQTERQ1ExITEhISFBETEhMRFBEUERMSEhITEhM2ExISNxQREhMSExMRFBESExITEzYTNhM2EzYTNhM2EjcTNxMRFAAF2wABJkkTAA0FAAAAAAAAAAA=" }
I’m stuck on what to do with the body. I’ve got this so far, mostly from the docs page. It is giving an error in the GUI automation editor:
- id: '1576426431512'
alias: Alexa TV Off
description: ''
trigger:
- event_data:
action: call_service
event_type: ifttt_webhook_received
platform: event
condition: []
action:
- data_template:
entity_id: '{{ trigger.event.data.entity_id }}'
service_template: '{{ trigger.event.data.service }}'
If I trigger the IFTTT it does make it to HA. I can see that in automations “last triggered”. I just don’t know how to parse once it gets here.