* Roomba: add last mission sensor * Set sensor as unavailable if last mission timestamp is 0 Previously, if the `mssnStrtTm` was 0, the function would return a 1970-01-01 (Unix epoch start date). With this change, the function will return None if the timestamp is 0 and the sensor will become unavailable. * Update last_mission property to use dt_util.utc_from_timestamp
41 lines
848 B
JSON
41 lines
848 B
JSON
{
|
|
"entity": {
|
|
"binary_sensor": {
|
|
"bin_full": {
|
|
"default": "mdi:delete-variant"
|
|
}
|
|
},
|
|
"sensor": {
|
|
"battery_cycles": {
|
|
"default": "mdi:counter"
|
|
},
|
|
"total_cleaning_time": {
|
|
"default": "mdi:clock"
|
|
},
|
|
"average_mission_time": {
|
|
"default": "mdi:clock"
|
|
},
|
|
"total_missions": {
|
|
"default": "mdi:counter"
|
|
},
|
|
"successful_missions": {
|
|
"default": "mdi:counter"
|
|
},
|
|
"canceled_missions": {
|
|
"default": "mdi:counter"
|
|
},
|
|
"failed_missions": {
|
|
"default": "mdi:counter"
|
|
},
|
|
"scrubs_count": {
|
|
"default": "mdi:counter"
|
|
},
|
|
"total_cleaned_area": {
|
|
"default": "mdi:texture-box"
|
|
},
|
|
"last_mission": {
|
|
"default": "mdi:calendar-clock"
|
|
}
|
|
}
|
|
}
|
|
}
|