2025年1月19日星期日 上午10:21:05

DEEBOT X5 PRO to HA via ecovacs integration

8 个月 前
#34238 引用
机器人1:科沃斯扫地机器人X5 pro接入HA
2024.05,买的机器人X5 pro上下水版,白色,因为黑色有灰显脏。

价格麻,5000到5600不等。Tb最不靠普,订单直接给我7600.

这个与HA的版本号有关糸
一丶在2024.2之前,用deebot integration
图2

old 原作者的
github.com/DeebotUniverse/Deebot-4-Home-Assistant

二丶从2024.2以后,用官方自带的ecovacs integration

new 官方已经收录了,并且改了名
www.home-assistant.io/integrations/ecovacs

Ecovacs 是 要自己写ui,在configuration.yaml里面配置。

其实就是同一个。

三、2024.5.x以后可以直接在ui进行配置


https://deebot.readthedocs.io/integrations/home-assistant/services/

https://deebot.readthedocs.io/home/projects/

Deebot for Home Assistant (Home Assistant)

Client Library for Deebot devices (Vacuums)
https://github.com/DeebotUniverse/client.py

deebot-client is a python library and is used by the following projects

https://deebot.readthedocs.io/home/projects/

The X5 is currently not supported
https://github.com/home-assistant/core/issues/133193
My model is not working with HA 2024.12 and newer
https://github.com/DeebotUniverse/client.py/issues/492

4.Ecovacs model no longer supported in HA 2024.12+
https://www.home-assistant.io/blog/2024/12/04/release-202412/#backward-incompatible-changes

Release: https://github.com/DeebotUniverse/client.py/releases/tag/9.0.0
The reason for the breaking change is that the fallback created more issues than it solved.
Examples:

Mower/Win bot mapped as vacuum
Due to incorrect mapping used the wrong command -> a lot of errors in the logs
Continuously bug reports on not working features

https://github.com/home-assistant/core/pull/131525
0
7 个月 前
#39287 引用
DEEBOT X5 PRO  to HA via ecovacs integration

What version of Home Assistant Core has the issue?
2024.10.4


官方集成

run ok

版本  core-2024.10.4
安装类型  Home Assistant OS
开发版  false
Supervisor  true
Docker  true
用户  root
虚拟环境  false
Python 版本  3.12.4
操作系统系列  Linux
操作系统版本  6.6.54-haos
CPU 架构  x86_64
时区  Asia/Hong_Kong
配置目录  /config






https://bbs.hassbian.com/forum.php?mod=redirect&goto=findpost&ptid=23283&pid=608159
0
4 个月 前
#46518 引用
Ecovacs - cloud

I set up the lock as follows:
Added to ecovacs app
Installed  ecovacs integration
Added ecovacs integration
Enabled login  in ecovacs integration
Added to HA

Ecovacs Home app > DEEBOT X5 PRO > Home assistant > Install ecovacs integration

logs
https://github.com/mslycn/homeassistant20221103/commit/f6967bde55f087baa3d3daab3123c4ccfc60c30f
0
4 个月 前
#46523 引用
login
  
  Ecovacs app email: [your iphone]
    Ecovacs app password: [your password]
    your two-letter country code: cn
    your two-letter continent code: na
    Config saved.
0
4 个月 前
#46524 引用
1

xi_yi_fang: 0
zhu_wo_wei_sheng_jian: 2
ke_ting_wei_sheng_jian: 1
er_tong_fang: 6
wo_shi: 8
shu_fang: 5
yang_tai: 7
ke_ren_fang: 4
chu_fang: 3
ke_ting: 9
0
2 个月 前
#50766 引用
image.18*_map_2

ccess_token: 7611ffbec78f4dabf8e9c92740191f6d3bf5f45c630d000ec524cf973cd9f691

map_name: 地图 1
entity_picture: /api/image_proxy/image.18_map_2?token=7611ffbec78f4dabf8e9c92740191f6d3bf5f45c630d000ec524cf973cd9f691

friendly_name: 18 Map
0
2 个月 前
#50768 引用
this service call is working for me:



service: vacuum.send_command
target:
  entity_id: vacuum.18973616698_2
data:
  command: clean_V2
  params:
    act: start
    content:
      type: spot_area
      value: 5
    count: 2
0
2 个月 前
#50769 引用
I have an Ecovacs Deebot X5 pro. When I try to start it, it won't work. In the logs, I see the error message:
 'Command "clean" was not successful. Body={'code': 20003, 'msg': 'rcp not support'}.'
0
2 个月 前
#50770 引用
this service call is working for me: clean specific room
Clean area command   run ok  扫地模式

service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: start
    content:
      type: freeClean
      value: 1,6  


source:https://github.com/DeebotUniverse/client.py/blob/de64f8a3cd02c709579dea1c60e0d4acb0da999e/deebot_client/commands/json/clean.py#L80


service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: start
    content:
      type: freeClean
      value: 0,6
    count: 2  


act: start/stop/pause/resume
type: auto/freeClean/spot_area、entrust
auto:边扫边拖
entrust:AI Intelligent


not ok

service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: start
    content:
      type: spot_area
      value: 5


entrust:AI Intelligent-run ok

service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: start
    content:
      type: entrust


service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: getCleanInfo_V2


source:https://github.com/DeebotUniverse/client.py/issues/492#issuecomment-2175390098

https://github.com/home-assistant/core/issues/110177#issuecomment-2243539077

I just bought a Ecovacs Deebot X2 Omni on the Amazon Prime day. Most items are working with HA (including the map) except the following commands. They all use clean_v2. I managed to capture the commands using mitmproxy.

`Start - no specific rooms
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"start","content":{"type":"auto"}}},"header":{"channel":"iOS","reqid":"mFzbaJ","ts":"1721578377422","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}

  边扫边拖  全屋  run ok
service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: start
    content:
      type: auto
    count: 2  



Pause
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"pause"}},"header":{"channel":"iOS","reqid":"XJJVQC","ts":"1721501740569","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}

 
service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: pause
  


Resume
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"resume"}},"header":{"channel":"iOS","reqid":"WkPeTw","ts":"1721683540650","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}
  
service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: resume
  


Stop
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"stop"}},"header":{"channel":"iOS","reqid":"STGBNz","ts":"1721578535395","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}

  
service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: stop
  


Clean laundry room only (room number 6)
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"start","content":{"type":"freeClean","value":"1,6"}}},"header":{"channel":"iOS","reqid":"FWIpXR","ts":"1721578761142","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}

Clean two rooms (14 & 11)
0
2 个月 前
#50771 引用
[url]I just bought a Ecovacs Deebot X2 Omni on the Amazon Prime day. Most items are working with HA (including the map) except the following commands. They all use clean_v2. I managed to capture the commands using mitmproxy.

`Start - no specific rooms
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"start","content":{"type":"auto"}}},"header":{"channel":"iOS","reqid":"mFzbaJ","ts":"1721578377422","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}

Pause
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"pause"}},"header":{"channel":"iOS","reqid":"XJJVQC","ts":"1721501740569","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}

Resume
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"resume"}},"header":{"channel":"iOS","reqid":"WkPeTw","ts":"1721683540650","ver":"0.0.50","m":"request","pri":1,"tzm":-420}}

Stop
POST https://api-ngiot.dc-na.ww.ecouser.net/api/iot/endpoint/control?si=xxx&apn=clean_V2&fmt=j HTTP/2.0
{"body":{"data":{"act":"stop"}}

service: vacuum.send_command
target:
  entity_id: vacuum.18_2
data:
  command: clean_V2
  params:
    act: stop
    content:
      type: freeClean
      value: 1,6  
0