So I want to make my vacuum goto a point.
I manage to send it away using the dev tool by sending the following json:
{ “entity_id”: “vacuum.xiaomi_vacuum_cleaner”,“command”: “app_goto_target”,“params”: [20500, 25000]}
I want it do so by a picture element as follows:
- type: icon
icon: mdi:bell-ring
tap_action:
action: call-service
service: vacuum.send_command
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
command: app_goto_target
params: [20500,25000]
style:
top: 85%
left: 80%
color: '#3090C7'
But when pressing the element I get this error:
“required key not provided @ data[‘command’]”
It’s surely some syntax error on my part but cant figure out what I’ve done wrong.
Appreciate any help.