2022-05-11 16:41:13 +10:00
|
|
|
camera:
|
|
|
|
- platform: xiaomi_cloud_map_extractor
|
|
|
|
host: !secret xiaomi_vacuum_host
|
|
|
|
token: !secret xiaomi_vacuum_token
|
|
|
|
username: !secret xiaomi_cloud_username
|
|
|
|
password: !secret xiaomi_cloud_password
|
|
|
|
country: "sg"
|
2022-07-19 18:53:10 +10:00
|
|
|
name: Roborock S5 Map
|
|
|
|
force_api: xiaomi
|
2022-05-11 16:41:13 +10:00
|
|
|
draw: ["all"]
|
2022-07-19 18:53:10 +10:00
|
|
|
attributes:
|
|
|
|
- calibration_points
|
|
|
|
- rooms
|
|
|
|
- room_numbers
|
|
|
|
- vacuum_position
|
|
|
|
|
|
|
|
- platform: xiaomi_cloud_map_extractor
|
|
|
|
host: !secret xiaomi_vacuum2_host
|
|
|
|
token: !secret xiaomi_vacuum2_token
|
|
|
|
username: !secret xiaomi_cloud_username
|
|
|
|
password: !secret xiaomi_cloud_password
|
|
|
|
country: "sg"
|
|
|
|
name: Dreame Z10 Pro Map
|
|
|
|
force_api: dreame
|
|
|
|
draw: ["all"]
|
|
|
|
attributes:
|
|
|
|
- calibration_points
|
|
|
|
- rooms
|
|
|
|
- room_numbers
|
|
|
|
- vacuum_position
|
2022-05-11 16:41:13 +10:00
|
|
|
|
|
|
|
template:
|
|
|
|
- sensor:
|
|
|
|
- unique_id: robot_vacuum_battery_level
|
|
|
|
state: |
|
|
|
|
{{ state_attr('vacuum.robot_vacuum', 'battery_level') | int }}
|
|
|
|
unit_of_measurement: "%"
|
|
|
|
device_class: battery
|
|
|
|
state_class: measurement
|
|
|
|
name: Robot Vacuum Battery Level
|
|
|
|
binary_sensor:
|
|
|
|
- unique_id: robot_vacuum_charging
|
|
|
|
name: Robot Vacuum Charging
|
|
|
|
device_class: battery_charging
|
|
|
|
state: |
|
|
|
|
{{ is_state_attr('vacuum.robot_vacuum', 'status', 'Charging') }}
|