Google Assistant + IFTTT → HA Assist
Many of you have surely noticed that IFTTT and Google Assistant isn’t as good as it used to be, no longer can you use sentences with variables for instance.
But fear not - the python script provided in the first post can still be used together with HA Assist! Simply change automations.yaml
to this:
- id: '123456789'
alias: Clean room
description: Start Roborock room cleaning triggered from Assist
trigger:
- platform: conversation
command:
- "(clean|vacuum) (the) {rooms}"
action:
- service: python_script.vacuum_room
entity_id: vacuum.roborock
data_template:
area: '{{ trigger.slots.rooms }}'