mirror of
https://github.com/home-assistant/core
synced 2024-08-02 23:40:32 +02:00
Add xiaomi_miio vacuum current cleaning cycle statistics sensor (#61098)
This commit is contained in:
parent
0ac9b62f97
commit
6d162929a6
@ -115,6 +115,8 @@ ATTR_DND_START = "start"
|
||||
ATTR_DND_END = "end"
|
||||
ATTR_LAST_CLEAN_TIME = "duration"
|
||||
ATTR_LAST_CLEAN_AREA = "area"
|
||||
ATTR_STATUS_CLEAN_TIME = "clean_time"
|
||||
ATTR_STATUS_CLEAN_AREA = "clean_area"
|
||||
ATTR_LAST_CLEAN_START = "start"
|
||||
ATTR_LAST_CLEAN_END = "end"
|
||||
ATTR_CLEAN_HISTORY_TOTAL_DURATION = "total_duration"
|
||||
@ -446,6 +448,22 @@ VACUUM_SENSORS = {
|
||||
name="Last Clean Area",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
f"current_{ATTR_STATUS_CLEAN_TIME}": XiaomiMiioSensorDescription(
|
||||
native_unit_of_measurement=TIME_SECONDS,
|
||||
icon="mdi:timer-sand",
|
||||
key=ATTR_STATUS_CLEAN_TIME,
|
||||
parent_key=VacuumCoordinatorDataAttributes.status,
|
||||
name="Current Clean Duration",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
f"current_{ATTR_LAST_CLEAN_AREA}": XiaomiMiioSensorDescription(
|
||||
native_unit_of_measurement=AREA_SQUARE_METERS,
|
||||
icon="mdi:texture-box",
|
||||
key=ATTR_STATUS_CLEAN_AREA,
|
||||
parent_key=VacuumCoordinatorDataAttributes.status,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
name="Current Clean Area",
|
||||
),
|
||||
f"clean_history_{ATTR_CLEAN_HISTORY_TOTAL_DURATION}": XiaomiMiioSensorDescription(
|
||||
native_unit_of_measurement=TIME_SECONDS,
|
||||
icon="mdi:timer-sand",
|
||||
|
Loading…
Reference in New Issue
Block a user