Skip to content

Commit 07a1cec

Browse files
committed
feat(q10): request all necessary DPs in StatusTrait.refresh()
Add all data points needed by Home Assistant sensors: - Brush/filter life indicators - Cleaning statistics (time, area, count, progress) - Fault status
1 parent b6ffdd8 commit 07a1cec

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

roborock/devices/traits/b01/q10/status.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,20 @@ async def refresh(self) -> dict[B01_Q10_DP, Any]:
3333
self._channel,
3434
command=B01_Q10_DP.REQUEST_DPS,
3535
params={},
36-
expected_dps={B01_Q10_DP.STATUS, B01_Q10_DP.BATTERY},
36+
expected_dps={
37+
B01_Q10_DP.STATUS,
38+
B01_Q10_DP.BATTERY,
39+
B01_Q10_DP.MAIN_BRUSH_LIFE,
40+
B01_Q10_DP.SIDE_BRUSH_LIFE,
41+
B01_Q10_DP.FILTER_LIFE,
42+
B01_Q10_DP.CLEAN_TIME,
43+
B01_Q10_DP.TOTAL_CLEAN_TIME,
44+
B01_Q10_DP.TOTAL_CLEAN_COUNT,
45+
B01_Q10_DP.CLEAN_AREA,
46+
B01_Q10_DP.TOTAL_CLEAN_AREA,
47+
B01_Q10_DP.CLEAN_PROGRESS,
48+
B01_Q10_DP.FAULT,
49+
},
3750
)
3851
self._data = decoded
3952
return decoded

0 commit comments

Comments
 (0)