清洁和巡航历史地图
清洁和巡航历史地图可以通过 Current Map 实体摄像头代理显示。






预览由 Dreame 吸尘器卡片
提供/api/camera_history_map_proxy/{entity_id}?token={access_token}&index={history_index}&cruising={is_cruising_history}&info={info_text}&dirty={dirty_map}
- entity_id:当前地图实体的ID(
camera.{vacuum_name}_map) - access_token:摄像头实体访问令牌(可从
camera.{vacuum_name}_map实体属性获取) - history_index(可选,默认 = 1):历史条目的索引,从1到25(可从
sensor.{vacuum_name}_cleaning_history实体属性获取) - is_cruising_history(可选,默认 = 0):可以设置为1以获取巡航历史,而不是清洁历史(仅在具备巡航功能的设备上)
- info_text(可选,默认 = 1):可以设置为0以将地图图像渲染为透明且无顶部标题文字
- dirty_map(可选,默认 = 0):可以设置为1以渲染 CleanGenius 及二次清洁功能的脏地图图像
提示
如果请求的历史地图不存在,将返回 404。
示例:
text
http://local.homeassistant/api/camera_history_map_proxy/camera.vacuum_map?token=5df93cfcf8ecc23fa17b233ca938cc52f41e2b17a46ca291865be3f9ba64d89b&index=5