Simple IFTTT toggle switch

Hi!

I am noob so my apologies in advance.

I want to create a simple toggle switch, basically to connect sonoff with ewelink with HA via IFTTT. Tasmota YES but not yet :wink: So I need synchronization on/off in both ways

All current topics are not up to date or are not comprehensive. According to my knowledge, I need to:

  1. In configuration/integration add IFTTT where I get info:
IFTTT
URL: http://xxxxxxxx.duckdns.org/api/webhook/30xxxxxxxxxxxxxxx
Method: POST
Content Type: application/json
  1. Add in IFTTT webhook services
  2. Get API from IFTTT webhook setting that looks like that, the part after use/ is out API

URL
IFTTT Maker Webhooks

  1. Add to configuration.yaml

ifttt:
key: e2xxxxxxxxxxxxxxxxxxx

To that point I had no issues, even I managed to trigger ifttt action.

Next, the tricky part starts. I need to add input_boolean, switch (templet?), actions in Home Assistant + 4 ifttt applets. It would be super nice if somebody help with that. It seems that layout of ifttt applets for ewelink → HA has changed completely. But event than there is different votes about how it should look like http or https, with or without port

input_boolen in config

input_boolean:
  sonoff_bedroom_2:
    name: Switch Bedroom II
    initial: off

automation

- action:
  - data:
      event: sonoff_bedroom_2-on
    service: ifttt.trigger
  alias: Switch Bedroom II On
  condition: []
  id: 'abc'
  trigger:
  - entity_id: input_boolean.sonoff_bedroom_2
    from: 'off'
    platform: state
    to: 'on'
- action:
  - data:
      event: sonoff_bedroom_2-off
    service: ifttt.trigger
  alias: Switch Bedroom II Off
  condition: []
  id: 'cba'
  trigger:
  - entity_id: input_boolean.sonoff_bedroom_2
    from: 'on'
    platform: state
    to: 'off'