File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " homebridge-roomba2 " : patch
3
+ ---
4
+
5
+ Recognise more Roomba phases, including more docking phases and stuck
Original file line number Diff line number Diff line change @@ -517,6 +517,7 @@ export default class RoombaAccessory implements AccessoryPlugin {
517
517
status . batteryLevel = state . batPct ! ;
518
518
status . binFull = state . bin ! . full ;
519
519
520
+ /* See https://www.openhab.org/addons/bindings/irobot/ for a list of phases */
520
521
switch ( state . cleanMissionStatus ! . phase ) {
521
522
case "run" :
522
523
status . running = true ;
@@ -525,18 +526,22 @@ export default class RoombaAccessory implements AccessoryPlugin {
525
526
526
527
break ;
527
528
case "charge" :
529
+ case "recharge" :
528
530
status . running = false ;
529
531
status . charging = true ;
530
532
status . docking = false ;
531
533
532
534
break ;
533
535
case "hmUsrDock" :
536
+ case "hmMidMsn" :
537
+ case "hmPostMsn" :
534
538
status . running = false ;
535
539
status . charging = false ;
536
540
status . docking = true ;
537
541
538
542
break ;
539
543
case "stop" :
544
+ case "stuck" :
540
545
status . running = false ;
541
546
status . charging = false ;
542
547
status . docking = false ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ declare module "dorita980" {
22
22
full : boolean
23
23
}
24
24
cleanMissionStatus ?: {
25
- phase : "run" | "charge" | "stop" | "hmUsrDock"
25
+ phase : string
26
26
}
27
27
}
28
28
You can’t perform that action at this time.
0 commit comments