sbabcock23 / hass-tryfi

Home Assistant integration for TryFi Dog Collar GPS monitoring.
https://github.com/sbabcock23/hass-tryfi
Apache License 2.0
48 stars 16 forks source link

Data no longer updates #56

Open tremosian opened 2 years ago

tremosian commented 2 years ago

In Home Assistant, I'm no longer seeing data (steps/distance/latitude or longitude) changes, unless I reload the integration.

(The TryFi integration has been amazing, and thank you. I ended up making a soft lock, that if she left the latitude/longitude of her lock, I'd get a ping.)

bigray327 commented 1 year ago

Same issue for me on 11/18/2022, so this was not fixed.

chester512 commented 1 year ago

same here. Set it up last night, worked fine. This morning, all entities say unavailable.

bwillacker commented 1 year ago

I also am experiencing this data reporting issue. All data stops reporting (steps, etc) in the integration from Fi's cloud. I've reviewed the logs and it seems to correspond when our home router switches connections (we're in an RV with a router combining Starlink and cellular connectivity). It's not stopping every time the router switches connections, mind you, it just happens to be the only thing in the logs that seems related at the times the integration stops reporting data. The last uptime on the integration was about 6 days and our router switches connections at least twice/day.

This screenshot illustrates the integration reporting stops I've seen in the last 10 days:

Integration Stops

I created an automation this afternoon that monitors the last update on the sensors and if they haven't reported in for a period of time it will restart the integration. If I find it to be a reliable work around I'll report back on this issue with an example.

I also am a big fan of this integration. I'm primarily using it to give our dog presence (Home / Away). And push a notification when the collar is fully charged so I remember to put it back on the dog. I'm sure I'll find other uses over time. A big thank you to @sbabcock23 for writing this!

squishyoctopus commented 6 months ago

It’s not updating for me either. It updates when the integration is loaded/reloaded but never updates after that.

prestomation commented 6 months ago

Please include any relevant logs here. I don't think the maintainers will be able to diagnose without more information

nitharios commented 6 months ago

@bwillacker how is that automation working for you? I'm also looking to do something similar since I'm having the same issue.

bwillacker commented 5 months ago

@nitharios - It's been a while but this is what I ended up with. It will restart the TryFi integration if your dog's tracker hasn't reported a status update within the last 10 minutes (600 seconds). I've had no issues with inaccurate reporting of my dog's status since I've implemented this.


trigger:
  - platform: template
    value_template: >-
      {{ (as_timestamp(states.sensor.time.last_changed) -
      as_timestamp(states.device_tracker.**YOUR DOG**.last_changed)) > 600 }}
action:
  - service: homeassistant.reload_config_entry
    data:
      entry_id: **YOUR FI INTEGRATION**