bwp91 / homebridge-deebot

Homebridge plugin to integrate ECOVACS Deebot devices into HomeKit.
MIT License
64 stars 4 forks source link

AIRBOT Z1 Robot Air Purifier and Humidifier #97

Closed DJay-X closed 1 year ago

DJay-X commented 1 year ago

@bwp91 Hey there. I will get an ECOVACS AIRBOT Z1 Air Purifier and Humidifier. Air Purifier and Humidifier Are you willing to try to extend your plugin to support this device? 🥰 Of course, I will help as good as I can. 😅 Thanks in advance for your time and consideration.

mrbungle64 commented 1 year ago

@DJay-X

Once you get the device please check if it's already listed as a new device (classid sdp1y1) in the plugin. I assume it is already listed, and maybe some things like battery level already work.

Btw.: I cannot speak for @bwp91 whether he's willing to support this device. And I'm also not sure if I'm willing to fully support this device with my library because there's still no public documentation for the Ecovacs (Deebot) API.

DJay-X commented 1 year ago

I will do so, when the Z1 is delivered. Thanks for now. 👍

DJay-X commented 1 year ago

@DJay-X

Once you get the device please check if it's already listed as a new device (classid sdp1y1) in the plugin. I assume it is already listed, and maybe some things like battery level already work.

@mrbungle64 From the Plugin Debug Log, I can tell, there is a sdp1y1 listed. 👍

If I can help with providing additional information from the log that is useful for the library and @bwp91 is also willing to have a look for using with the plugin, please of course let me know.

mrbungle64 commented 1 year ago

@DJay-X

@mrbungle64 From the Plugin Debug Log, I can tell, there is a sdp1y1 listed. +1

Is the battery level shown correctly?

bwp91 commented 1 year ago

Sorry Im a bit late on this issue.

I would be willing to support whatever the ecovacs-deebot library is available to support.

With regards to HomeKit (and homebridge), air purifiers and humidifiers are tricky devices to support even separately as a current humidity% is required. I simply don't know how I could expose such a device that combines both features into an "accessory" that appears in homekit,

bwp91 commented 1 year ago

Not against the idea, just wouldn't know how to make it look nice in the home app like I try to do with everything else I do!

DJay-X commented 1 year ago

Is the battery level shown correctly? It is shown correctly and updating, yes.

@bwp91 Thanks for being open. I think the main feature is the air purification. But also mostly automatic. I think a great help would just be to start the device out of the charging station, send it back to it and bring it to a room like with the deebot X1 Omni. I have the impression the navigation is the same. Of course I have no idea if this is the case from the technical side. I can send you guys a debug log in a private message of course if this helps to further investigate. Thanks again to you both.

mrbungle64 commented 1 year ago

@DJay-X

You can use the example apps of the library to create a debug log while the device is working: https://github.com/mrbungle64/ecovacs-deebot.js/wiki/Example-apps

Please send me the output by email. Some additional information about the core functions would also be helpful.

DJay-X commented 1 year ago

@mrbungle64 Thanks for the information. I will give it a try. Currently, I'm on holiday, and it will take some time to get my hands on it. If I need some help, I would kindly ask you by mail if this is okay? Gruß in die Nachbarschaft nach Gießen. ;)

mrbungle64 commented 1 year ago

@DJay-X Hallo "Nachbar", Du kannst gerne Kontakt zu mir aufnehmen 😃

bhuebschen commented 1 year ago

Ich habe das Sample mal ausprobiert.. ein paar Befehle gehen... aber "clean" ist eben nicht für den AirBot gedacht.. es scheint "AirClean" zu sein, aber anscheinend ist der Befehl nicht ganz vollständig (hatte mich an dem Clean-Befehl orientiert)

mrbungle64 commented 1 year ago

@bhuebschen

Ich habe das Sample mal ausprobiert.. ein paar Befehle gehen...

Klingt gut. Möchtest du uns auch verraten welche das sind? 😉

aber "clean" ist eben nicht für den AirBot gedacht.. es scheint "AirClean" zu sein, aber anscheinend ist der Befehl nicht ganz vollständig (hatte mich an dem Clean-Befehl orientiert)

Hast du den Netzwerkverkehr mit geschnitten?

bhuebschen commented 1 year ago

Android App decompiled 🫢

bhuebschen commented 1 year ago

aber das issue hier ist sowieso eigentlich nicht der richtige Ort für eine Unterhaltung über die Integration des Z1

mrbungle64 commented 1 year ago

@DJay-X

With version 5.3.2-beta.2 of the plugin "Clean" (auto mode), "Go charge" (and also the battery level) should already work.

DJay-X commented 1 year ago

Thanks @mrbungle64 Please excuse my delayed response. Busy family stuff is going on. 😅 I was able to check the -beta.3 and the Battery level and charging state is showing up. However, the clean button is not doing anything. "Go charge" is working on the other hand.

[9.12.2022, 11:00:59] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] receiving update [CleanReport: idle].
[9.12.2022, 11:00:59] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] receiving update [ChargeState: charging].
[9.12.2022, 11:00:59] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] receiving update [ChargeState: charging].
[9.12.2022, 11:00:59] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] receiving update [BatteryInfo: 100].
[9.12.2022, 11:00:59] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx]receiving update [NetInfoIP: xxx.xxx.xxx.xx].
[9.12.2022, 11:00:59] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] receiving update [NetInfoMAC: xx:xx:xx:xx:xx:xx].
[9.12.2022, 11:00:59] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] receiving update [ChargeState: charging].
[9.12.2022, 11:02:00] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] current cleaning state [cleaning}].
[9.12.2022, 11:02:00] [Deebot] [xxxx-xxxx-xxxx-xxxx-xxxx] sending update [Clean_V2].

Freitag, 09 Dez  2022 11:02:16

mrbungle64 commented 1 year ago

@DJay-X

However, the clean button is not doing anything.

This should be fixed with version 0.9.1-alpha.6 of the library

@bwp91, can you please bump the ecovacs-deebot.js version and release a new beta of your plugin? 😉

bwp91 commented 1 year ago

All done!

DJay-X commented 1 year ago

Thanks, @mrbungle64 @bwp91 The latest Version homebridge-deebot v5.3.2-beta.5 did the job. Clean for auto mode and "go charge" is working. 👍 However, the Clean switch is turning back to off after a while. I am uncertain if this intended to be like this. There is no indicator that the cleaning is in progress. But for me, that's okay at this time.

bwp91 commented 1 year ago

Clean switch should stay on whilst device is in any form of clean mode, well, being report as one of ['auto', 'clean', 'edge', 'spot', 'spotarea', 'customarea'].

Would be interesting to see your logs to see what cleaning state is being reported for this switch to be turned off

DJay-X commented 1 year ago

I have the impression for the Z1 is "move" what is "clean" for deepot. 🤷‍♂️ When the Clean button turns back to off, there is no output in the log.

[8.1.2023, 09:43:53] [Deebot] [xxxxxxx] receiving update [ChargeState: idle].
[8.1.2023, 09:43:53] [Deebot] [xxxxxxx] receiving update [CleanReport: move].
[8.1.2023, 09:43:53] [Deebot] [xxxxxxx] receiving update [ChargeState: idle].
[8.1.2023, 09:43:53] [Deebot] [xxxxxxx] receiving update [BatteryInfo: 100].
[8.1.2023, 09:44:04] [Deebot] [xxxxxxx] current charging state [returning].
[8.1.2023, 09:44:04] [Deebot] [xxxxxxx] sending update [Charge].
[8.1.2023, 09:44:05] [Deebot] [xxxxxxx] receiving update [CleanReport: returning].
[8.1.2023, 09:44:05] [Deebot] [xxxxxxx] current cleaning state [returning].
[8.1.2023, 09:44:05] [Deebot] [xxxxxxx] receiving update [ChargeState: returning].
[8.1.2023, 09:44:05] [Deebot] [xxxxxxx] current charging state [returning].
[8.1.2023, 09:44:15] [Deebot] [xxxxxxx] current cleaning state [cleaning}].
[8.1.2023, 09:44:15] [Deebot] [xxxxxxx] sending update [Clean_V2].
[8.1.2023, 09:44:16] [Deebot] [xxxxxxx] receiving update [CleanReport: move].
[8.1.2023, 09:44:16] [Deebot] [xxxxxxx] current cleaning state [move].
[8.1.2023, 09:44:16] [Deebot] [xxxxxxx] receiving update [ChargeState: returning].
[8.1.2023, 09:44:32] [Deebot] [xxxxxxx] current charging state [returning].
[8.1.2023, 09:44:32] [Deebot] [xxxxxxx] sending update [Charge].
[8.1.2023, 09:44:32] [Deebot] [xxxxxxx] receiving update [CleanReport: returning].
[8.1.2023, 09:44:32] [Deebot] [xxxxxxx] current cleaning state [returning].
[8.1.2023, 09:44:32] [Deebot] [xxxxxxx] receiving update [ChargeState: returning].
bwp91 commented 1 year ago

Hi @DJay-X sorry I appreciate some time has passed between your last message and you getting a reply.

I'm guessing you still have pending issues with regards to the plugin? (apologies this is a bit of a generic reply to all outstanding issues on the plugin!)

DJay-X commented 1 year ago

Thanks @bwp91 With the latest version of the plugin, the basic functionality did work with the Z1. So this “Issue” can be closed. Thanks again.