|
|
本帖最后由 feynman 于 2026-1-17 18:33 编辑
石头扫地机器人接入HA,想要地图,可是就是不显示,有次成功,之后就如下图这样了,有了xiaomi cloud map extractor这个集成,
代码如下:
camera:
- platform: xiaomi_cloud_map_extractor
host: xxx.xxx.xx.xxx #这个已经换了我家的石头IP
token: !secret roborock_token #这个已经换了我家的石头token
username: !secret xiaomi_id #这个已经换了我的米家账号
password: !secret xiaomi_pw #这个已经换了我的米家账号密码
country: "cn"
draw: ["all"]
colors:
color_map_inside: [43, 47, 48]
color_map_outside: [32, 36, 37]
color_map_wall: [100, 196, 254]
color_grey_wall: [216, 5, 69]
color_path: [30, 80, 113]
color_virtual_walls: [100, 196, 254]
color_charger: [244, 103, 15]
color_robo: [244, 244, 144]
color_unknown: [0, 0, 0]
map_transformation:
rotate: 270
attributes:
- calibration_points
|
|