benleb / surepy

🐾 Library & CLI to monitor and control the Pet Door & Cat Flap Connect 🚪 the Pet Feeder Connect 🍽 and the Felaqua 💦 sold by Sure Petcare
https://pypi.org/project/surepy/
MIT License
76 stars 36 forks source link

Pet State Changes Randomly #207

Open Steffie1995 opened 7 months ago

Steffie1995 commented 7 months ago

I originaly posted this on the issues page for HA and they adviced me to try sureHA and if it still happens to flag it here because they use this library.

I'm just reposting the same I did at the HA reposetory: I have two Pets and as of late there states changes randomly (at the exact same time!)! My cats did not use the door and the Sure Pet App also didn't report any state changes!. The door itself did not aktivate at any point. It even does so when my cat is not even near the door. I restarted HA now multiple times the Flap Door as well. I even removed and re-installed the integration, still doesn't work. I also notived that in the log there apears an 404 Error every time surepet tries to connect to the Surepet.io website

Log entry:

2024-01-03 23:44:58.792 INFO (MainThread) [surepy.client] 🐾 · GET app.api.surehub.io/api/report/household/'XXXXX': 404 | <ClientResponse(https://app.api.surehub.io/api/report/household/'XXXXX') [404 Not Found]>
<CIMultiDictProxy('Date': 'Wed, 03 Jan 2024 22:44:58 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')>