Hello! I need to create automation vacuum_zoned_clean by pressing Xiaomi Aqara Switch.
Version of Home Assistant is 0.87.1
Switch and Robot Vacuum are connected to HA.
I created this code. Syntax is OK, but the command doesn’t work.
No any reaction by pressing the button.
TASK IS: TO MAKE CODE.
Where I’m wrong. Please Help!
id: Korridor_zonedcleaning
alias: Korridor_zonedcleaning
triger:
- event_data:
click_type: single
entity_id: binary_sensor.switch_158d000210958e
event_type: click
platform: event
action:
service: vacuum.send_command
entity_id: vacuum.xiaomi_vacuum_cleaner
servise_data: {“entity_id”:
“vacuum.xiaomi_vacuum_cleaner”,
“command”: “app_zoned_clean”,
“params”: [[33000,32185,35000,34800,1]]