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

Is this now unmaintained? #57

Open
blair287 opened this issue Mar 22, 2024 · 24 comments
Open

Is this now unmaintained? #57

blair287 opened this issue Mar 22, 2024 · 24 comments
Assignees
Labels
question Further information is requested

Comments

@blair287
Copy link

Integrations hasn't been working for over 3 months now no responses to the issues posted so is this integration now dead?

If so has anyone got any solutions to integrate the sure feeders and felaqua into home assistant?

@Pegi68
Copy link

Pegi68 commented Apr 10, 2024

I hope the Integration is not dead and anyone have time and the know how to solve the open issues.
BR, Pegi68

@ChristophCaina
Copy link
Contributor

hi there,
I have a fork and so far applied some fixes to it... to fix at least some of the deprication warnings, etc.

https://github.com/ChristophCaina/sureha

not sure, IF I can provide full support for it...or even add features to it, as I am not yet so deep involved into the programming.

@blair287
Copy link
Author

hi there, I have a fork and so far applied some fixes to it... to fix at least some of the deprication warnings, etc.

https://github.com/ChristophCaina/sureha

not sure, IF I can provide full support for it...or even add features to it, as I am not yet so deep involved into the programming.

Have you managed to fix the feeders not showing any info?

@ChristophCaina
Copy link
Contributor

ChristophCaina commented Jul 15, 2024

If I remember correctly, I did something for the feeder, but honestly, I am not quite sure - especially, since I cannot test the feeder (because I don't have one).

If you want, you can give it a try and maybe, let me know / assist here?

Btw: do you also have the core integration?
If yes, is the feeder implemented there?

OK, I was going through some older issues here, and it is likely that this is an issue of the surepy library.
The latest release here is still using an older version - I'm not sure, if you have changed it already to use the latest one...
But if you do, I haven't made anything on this version... as this will be a bit more complicated.

-- SureHA as well as SurePetCare from HomeAssistant are using the same library SurePy.
If this is no longer maintained (and PRs will be merged) we need to find a way on how to continue with SurePy - or we need to create a fork of it - which needs to be released on PiPy and then, the HomeAssistant Core integration as well as SureHA would need to use the forked library.

@blair287
Copy link
Author

If I remember correctly, I did something for the feeder, but honestly, I am not quite sure - especially, since I cannot test the feeder (because I don't have one).

If you want, you can give it a try and maybe, let me know / assist here?

Btw: do you also have the core integration? If yes, is the feeder implemented there?

OK, I was going through some older issues here, and it is likely that this is an issue of the surepy library. The latest release here is still using an older version - I'm not sure, if you have changed it already to use the latest one... But if you do, I haven't made anything on this version... as this will be a bit more complicated.

-- SureHA as well as SurePetCare from HomeAssistant are using the same library SurePy. If this is no longer maintained (and PRs will be merged) we need to find a way on how to continue with SurePy - or we need to create a fork of it - which needs to be released on PiPy and then, the HomeAssistant Core integration as well as SureHA would need to use the forked library.

Before I added Ben to my surepet account so he could test the feeder and felaqua. Some data is got for the feeders but some now shows as unknown so not sure if it's the surepy issue or the integration issue. If you like I could also add you to my surepet account so you can see and I'll swap over to your fork to also help test.

@benleb
Copy link
Owner

benleb commented Jul 29, 2024

@blair287 can you please check if you have still problems with the v0.5.0 published just now? And if so, which kind of problems? :D
The flaps seem to work for me, the felaqua/feeder get added as device but report no values... I am looking into that. Anything else?

@blair287
Copy link
Author

blair287 commented Jul 29, 2024

@blair287 can you please check if you have still problems with the v0.5.0 published just now? And if so, which kind of problems? :D The flaps seem to work for me, the felaqua/feeder get added as device but report no values... I am looking into that. Anything else?

@benleb I've updated as you state the feeder and felaqua are not reporting any values although my felaqua used to work still so think that might be the device itself maybe will make sure its connected on my end when home from work. Originally was only having issues with the feeders. Thanks glad your back!

Edit: my felaqua is indeed showing as offline not sure why but that's not a problem at least it's just the feeders not working.

@blair287
Copy link
Author

blair287 commented Aug 2, 2024

@benleb I've reconnected the felaqua and it is updating in HA yippy. So defo only feeders broken.

@MechEng70
Copy link

@blair287 can you please check if you have still problems with the v0.5.0 published just now? And if so, which kind of problems? :D The flaps seem to work for me, the felaqua/feeder get added as device but report no values... I am looking into that. Anything else?

also getting no values from the feeders. Able to get individual pet consumption but no feeder level. FYI - I have 4 feeders with 1 cat on one and the other 3 roam the remaining 3.

@ChristophCaina
Copy link
Contributor

can you please check, if you can find anything within the logs, that could give a hint, why no data is available for the feeders?
That might help...

@derBonsaii
Copy link

Felaqua is working fine for me, showing all thee sensors correctly.
The Feeder is only showing that hes connected and the Batterylevel, sensor.feeder_el_mampfo shows unknown.

I can give Access to the feeder if needed.

@MechEng70
Copy link

can you please check, if you can find anything within the logs, that could give a hint, why no data is available for the feeders? That might help...

2024-08-08 22:58:13.910 DEBUG (MainThread) [surepy.client] initialization completed | vars(): {'self': <surepy.client.SureAPIClient object at 0x7f13b39576e0>, 'email': '[email protected]', 'password': 'PASSWORD', 'auth_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIzMTM5MTY3NTE1IiwianRpIjoiOTIzMjZmNDEtYTM0ZS00OGIxLWI1MWYtNWI4ZTFlMTRkYzFjIiwiaWF0IjoxNzIyNjE4MzI1LCJjbGllbnRfdWlkIjoiNjkyNGY0ZDYtNTBmMS0xMWVmLWIwMGQtYWUxYTYwNzljMTdlIiwiZGV2aWNlX2lkIjoiNjkyNGY0ZDYtNTBmMS0xMWVmLWIwMGQtYWUxYTYwNzljMTdlIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvZW1haWxhZGRyZXNzIjoiamFzb24uZ2xpdGhlcm9AZ21haWwuY29tIiwibmJmIjoxNzIyNjE4MzI1LCJleHAiOjE3NTQxNTQzMjV9.PFKxt7-PPGK3iPH0-2OGF6Kw6WHvstGqVZtIPxwN32A', 'api_timeout': 60, 'session': <aiohttp.client.ClientSession object at 0x7f13d4d5c800>, 'surepy_version': '0.9.0', 'token': None}
2024-08-08 22:58:13.910 DEBUG (MainThread) [surepy] initialization completed | vars(): {'self': <surepy.Surepy object at 0x7f13b3957740>, 'email': '[email protected]', 'password': 'PASSWORD', 'auth_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIzMTM5MTY3NTE1IiwianRpIjoiOTIzMjZmNDEtYTM0ZS00OGIxLWI1MWYtNWI4ZTFlMTRkYzFjIiwiaWF0IjoxNzIyNjE4MzI1LCJjbGllbnRfdWlkIjoiNjkyNGY0ZDYtNTBmMS0xMWVmLWIwMGQtYWUxYTYwNzljMTdlIiwiZGV2aWNlX2lkIjoiNjkyNGY0ZDYtNTBmMS0xMWVmLWIwMGQtYWUxYTYwNzljMTdlIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvZW1haWxhZGRyZXNzIjoiamFzb24uZ2xpdGhlcm9AZ21haWwuY29tIiwibmJmIjoxNzIyNjE4MzI1LCJleHAiOjE3NTQxNTQzMjV9.PFKxt7-PPGK3iPH0-2OGF6Kw6WHvstGqVZtIPxwN32A', 'api_timeout': 60, 'session': <aiohttp.client.ClientSession object at 0x7f13d4d5c800>}


2024-08-08 22:58:14.745 DEBUG (MainThread) [surepy.client] 🐾 �[38;2;0;255;0m·�[0m GET app.api.surehub.io/api/me/start | 6

2024-08-08 22:58:15.126 INFO (MainThread) [surepy.client] 🐾 �[38;2;255;0;255m·�[0m GET app.api.surehub.io/api/report/household/203575: 404 | <ClientResponse(https://app.api.surehub.io/api/report/household/203575) [404 Not Found]>
<CIMultiDictProxy('Date': 'Fri, 09 Aug 2024 05:58:15 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'Server': 'nginx', 'Access-Control-Allow-Origin': '*', 'Strict-Transport-Security': 'max-age=31536000; includeSubdomains; preload', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block')>

2024-08-08 22:58:15.126 DEBUG (MainThread) [surepy.client] 🐾 �[38;2;0;255;0m·�[0m GET app.api.surehub.io/api/report/household/203575 | 0
2024-08-08 22:58:15.127 DEBUG (MainThread) [custom_components.sureha] Finished fetching sureha_sensors data in 1.216 seconds (success: True)
2024-08-08 22:58:15.127 INFO (MainThread) [custom_components.sureha] 
2024-08-08 22:58:15.127 INFO (MainThread) [custom_components.sureha]  �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m (≗ᆽ ≗)ノ
2024-08-08 22:58:15.127 INFO (MainThread) [custom_components.sureha]   🐾   meeowww..! to the SureHA integration!
2024-08-08 22:58:15.127 INFO (MainThread) [custom_components.sureha]   🐾     code & issues: https://github.com/benleb/sureha
2024-08-08 22:58:15.127 INFO (MainThread) [custom_components.sureha]  �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m �[38;2;255;26;102m·�[0m
2024-08-08 22:58:15.127 INFO (MainThread) [custom_components.sureha] 


2024-08-08 22:58:18.324 DEBUG (MainThread) [surepy.client] 🐾 �[38;2;0;255;0m·�[0m GET app.api.surehub.io/api/me/start | 6
2024-08-08 22:58:18.544 INFO (MainThread) [surepy.client] 🐾 �[38;2;255;0;255m·�[0m GET app.api.surehub.io/api/report/household/203575: 404 | <ClientResponse(https://app.api.surehub.io/api/report/household/203575) [404 Not Found]>
<CIMultiDictProxy('Date': 'Fri, 09 Aug 2024 05:58:18 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'Server': 'nginx', 'Access-Control-Allow-Origin': '*', 'Strict-Transport-Security': 'max-age=31536000; includeSubdomains; preload', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block')>

2024-08-08 22:58:18.544 DEBUG (MainThread) [surepy.client] 🐾 �[38;2;0;255;0m·�[0m GET app.api.surehub.io/api/report/household/203575 | 0
2024-08-08 22:58:18.545 DEBUG (MainThread) [custom_components.sureha] Finished fetching sureha_sensors data in 0.582 seconds (success: True)

2024-08-08 22:58:43.495 INFO (MainThread) [homeassistant.core] Starting Home Assistant

@derBonsaii
Copy link

Any news on this problem? :/

Would be great to have it working again 🗡️

@blair287
Copy link
Author

blair287 commented Sep 1, 2024

@ChristophCaina @benleb any info on the issues? Integration is just completely broken now doesnt even find devices just entities that stay unknown.

Seriously considering opening up the units and replacing the gubbins with esp I hate surepet care shit so much now I'm never buying another one of their products.

@benleb
Copy link
Owner

benleb commented Sep 3, 2024

about the feeders... sneak peak (dont get too excited, something is still fishy :D but the data itself is available again)
image

everything else looks good 😊 👍
image

i will work on it later again to fix the last feeder bug and then publish updates for surepy/sureha and also merge the changes in the official surepetcare integration

@blair287 are you in the home assistant discord?

@fenty17
Copy link

fenty17 commented Sep 3, 2024

Are you guys just talking about the feeder? Integration working fine for me with cat flap.

@benleb
Copy link
Owner

benleb commented Sep 3, 2024

hey @fenty17, yes sorry... I clarified it now :D

@benleb benleb added the question Further information is requested label Sep 3, 2024
@blair287
Copy link
Author

blair287 commented Sep 5, 2024

about the feeders... sneak peak (dont get too excited, something is still fishy :D but the data itself is available again) image

everything else looks good 😊 👍 image

i will work on it later again to fix the last feeder bug and then publish updates for surepy/sureha and also merge the changes in the official surepetcare integration

@blair287 are you in the home assistant discord?

Looks good yes I'm on the HA discord user is Exterma :)

@derBonsaii
Copy link

Can you push it even with the fishy data as a Beta or something, so we can check if this works for us? :)

@MechEng70
Copy link

Any movement on this?

@woorari
Copy link

woorari commented Oct 31, 2024

@benleb, the ioBroker integration https://github.com/Sickboy78/ioBroker.sureflap may hold some good pointers to solutions for your problem. It also has a curfew manager and Indoor/Outdoor toggle.

Based on that, I built a tracker for my feeders in NodeRed and Grafana. It would be amazing to have it in HA.

@MechEng70
Copy link

@benleb, the ioBroker integration https://github.com/Sickboy78/ioBroker.sureflap may hold some good pointers to solutions for your problem. It also has a curfew manager and Indoor/Outdoor toggle.

Based on that, I built a tracker for my feeders in NodeRed and Grafana. It would be amazing to have it in HA.

I was able to get iobroker and hass connected but it only seems like it is one way. Hass to iobroker. Also see the bowls there.

@woorari
Copy link

woorari commented Nov 4, 2024

I was able to get iobroker and hass connected but it only seems like it is one way. Hass to iobroker. Also see the bowls there.

As mentioned, I have built it in NodeRed. You have to call
https://app-api.production.surehub.io/api/device/${deviseID}/tag/${tagId} and set Profile 2 (Outdoor) or 3 (Indoor).

nodered

https://app-api.production.surehub.io/api/report/household/${householdID}/pet/${petID}/aggregate

will give you

  • Movement (Catflap)
  • Feeding (Feeder)
  • Drinking (Felaqua)

Data that you can push into a DB, I use influxDB, and analyse with Grafana. I also use it to these information to sensors to expose the information to HA.

@MechEng70
Copy link

MechEng70 commented Nov 4, 2024

Thanks. I ended up adding helpers in hass. Adding the Hass adapter and scripting adapter. Then created a JavaScript to check every 15 minutes what the bowl weight was and if different than before, it updates the variable in hass.

Only issue is that my javascripting sucks and I am looking to understand how to trigger it.

@benleb benleb self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

8 participants