bloomkd46 / homebridge-iRobot

A homebridge plugin for controlling iRobot devices
Apache License 2.0
62 stars 14 forks source link

Bug Report: Docking doesn’t change status #61

Open jcorrod17 opened 2 years ago

jcorrod17 commented 2 years ago

Describe The Bug:

Hi. I have set the option that when docking change Eve status as inactive, but it doesn’t change and shows always as active. Thank you

To Reproduce:

*

Expected behavior:

*

Logs:

*

Config:

"name": "iRobot",           
"email": "****",            
"password": "****",            
"lowBattery": 20,            
"offAction": "pause:dock",            
"status": "cycle:clean",            
"eveStatus": "cycle:dock",            
"bin": "filter:contact",            
"ignoreMultiRoomBin": true,            
"hideStuckSensor": false,            
"disableMultiRoom": false,            
"platform": "iRobotPlatform"

Node Version:

16.13.1

NPM Version:

8.3.0

Homebridge Version:

1.4.0

Plugin Version:

2.1.13

Operating System:

Raspberian

bloomkd46 commented 2 years ago

Sorry about that. If you want it to show as inactive when docked set the eve inactive to Charging

jcorrod17 commented 2 years ago

Thank you for your answer. The option that when the robot finish, and return to the base, and then change the option to inactive is not possible? Sorry for muy bad english

jcorrod17 commented 2 years ago

I mean, I want it to show as inactive when docking (returning to base), but it doesn't work. Thanks

bloomkd46 commented 2 years ago

Ok, I will have to check the code but I believe that docking is something like phase:hwuserdock. But I would have to look into it.

P.S. if you would like to find out quicker then enable debug logging in homebridge. The tell your Roomba to dock using either the iRobot or home app then look in the logs for a mission report. It should include phase: “”, if you copy the phase contents then modify the config directly to be “phase:

jcorrod17 commented 2 years ago

[iRobot] Roomba's mission update: cleeanMissionStatus: { "cycle": "clean", "phase": "hmUsrDock", "expireM": 0, "rechrgM": 0, "error": 0, "notReady": 0, "mssnM": 0, "expireTm": 0, "rechrgTm": 0, "mssnStrtTm": 1643089210, "operatingMode": 0, "initiator": "localApp", "nMssn": 332, "missionId": "01FT7VZAMG3K64HWVF3E4F7W0D" } batPct: 100 bin: {"present":true,"full":true} lastCommand: {"command":"dock","initiator":"rmtApp","time":1643089611,"ordered":null,"pmap_id":null,"regions":null,"user_pmapv_id":null,"favorite_id":null,"params":null}

bloomkd46 commented 2 years ago

Ok, so you will have to manually change the config so that the eve inactive field is set to "phase:hmUsrDock"

jcorrod17 commented 2 years ago

And one last question, which file should i have to modify? Thanks

bloomkd46 commented 2 years ago

Just edit the homebridge config.json file in the custom ui

jcorrod17 commented 2 years ago

It doesn't work. If I change it the homekit active field, it works (but is shown as inactive until I send the robot to the base). But in the eve inactive field it doesnt work. Sorry for the inconvenience.

bloomkd46 commented 1 year ago

Please try the latest beta: npm