naofireblade / homebridge-neato

A Neato vacuum robot plugin for homebridge.
MIT License
69 stars 18 forks source link

Botvac D5 is always put into 'extra-care' mode when started. #3

Closed CooperCGN closed 7 years ago

CooperCGN commented 7 years ago

It's me again. ;)

I guess it has something to with the payload posted to the neato cloud. I tried to figure it out on my own but as I am a total JS noob, maybe you can point me to where the specific call is made to start the robot.

I had the same problem with a php script, there I had to alter a parameter called navigationMode from 2 to 1.

thanks for your help

naofireblade commented 7 years ago

Hey welcome back. Thanks for the feedback.

I will add a switch to set extra care mode on/off. But before I can do that I need to enhance the underlying node-botvac so that I can determine if it is a D5 or not. Because users with an older robot shouldn't see a switch that is useless for them. This might take some days.

Meanwhile, if you want set the default to navigationMode 1, it's on line 159 of index.js Just replace it with this line:

that.robot.startCleaning(that.robot.eco, 1, callback);

naofireblade commented 7 years ago

I got another idea. Maybe its sufficient to set this in the config? This way you can't change it in the UI but the setting will be preserved after a homebridge restart. What do you think?

CooperCGN commented 7 years ago

Well, I think for me that would be sufficient as I have two D5 running in my home. I have no idea how that would affect people with two different robots. I actually would prefer the settings thing, homekit is already cluttered by Neato switches (the D5 for example doesn't even have an eco/turbo mode).

naofireblade commented 7 years ago

Oh I didn't know that they removed a feature from the old Botvac Connected on the newer models. Ok in the first update I will add a config parameter for care navigation. Robots without this option just ignore the parameter. And later on I will make the eco/turbo switch model dependent.

CooperCGN commented 7 years ago

Neato still considers the Botvac Connected as their top of the range model although they improved some internal things for the D5 - maybe they need to sell them off due to high stock ;) The D5 has Start/Stop/Pause with optional extra-care (that means no bumping into furniture) and a spot clean mode (with the option doing the area twice and/or extra-care).

naofireblade commented 7 years ago

Yeah it seems strange that they add some new functionality on the D5 but keep some exclusive on the Botvac Connected (Maps, Turbo). I released version 0.4.1 with a config parameter for extraCareNavigation. Default ist off now, so nothing to do for you. But if you want to enable extraCareNavigation just set the parameter "extraCareNavigation" : true .