RobertD502 / home-assistant-petkit

Home Assistant integration for PetKit devices
MIT License
219 stars 32 forks source link

Add support Petkit Eversweet 5 Mini #12

Closed OXOTH1K closed 1 year ago

OXOTH1K commented 1 year ago

Hi! Can you add support for this Fountaint. By default it adds with this elements: image

RobertD502 commented 1 year ago

If it was added as a Eversweet 3 pro, then that means that the mini 5 is returning the same model number (W5) in the PETKIT api as the Eversweet 3 pro. What exactly are you missing? There are specific entities that are only created if you have a valid BLE relay (the BLE relay has to be setup inside of the PETKIT app prior to using this integration)

Edit: if you don't have any other PETKIT devices that can be used to set up a BLE relay with the water fountain from within the PETKIT app, then pulling it into home assistant won't do you any good - the data will only get updated if the water fountain has a device it can relay new data through to reach petkit's servers such as through your phone when using the PETKIT app or via BLE relay (water fountain ---BLE---> Another PETKIT device ----> PETKIT servers)

OXOTH1K commented 1 year ago

BLE Relay is Petkit Feeder? I haven't it. Data will be updated when I was connect to Fountain with phone app, and then connect with HA?

RobertD502 commented 1 year ago

There are several PETKIT devices that can act as a relay (some feeders yes others no).

The only way to have access to a water fountain is via the main PETKIT account. Sharing water fountains to another user isn't possible.

The reason I am saying this is because, in order to pull the water fountain into Home Assistant, you have to use your main PETKIT account. However, when you do that, you will be signed out of your account on the mobile app. This is because of how PETKIT handles authentication - you can't be signed into more than one device at a time. So, you can't use this integration and then use the PETKIT app on your phone to update the data for the water fountain.

Technically you could, but that means you'd have to sign into the Home Assistant integration, then sign into the mobile app whenever you want data from the fountain to be updated, and then you have to sign back into the home assistant integration. This isn't very realistic.

Realistically, pulling water fountains into Home Assistant will only be worthwhile if you have another PETKIT device that acts as a BLE relay. Otherwise, there is no way of getting updated data from the water fountain. This is solely because of how PETKIT handles accounts.

Since you only have a water fountain, your cheapest solution is to continue using the app instead of the integration. Otherwise, if you want data to be updated in Home Assistant for the water fountain, you'll need to get a PETKIT device that is capable of being set up as a BLE relay inside of the PETKIT app prior to using this integration.

OXOTH1K commented 1 year ago

Thanks a lot! I'll go to aliexpress)

RobertD502 commented 1 year ago

Make sure that the device can be a relay. For example, the mini feeder pro can't but the infinity feeder and solo 3 feeder can.

OXOTH1K commented 1 year ago

Yes, I was already seen in app.

RobertD502 commented 1 year ago

If you can, shoot me a message on discord. I'm interested in knowing what exactly the api is returning for your water fountain because it is weird that they would give the same model number for the Eversweet 3 pro and your water fountain.

OXOTH1K commented 1 year ago

Okay! How can I find you?

RobertD502 commented 1 year ago

Link to the channel can be found at the beginning of the documentation.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

RobertD502 commented 1 year ago

Should correctly be identified now in version 0.1.2