Hi!
I´ve gotten this to work. In the configuration.yaml file I have added these codes thats more than standard install:
http:
api_password: my-code
base_url: https://my-domain.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: https://my-domain.duckdns.org:3218
vacuum:
- platform: xiaomi_miio
host: my-vacuum_ip
token: my-token
name: Bellman
ifttt:
key: my-key
In the scripts.yaml I have these codes:
vacuum_kitchen:
alias: "Vacuum the kitchen"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.Bellman
command: app_zoned_clean
params: [[25300,29300,28800,32000,1]]
vacuum_livingroom:
alias: "Vacuum the living room"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.Bellman
command: app_zoned_clean
params: [[22800,25100,27700,28600,1]]
vacuum_hallway:
alias: "Vacuum the hallway"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.Bellman
command: app_zoned_clean
params: [[22600,28600,25300,32000,1]]
vacuum_bathroom:
alias: "Vacuum the bathroom"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.Bellman
command: app_zoned_clean
params: [[22600,32100,24300,33800,1]]
vacuum_bedroom:
alias: "Vacuum the bedroom"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.Bellman
command: app_zoned_clean
params: [[24300,32000,28800,35100,1], [23000,34300,24300,35100,1]]
vacuum_empty:
alias: "Move to empty the bin"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.Bellman
command: app_goto_target
params: [25500,27300]
vacuum_return:
alias: "Return to dock"
sequence:
- service: vacuum.return_to_base
data:
entity_id: vacuum.Bellman
vacuum_start:
alias: "Vacuum the home"
sequence:
- service: vacuum.start
data:
entity_id: vacuum.Bellman
vacuum_stop:
alias: "Stop vacuum"
sequence:
- service: vacuum.stop
data:
entity_id: vacuum.Bellman
In the ifttt i have this under url:
https://my-domain.duckdns.org:8123/api/services/script/vacuum_bedroom?api_password=my-code
Method post, content type text/plain and body is empty.
I have configurator, duck dns and samba upp and running correctly too.
However I can NOT get the “new way” to work:
That means calling a script with the hassio url for webhook and with this code in automations:
-alias: "Execute IFTTT commands"
trigger:
platform: event
event_type: ifttt_webhook_received
event_data:
action: call_service
action:
service_template: '{{ trigger.event.data.service }}'
data_template:
entity_id: '{{ trigger.event.data.entity_id }}'
And then this in the webhooks body:
{ “action”: “call_service”, “service”: “script.turn_on”, “entity_id”: “script.clean_bedroom” }
The automation code “bricks” the hassio so I cant log in through the web interface so I need the remove it with samba and then pull the cord.