mirror of
https://github.com/mitchellrj/eufy_robovac.git
synced 2025-11-25 12:42:40 +00:00
Figured out the 'Recharge' status.
This commit is contained in:
@@ -47,8 +47,8 @@ class WorkStatus(StringEnum):
|
||||
STAND_BY = 'standby'
|
||||
# Not in the dock - goes into this state after being paused for a while
|
||||
SLEEPING = 'Sleeping'
|
||||
# ? Not sure how this differs from charging
|
||||
RECHARGING = 'Recharge'
|
||||
# Going home because battery is depleted
|
||||
RECHARGE_NEEDED = 'Recharge'
|
||||
# In the dock, full charged
|
||||
COMPLETED = 'completed'
|
||||
|
||||
|
||||
@@ -121,8 +121,9 @@ class EufyVacuum(VacuumDevice):
|
||||
return STATE_CLEANING
|
||||
elif self.robovac.work_status == robovac.WorkStatus.CHARGING:
|
||||
return STATE_DOCKED
|
||||
elif self.robovac.work_status == robovac.WorkStatus.RECHARGING:
|
||||
return STATE_DOCKED
|
||||
elif self.robovac.work_status == robovac.WorkStatus.RECHARGE_NEEDED:
|
||||
# Should be captured by `go_home` above, but just in case
|
||||
return STATE_RETURNING
|
||||
elif self.robovac.work_status == robovac.WorkStatus.SLEEPING:
|
||||
return STATE_IDLE
|
||||
elif self.robovac.work_status == robovac.WorkStatus.STAND_BY:
|
||||
|
||||
Reference in New Issue
Block a user