Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spot areas not showing up in Eve / Wrong initialization of spot areas when using two bot devices #160

Open
Ben-Bitdiddle-DE opened this issue Jan 31, 2024 · 2 comments

Comments

@Ben-Bitdiddle-DE
Copy link

Ben-Bitdiddle-DE commented Jan 31, 2024

I was trying to setup my deebot configuration within homebridge. Plugin installs without errors and does find my deebots (i have two in my account), and homebridge buttons for "Clean", "Go Charge", "Charging status" do appear for both deebots.

They also seem to work as indended.

(1)
Then i was trying to get Eve running for predefined rooms (spot areas). First of all it seems that
"hideMotionSensor": false
has to be set, as the predefined area infos are hidden behind that motion entry within Eve. It makes sense after digging through it, but maybe a hint somewhere in the setup docs could clarify that, to save one from needless struggle.

(2)
After having found that i encountered, that the plugin (it seems) only reads the spot areas of the first configured device, or does not correctly reset the firsts values for the following device(s). So the spot areas are set to the same value or a mix of both for each device.

{
    "name": "Deebot",
    "countryCode": "DE",
    "username": "xxxx",
    "password": "xxxx",
    "devices": [
        {
            "label": "Deebot_EG",
            "deviceId": "b55ed940-6ce0-494d-9a0b-9bdb6d5d0715",
            "pollInterval": 30,
            "hideMotionSensor": false,
            "supportTrueDetect": true,
            "areaType1": "spotArea",
            "spotAreaIDs1": "9",
            "areaNote1": "K",
            "areaType2": "spotArea",
            "spotAreaIDs2": "10",
            "areaNote2": "EZ",
            "areaType3": "spotArea",
            "spotAreaIDs3": "11",
            "areaNote3": "Balkon",
            "areaType4": "spotArea",
            "spotAreaIDs4": "1",
            "areaNote4": "D",
            "areaType5": "spotArea",
            "spotAreaIDs5": "2",
            "areaNote5": "AZ",
            "areaType6": "spotArea",
            "spotAreaIDs6": "5",
            "areaNote6": "WC",
            "areaType7": "spotArea",
            "spotAreaIDs7": "4",
            "areaNote7": "WZ",
            "areaType8": "spotArea",
            "spotAreaIDs8": "6",
            "areaNote8": "Couch"
        },
        {
            "label": "Deebot_OG",
            "deviceId": "69e1ebd9-2722-4612-92c2-10723845aa0e",
            "pollInterval": 30,
            "hideMotionSensor": false,
            "supportTrueDetect": true,
            "areaType1": "spotArea",
            "spotAreaIDs1": "0",
            "areaNote1": "AZ",
            "areaType2": "spotArea",
            "spotAreaIDs2": "3",
            "areaNote2": "D",
            "areaType3": "spotArea",
            "spotAreaIDs3": "2",
            "areaNote3": "KZ",
            "areaType4": "spotArea",
            "spotAreaIDs4": "4",
            "areaNote4": "BZ",
            "areaType5": "spotArea",
            "spotAreaIDs5": "5",
            "areaNote5": "SZ"
        }
    ],
    "platform": "Deebot"
}

results in the following logs:

Line 18131: [1/31/2024, 1:06:04 PM] [Deebot] [Klaus Feger OG]  initialising with options: {"hideMotionSensor":false,"motionDuration":30,"lowBattThreshold":15,"showMotionLowBatt":false,"showBattHumidity":false,"showAirDryingSwitch":"presetting","supportTrueDetect":true,"commandType1":"","spotAreaCommand1":"","customAreaCommand1":"","commandNote1":"","commandType2":"","spotAreaCommand2":"","customAreaCommand2":"","commandNote2":"","commandType3":"","spotAreaCommand3":"","customAreaCommand3":"","commandNote3":"","commandType4":"","spotAreaCommand4":"","customAreaCommand4":"","commandNote4":"","commandType5":"","spotAreaCommand5":"","customAreaCommand5":"","commandNote5":"","commandType6":"","spotAreaCommand6":"","customAreaCommand6":"","commandNote6":"","commandType7":"","spotAreaCommand7":"","customAreaCommand7":"","commandNote7":"","commandType8":"","spotAreaCommand8":"","customAreaCommand8":"","commandNote8":"","commandType9":"","spotAreaCommand9":"","customAreaCommand9":"","commandNote9":"","commandType10":"","spotAreaCommand10":"","customAreaCommand10":"","commandNote10":"","commandType11":"","spotAreaCommand11":"","customAreaCommand11":"","commandNote11":"","commandType12":"","spotAreaCommand12":"","customAreaCommand12":"","commandNote12":"","commandType13":"","spotAreaCommand13":"","customAreaCommand13":"","commandNote13":"","commandType14":"","spotAreaCommand14":"","customAreaCommand14":"","commandNote14":"","commandType15":"","spotAreaCommand15":"","customAreaCommand15":"","commandNote15":"","pollInterval":30,"areaType1":"spotArea","spotAreaIDs1":"0","areaType2":"spotArea","spotAreaIDs2":"3","areaType3":"spotArea","spotAreaIDs3":"2","areaType4":"spotArea","spotAreaIDs4":"4","areaType5":"spotArea","spotAreaIDs5":"5","areaType6":"spotArea","spotAreaIDs6":"5","areaType7":"spotArea","spotAreaIDs7":"4","areaType8":"spotArea","spotAreaIDs8":"6"}.
Line 18134: [1/31/2024, 1:06:04 PM] [Deebot] [Karl Schrubb EG] initialising with options: {"hideMotionSensor":false,"motionDuration":30,"lowBattThreshold":15,"showMotionLowBatt":false,"showBattHumidity":false,"showAirDryingSwitch":"presetting","supportTrueDetect":true,"commandType1":"","spotAreaCommand1":"","customAreaCommand1":"","commandNote1":"","commandType2":"","spotAreaCommand2":"","customAreaCommand2":"","commandNote2":"","commandType3":"","spotAreaCommand3":"","customAreaCommand3":"","commandNote3":"","commandType4":"","spotAreaCommand4":"","customAreaCommand4":"","commandNote4":"","commandType5":"","spotAreaCommand5":"","customAreaCommand5":"","commandNote5":"","commandType6":"","spotAreaCommand6":"","customAreaCommand6":"","commandNote6":"","commandType7":"","spotAreaCommand7":"","customAreaCommand7":"","commandNote7":"","commandType8":"","spotAreaCommand8":"","customAreaCommand8":"","commandNote8":"","commandType9":"","spotAreaCommand9":"","customAreaCommand9":"","commandNote9":"","commandType10":"","spotAreaCommand10":"","customAreaCommand10":"","commandNote10":"","commandType11":"","spotAreaCommand11":"","customAreaCommand11":"","commandNote11":"","commandType12":"","spotAreaCommand12":"","customAreaCommand12":"","commandNote12":"","commandType13":"","spotAreaCommand13":"","customAreaCommand13":"","commandNote13":"","commandType14":"","spotAreaCommand14":"","customAreaCommand14":"","commandNote14":"","commandType15":"","spotAreaCommand15":"","customAreaCommand15":"","commandNote15":"","pollInterval":30,"areaType1":"spotArea","spotAreaIDs1":"0","areaType2":"spotArea","spotAreaIDs2":"3","areaType3":"spotArea","spotAreaIDs3":"2","areaType4":"spotArea","spotAreaIDs4":"4","areaType5":"spotArea","spotAreaIDs5":"5","areaType6":"spotArea","spotAreaIDs6":"5","areaType7":"spotArea","spotAreaIDs7":"4","areaType8":"spotArea","spotAreaIDs8":"6"}

which is identical for both devices (and resulting from the first configured device).

Hiding the first device

{
    "name": "Deebot",
    "countryCode": "DE",
    "username": "xxxx",
    "password": "xxxx",
    "devices": [
        {
            "label": "Deebot_EG",
            "deviceId": "b55ed940-6ce0-494d-9a0b-9bdb6d5d0715",
            **"ignoreDevice": true,**
            "pollInterval": 30,
            "hideMotionSensor": false,
            "supportTrueDetect": true,
            "areaType1": "spotArea",
            "spotAreaIDs1": "9",
            "areaNote1": "K",
            "areaType2": "spotArea",
            "spotAreaIDs2": "10",
            "areaNote2": "EZ",
            "areaType3": "spotArea",
            "spotAreaIDs3": "11",
            "areaNote3": "Balkon",
            "areaType4": "spotArea",
            "spotAreaIDs4": "1",
            "areaNote4": "D",
            "areaType5": "spotArea",
            "spotAreaIDs5": "2",
            "areaNote5": "AZ",
            "areaType6": "spotArea",
            "spotAreaIDs6": "5",
            "areaNote6": "WC",
            "areaType7": "spotArea",
            "spotAreaIDs7": "4",
            "areaNote7": "WZ",
            "areaType8": "spotArea",
            "spotAreaIDs8": "6",
            "areaNote8": "Couch"
        },
        {
            "label": "Deebot_OG",
            "deviceId": "69e1ebd9-2722-4612-92c2-10723845aa0e",
            "pollInterval": 30,
            "hideMotionSensor": false,
            "supportTrueDetect": true,
            "areaType1": "spotArea",
            "spotAreaIDs1": "0",
            "areaNote1": "AZ",
            "areaType2": "spotArea",
            "spotAreaIDs2": "3",
            "areaNote2": "D",
            "areaType3": "spotArea",
            "spotAreaIDs3": "2",
            "areaNote3": "KZ",
            "areaType4": "spotArea",
            "spotAreaIDs4": "4",
            "areaNote4": "BZ",
            "areaType5": "spotArea",
            "spotAreaIDs5": "5",
            "areaNote5": "SZ"
        }
    ],
    "platform": "Deebot"
}

leads to

Line 19103: [1/31/2024, 1:14:26 PM] [Deebot] [Klaus Feger OG] initialising with options: {"hideMotionSensor":false,"motionDuration":30,"lowBattThreshold":15,"showMotionLowBatt":false,"showBattHumidity":false,"showAirDryingSwitch":"presetting","supportTrueDetect":true,"commandType1":"","spotAreaCommand1":"","customAreaCommand1":"","commandNote1":"","commandType2":"","spotAreaCommand2":"","customAreaCommand2":"","commandNote2":"","commandType3":"","spotAreaCommand3":"","customAreaCommand3":"","commandNote3":"","commandType4":"","spotAreaCommand4":"","customAreaCommand4":"","commandNote4":"","commandType5":"","spotAreaCommand5":"","customAreaCommand5":"","commandNote5":"","commandType6":"","spotAreaCommand6":"","customAreaCommand6":"","commandNote6":"","commandType7":"","spotAreaCommand7":"","customAreaCommand7":"","commandNote7":"","commandType8":"","spotAreaCommand8":"","customAreaCommand8":"","commandNote8":"","commandType9":"","spotAreaCommand9":"","customAreaCommand9":"","commandNote9":"","commandType10":"","spotAreaCommand10":"","customAreaCommand10":"","commandNote10":"","commandType11":"","spotAreaCommand11":"","customAreaCommand11":"","commandNote11":"","commandType12":"","spotAreaCommand12":"","customAreaCommand12":"","commandNote12":"","commandType13":"","spotAreaCommand13":"","customAreaCommand13":"","commandNote13":"","commandType14":"","spotAreaCommand14":"","customAreaCommand14":"","commandNote14":"","commandType15":"","spotAreaCommand15":"","customAreaCommand15":"","commandNote15":"","pollInterval":30,"areaType1":"spotArea","spotAreaIDs1":"0","areaType2":"spotArea","spotAreaIDs2":"3","areaType3":"spotArea","spotAreaIDs3":"2","areaType4":"spotArea","spotAreaIDs4":"4","areaType5":"spotArea","spotAreaIDs5":"5","areaType6":"spotArea","spotAreaIDs6":"5","areaType7":"spotArea","spotAreaIDs7":"4","areaType8":"spotArea","spotAreaIDs8":"6"}.

which is the 2nd device configuration enriched by the last three spot areas of the first (disabled) device.

Another try has been to change the order of the devices in the configuration.

{
    "name": "Deebot",
    "countryCode": "DE",
    "username": "xxxx",
    "password": "xxxx",
    "devices": [
        {
            "label": "Deebot_OG",
            "deviceId": "69e1ebd9-2722-4612-92c2-10723845aa0e",
            "pollInterval": 30,
            "hideMotionSensor": false,
            "supportTrueDetect": true,
            "areaType1": "spotArea",
            "spotAreaIDs1": "0",
            "areaNote1": "AZ",
            "areaType2": "spotArea",
            "spotAreaIDs2": "3",
            "areaNote2": "D",
            "areaType3": "spotArea",
            "spotAreaIDs3": "2",
            "areaNote3": "KZ",
            "areaType4": "spotArea",
            "spotAreaIDs4": "4",
            "areaNote4": "BZ",
            "areaType5": "spotArea",
            "spotAreaIDs5": "5",
            "areaNote5": "SZ"
        },
        {
            "label": "Deebot_EG",
            "deviceId": "b55ed940-6ce0-494d-9a0b-9bdb6d5d0715",
            "ignoreDevice": false,
            "pollInterval": 30,
            "hideMotionSensor": false,
            "supportTrueDetect": true,
            "areaType1": "spotArea",
            "spotAreaIDs1": "9",
            "areaNote1": "K",
            "areaType2": "spotArea",
            "spotAreaIDs2": "10",
            "areaNote2": "EZ",
            "areaType3": "spotArea",
            "spotAreaIDs3": "11",
            "areaNote3": "Balkon",
            "areaType4": "spotArea",
            "spotAreaIDs4": "1",
            "areaNote4": "D",
            "areaType5": "spotArea",
            "spotAreaIDs5": "2",
            "areaNote5": "AZ",
            "areaType6": "spotArea",
            "spotAreaIDs6": "5",
            "areaNote6": "WC",
            "areaType7": "spotArea",
            "spotAreaIDs7": "4",
            "areaNote7": "WZ",
            "areaType8": "spotArea",
            "spotAreaIDs8": "6",
            "areaNote8": "Couch"
        }
    ],
    "platform": "Deebot"
}

which gives the same result as before (so it seems that the "longer" configuration wins and is taken for all devices.

Will try to circumvent it somehow for the moment.

Details of your setup.

  • Do you use (1) Homebridge UI-X (2) Homebridge CLI or (3) HOOBS?

(1)

  • Which version of Homebridge/HOOBS do you have?

HB1.7.0
Plugin6.1.1

  • Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.

Docker instance (oznu/homebridge) on RPi4, Node.js v18.19.0

  • Which ECOVACS devices do you have that are causing issues? Please include product models if applicable.

Both are DEEBOT N8.

@wbroll
Copy link

wbroll commented Dec 13, 2024

Hi Ben, having just added my second deebot device, I have noticed similar behavior in the current plugin version (v6.1.1.) regarding spot areas. At first the behavior seemed completely irrational. However, after some testing, I realized that the entries for the second device seem to overwrite the entries for the spot areas of the first. Since the range IDs are not necessarily sequentially ascending, some entries show unexpected behavior, while others simply result in an error message.

When I find some time, I'll have a look at the code, but so far a workaround for my devices has been just to extend the first list of spot areas by the number of entries in the second list and then only use the last entries that are not overwritten by those in the second list.

@Ben-Bitdiddle-DE
Copy link
Author

Ben-Bitdiddle-DE commented Dec 14, 2024

Thank for your comment. If have to say that I left behind domoticz and homebridge i while ago. I gave home assistant a try and have to say that it is quite impressive how much is working there without a struggle and off the box, that also holds for it's homekit module as for deebot (and much more).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants