Roidmi Eva Room Cleaning #527
-
Hi, I have set up the Roidmi Eva (roidmi_v66_2276_robot_cleaner) in Map Extractor which works fine and am now trying to setup cleaning via vacuum map card. Testing with HA Dev Tools > Services, I clean rooms as needed and have also created a script for a room which works: alias: Clean Kitchen
sequence:
- service: xiaomi_miot.call_action
data:
entity_id: vacuum.roidmi_v66_2276_robot_cleaner
siid: 14
aiid: 1
params:
- 2
- "{\"mapId\":1234567890,\"segmentId\":[1]}"
mode: single But I cannot get it to work in the Card; type: custom:xiaomi-vacuum-map-card
entity: vacuum.roidmi_v66_2276_robot_cleaner
map_source:
camera: camera.xiaomi_cloud_map_extractor
calibration_source:
camera: true
map_modes:
- name: Room Selection
icon: mdi:floor-plan
tooltip: Start Rooms
run_immediately: false
coordinates_rounding: true
selection_type: ROOM
max_selections: 9
repeats_type: EXTERNAL
max_repeats: 3
service_call_schema:
service: xiaomi_miot.call_action
service_data:
entity_id: '[[entity_id]]'
siid: 14
aiid: 1
params:
- 2
- '{"mapId":1234567890,"segmentId":''[[selection]]''}'
throw: true
debug: true
predefined_selections:
........ A quick toast notification message appears in HA console (not on logs) that displays "Failed to call service xiaomi_miot/call_action. required key not provided @ data['aiid']..." I'm guessing it doesn't like my [[selection]] variable. The selection numbers are correct when I select in the Card Configuration but when I use the "Copy Servcie Call" it only dislays { Is there something obvious that I am missing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You need to add 2 spaces of indentation to whole max_selections: 9
repeats_type: EXTERNAL
max_repeats: 3
service_call_schema:
service: xiaomi_miot.call_action
service_data:
entity_id: '[[entity_id]]'
siid: 14
aiid: 1
params:
- 2
- '{"mapId":1234567890,"segmentId":''[[selection]]''}'
throw: true
debug: true |
Beta Was this translation helpful? Give feedback.
You need to add 2 spaces of indentation to whole
service_data
section :)