Xiaomi MIoT configs #406
Replies: 10 comments 27 replies
-
Dreame D9 (
|
Beta Was this translation helpful? Give feedback.
-
Xiaomi Mi Mop/Xiaomi Mijia 1C (
|
Beta Was this translation helpful? Give feedback.
-
Dreame L10 Pro (
|
Beta Was this translation helpful? Give feedback.
-
Mi Robot Vacuum-Mop (
|
Beta Was this translation helpful? Give feedback.
-
Xiaomi Mijia 2C (
|
Beta Was this translation helpful? Give feedback.
-
Viomi V3 Max (viomi.vacuum.v23)
I didn't mess with repeats, but I don't think it will fit neatly into a single service call like other vacuums. - template: vacuum_clean_segment
service_call_schema:
service: xiaomi_miot.call_action
max_selections: 7
service_data:
entity_id: '[[entity_id]]'
siid: 4
aiid: 13
params:
- piid: 36
value: 0
- piid: 37
value: 1
- piid: 38
value: '[[selection_unwrapped]]'
force_params: true
Requires 2 service calls - the first to set the zone properties, then a second to start zone cleaning, which does not work in the # In map card:
- template: vacuum_clean_zone_predefined
name: Zones
service_call_schema:
service: input_number.set_value
service_data:
value: '[[zone_id]]'
entity_id: input_number.vacuum_zone_id
predefined_selections:
- zones: # Since these are not used in the actual automation, I've opted to display just an icon without zone outlines
- - 0
- 0
- 0
- 0
icon:
name: mdi:rug
x: -2475
'y': -1025
variables:
zone_id: 1
# Automation:
alias: "Vacuum: Trigger zone"
trigger:
- platform: numeric_state
entity_id: input_number.vacuum_zone_id
above: 0
condition: []
action:
- service: script.vacuum_clean_zone
data: {}
mode: single
# Script:
alias: "Vacuum: Clean Zone"
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ states('input_number.vacuum_zone_id') | float == 1 }}"
sequence:
- service: xiaomi_miot.set_miot_property
data:
entity_id: vacuum.dusty
siid: 6
piid: 2
value: "-3.4635,-0.3383,-3.4635,-2.5510,-0.1483,-2.5510,-0.1483,-0.3383"
- service: input_number.set_value # Reset to 0 so that selecting the next zone clean-up triggers automation.
data:
value: 0
target:
entity_id: input_number.vacuum_zone_id
- service: xiaomi_miot.call_action
data:
siid: 6
aiid: 5
entity_id: vacuum.dusty
mode: single
- service: xiaomi_miot.set_miot_property
data:
entity_id: vacuum.dusty
siid: 6
piid: 1
value: "-3.4635,-0.3383"
- service: xiaomi_miot.call_action
data:
siid: 6
aiid: 1
entity_id: vacuum.dusty |
Beta Was this translation helpful? Give feedback.
-
Anyone have i tried that from L10 Pro, it says "Success" but doesnt starting
Getting that result: |
Beta Was this translation helpful? Give feedback.
-
Xiaomi Mop 2 Pro+ (dreame.vacuum.p2041o)
script:
WARNING: multi zone is working for Rooms |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Here you can share service call schemas for Xiaomi MIoT integration.
Do not post other problems/questions in this thread as they will be removed
Beta Was this translation helpful? Give feedback.
All reactions