Open blair287 opened 8 months ago
I hope the Integration is not dead and anyone have time and the know how to solve the open issues. BR, Pegi68
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.
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?
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.
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.
@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 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.
@benleb I've reconnected the felaqua and it is updating in HA yippy. So defo only feeders broken.
@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.
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...
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.
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': 'j@gmail.com', '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': 'j@gmail.com', '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
Any news on this problem? :/
Would be great to have it working again š”ļø
@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.
about the feeders... sneak peak (dont get too excited, something is still fishy :D but the data itself is available again)
everything else looks good š š
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?
Are you guys just talking about the feeder? Integration working fine for me with cat flap.
hey @fenty17, yes sorry... I clarified it now :D
about the feeders... sneak peak (dont get too excited, something is still fishy :D but the data itself is available again)
everything else looks good š š
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 :)
Can you push it even with the fishy data as a Beta or something, so we can check if this works for us? :)
Any movement on this?
@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.
@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.
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).
https://app-api.production.surehub.io/api/report/household/${householdID}/pet/${petID}/aggregate
will give you
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.
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.
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?