RobertD502 / home-assistant-petkit

Home Assistant integration for PetKit devices
MIT License
156 stars 24 forks source link

Eversweet Max support #58

Closed yzlnew closed 3 months ago

yzlnew commented 4 months ago

It seems only available in China currently.

RobertD502 commented 4 months ago

If it is only available in China, I personally won't be able to support it - no way for me to access a Chinese PETKIT account.

yzlnew commented 4 months ago

I’m thinking about buying it, but I haven't because of the Spring Festival. If I receive it, I can provide my account or other information.

RobertD502 commented 4 months ago

I’m thinking about buying it, but I haven't because of the Spring Festival. If I receive it, I can provide my account or other information.

I'm unable to use a Chinese account - I use the international PETKIT app and I believe for Chinese accounts there is a separate PETKIT app that is specific for mainland China.

If you can link me to the product page, I can take a look and see if it is the same water fountain that is available internationally, but just with a different name.

yzlnew commented 4 months ago

Here's link to the Taobao Petkit store. But it requires an account to see detailed product information. Product image from Google search here. Or we can just wait for its global release.

RobertD502 commented 4 months ago

Oh yeah, that is definitely not currently being sold here yet. If control of the water fountain is different than the current ones, then that will require reverse engineering their code like I had to do for the current water fountains (this is a very time-consuming process). The bluetooth water fountains (via the BLE relay) aren't controlled by simple commands sent to the API. You have to build the commands from scratch involving creating byte lists, bit shifting, etc which is then b64 encoded & url encoded. Someone that owns the water fountain will have to go through this process of reverse engineering how petkit creates command messages for this water fountain, if it is different from the current water fountains.

So, I wouldn't go buying the water fountain in hopes of it being supported by the integration - support will only come if someone else has this water fountain and decides to dedicate the time to reverse engineering the communication.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 5 days with no activity.

azerioxal commented 2 months ago

If control of the water fountain is different than the current ones, then that will require reverse engineering their code like I had to do for the current water fountains

Is there anyway to test if the existing controls work for the fountain? The integration doesn't seem to pick it up to even test.

hyperfive commented 1 month ago

Hello

this unit is available in the US and I just ordered one. I’m happy to use mine to test to get integration working. Please let me know what I can do to help.

RobertD502 commented 1 month ago

Hello

this unit is available in the US and I just ordered one. I’m happy to use mine to test to get integration working. Please let me know what I can do to help.

I looked at the manual once it was available in the US and saw that it has some different options and modes compared to the current water fountains.

I personally won't be working on supporting the fountain - getting the other water fountains integrated required a lot of reverse engineering of how the Bluetooth messages are constructed. Given the different modes available in this model, the same will have to be done.

As to how anyone can help: I'm open to accepting code in the backend library for anyone that spends the time reverse engineering the communication for the new water fountain.