繁體中文
繁體中文
外觀
繁體中文
繁體中文
外觀
該整合提供多種自訂服務,用於執行進階操作和功能,這些操作和功能無法透過標準實體直接控制。這些自訂服務使用 vacuum 域,並提供對設備特定功能的細緻控制。
dreame_vacuum.vacuum_clean_segment
啟動選定房間的清掃,並可選擇自訂清潔參數。
注意
customized_cleaning 或 cleaning_sequence 時,設備會忽略清潔參數和清潔順序。設定清潔模式
此服務不接受 cleaning_mode 參數。若要在開始清掃前動態設定模式,請參閱 常見問題。
清掃房間 3
service: dreame_vacuum.vacuum_clean_segment
data:
segments: 3
target:
entity_id: vacuum.vacuum清掃房間 3 和 5
service: dreame_vacuum.vacuum_clean_segment
data:
segments:
- 3
- 5
target:
entity_id: vacuum.vacuum清掃房間 3 和 5 兩次
service: dreame_vacuum.vacuum_clean_segment
data:
segments:
- 3
- 5
repeats: 2
target:
entity_id: vacuum.vacuum清掃房間 2 兩次,房間 5 一次
service: dreame_vacuum.vacuum_clean_segment
data:
segments:
- 3
- 5
repeats:
- 2
- 1
target:
entity_id: vacuum.vacuum以高風速清掃房間 3 和 5
service: dreame_vacuum.vacuum_clean_segment
data:
segments:
- 3
- 5
suction_level: "high"
target:
entity_id: vacuum.vacuum清掃房間 3 以高風速,房間 5 以安靜風速
service: dreame_vacuum.vacuum_clean_segment
data:
segments:
- 3
- 5
suction_level:
- "high"
- "quiet"
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_clean_zone
開始選定區域清潔,並可選擇自訂清潔參數。
清潔選定區域
service: dreame_vacuum.vacuum_clean_zone
data:
zone:
- 819
- -263
- 4424
- 2105
target:
entity_id: vacuum.vacuum清潔多個區域
service: dreame_vacuum.vacuum_clean_zone
data:
zone:
- - 819
- -263
- 4424
- 2105
- - 2001
- -3050
- 542
- 515
target:
entity_id: vacuum.vacuum將選定區域清潔兩次
service: dreame_vacuum.vacuum_clean_zone
data:
zone:
- 819
- -263
- 4424
- 2105
repeats: 2
target:
entity_id: vacuum.vacuum將第一區清潔兩次,第二區清潔三次
service: dreame_vacuum.vacuum_clean_zone
data:
zone:
- - 819
- -263
- 4424
- 2105
- - 2001
- -3050
- 542
- 515
repeats:
- 2
- 3
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_clean_spot
開始選定點清潔,並可選擇自訂清潔參數。
注意
點清潔功能僅適用於小米/米家品牌掃地機器人,但也可用於追覓設備。
清潔選定點
service: dreame_vacuum.vacuum_clean_spot
data:
points:
- 819
- -263
target:
entity_id: vacuum.vacuum清潔多個點
service: dreame_vacuum.vacuum_clean_spot
data:
points:
- - 819
- -263
- - 2001
- -3050
target:
entity_id: vacuum.vacuum將選定點清潔兩次
service: dreame_vacuum.vacuum_clean_spot
data:
points:
- 819
- -263
repeats: 2
target:
entity_id: vacuum.vacuum將第一點清潔兩次,第二點清潔三次
service: dreame_vacuum.vacuum_clean_spot
data:
points:
- - 819
- -263
- - 2001
- -3050
repeats:
- 2
- 3
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_goto
將機器人送到地圖上的單一座標並停留在該處。
注意
提示
您可以使用 小米掃地機地圖卡 取得點座標。
service: dreame_vacuum.vacuum_goto
data:
x: 819
y: -2235
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_follow_path
啟動一個巡航路徑任務,依次訪問給定座標,並返回充電座。
警告
該裝置僅在直播攝像頭串流啟動時,才能執行跟隨路徑任務。與 指哪到哪 不同,此服務與攝像頭綁定,您必須先從官方 App 開啟攝像頭才能調用它。否則,機器人將完全忽略該請求,什麼也不做。
注意
points 時,將使用當前地圖中保存的巡航點。啟動任務至少需要一個有效或保存的座標。跟隨由三個點組成的路徑
service: dreame_vacuum.vacuum_follow_path
data:
points:
- - 819
- -263
- - 2001
- -3050
- - 542
- 515
target:
entity_id: vacuum.vacuum跟隨當前地圖保存的巡航點
service: dreame_vacuum.vacuum_follow_path
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_start_shortcut
啟動在官方 App 上創建的快捷任務。
注意
shortcuts 屬性取得捷徑 ID。button.{vacuum_name}_shortcut_{shortcut_id},因此通常不需要使用此服務。service: dreame_vacuum.vacuum_start_shortcut
data:
shortcut_id: 32
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_rename_shortcut
為捷徑設定自訂名稱。
注意
shortcuts 屬性取得捷徑 ID。Mopping after sweeping 變為 Mopping after sweeping2。service: dreame_vacuum.vacuum_rename_shortcut
data:
shortcut_id: 32
shortcut_name: "Mopping after sweeping"
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_delete_shortcut
刪除一個捷徑。
注意
shortcuts 屬性取得捷徑 ID。service: dreame_vacuum.vacuum_delete_shortcut
data:
shortcut_id: 34
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_install_voice_pack
安裝官方語音包。
dreame_vacuum.vacuum_set_cleaning_sequence
在當前地圖上設置房間清掃順序。
注意
必須以序列列表的形式傳入準確的房間 ID 數量
將當前地圖的房間清掃順序設置為 3、5、4、2、1
service: dreame_vacuum.vacuum_set_cleaning_sequence
data:
cleaning_sequence:
- 3
- 5
- 4
- 2
- 1
target:
entity_id: vacuum.vacuum禁用當前地圖上的自定義清掃順序
service: dreame_vacuum.vacuum_set_cleaning_sequence
data:
cleaning_sequence: []
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_set_custom_cleaning
在當前地圖上設置自定義房間清掃參數。
注意
所有房間的設置必須以列表形式傳入
將房間 1 風扇速度設置為安靜,水位設置為低,清掃次數設置為 2;房間 5 風扇速度設置為渦輪,水位設置為中等,重複次數設置為 1
service: dreame_vacuum.vacuum_set_custom_cleaning
data:
segment_id:
- 1
- 5
suction_level:
- 0
- 3
water_volume:
- 1
- 2
repeats:
- 2
- 1
target:
entity_id: vacuum.vacuum將房間 3 的濕度等級設置為 16
service: dreame_vacuum.vacuum_set_custom_cleaning
data:
segment_id:
- 3
wetness_level:
- 16
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_reset_consumable
按類型重置消耗品壽命。
main_brushside_brushfiltertank_filtersensormop_padsilver_iondetergentsqueegedirty_water_channelonboard_dirty_water_tankdeodorizerwheelscale_inhibitorfluffing_rollerrollermop_filterwater_outlet_filterwashboard_cleaning重置主刷壽命
service: dreame_vacuum.vacuum_reset_consumable
data:
consumable: "main_brush"
target:
entity_id: vacuum.vacuum重置拖布墊壽命
service: dreame_vacuum.vacuum_reset_consumable
data:
consumable: "mop_pad"
target:
entity_id: vacuum.vacuumdreame_vacuum.vacuum_remote_control_move_step
向吸塵器發送遙控命令。
vacuum.send_command
發送命令服務可用於發送此整合中未提供的原始 API 請求。
僅供實驗性使用
不建議最終用戶直接使用此服務。如果有操作需要使用此服務,因為整合中尚未實現該功能,請改為 提交功能請求。
開始自動清空
service: vacuum.send_command
data:
entity_id: vacuum.vacuum
command: action
params:
did: "15.1"
siid: 15
aiid: 1
in: []啟用緊密拖地模式並禁用地毯增強
service: vacuum.send_command
data:
entity_id: vacuum.vacuum
command: set_properties
params:
- did: "4.29"
siid: 4
piid: 29
value: 1
- did: "4.12"
siid: 4
piid: 12
value: 0