benleb / sureha

SureHA 🐾 monitor & control your Sure Petcare devices via Home Assistant
Apache License 2.0
21 stars 12 forks source link

Connection issues - both SureHA and Surepet integrations #42

Open magicmega opened 1 year ago

magicmega commented 1 year ago

The problem

The SureHA Integration (and Surepet integration) are not working reliably anymore for me. The Surepetcare App itself is working normally.

What version of Home Assistant Core has the issue?

core-2023.10.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue sureha surepetcare

Additional information

No response

Do we think Surepet might be rate limiting or blocking users again?

I'm having multiple 'unavailable' statuses on my surepet feeders - sometimes it's only one bowl or sometimes both - strange https://github.com/home-assistant/core/issues/93814 - this issue again?

2023-10-24 15:25:46.343 ERROR (MainThread) [custom_components.sureha] Timeout fetching sureha_sensors data
2023-10-24 15:25:46.348 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'feeding' when rendering '{% set feeder_status_attr = state_attr('binary_sensor.pet_luna', 'status') %} {{ feeder_status_attr.feeding.change.1 | float }}'
 [ much of this repeated again and again for different sensors that pull data from the sureha sensors]

2023-10-24 15:30:17.475 ERROR (MainThread) [surepy.client] Can not load data from https://app.api.surehub.io/api/me/start
2023-10-24 15:30:17.475 ERROR (MainThread) [homeassistant.components.surepetcare] Error fetching surepetcare data: Unable to fetch data: 
2023-10-24 15:31:08.819 INFO (MainThread) [custom_components.sureha] Fetching sureha_sensors data recovered

The above is just an example - i'm getting polling errors 35 times in a day. Sensors stay as 'unknown' for hours and then when a cat uses the feeder they come back online (sometimes).

reiniertc commented 1 year ago

Same issues here. I have 2 feeders: 1 works almost flawlessly, the other (1 foot away) only updates like twice a day

reiniertc commented 1 year ago

IMG_6517 This shows the availability during the day