sbabcock23 / hass-tryfi

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

Feature: Battery Charging Sensor #58

Closed stephenpapierski closed 1 year ago

stephenpapierski commented 1 year ago

Added a new binary sensor that reports if the collar is charging or not.

I have a notification that lets me know when my pet's collar is fully charged. Unfortunately, the battery level bounces between 99% and 100% for the first couple hours it's off the charger. This results in a notification each time it reports 100%. The new charging sensor allows you to only send a notification when the level reports 100% AND it reports that it's charging.

Just thought of another alert as I'm typing. This would also allow you to send an alert reminding you that your pet doesn't have their collar on if the collar is charging and you open the back door to let them outside.

stephenpapierski commented 1 year ago

@sbabcock23 Let me know if you'd like me to bump the version, or anything else that would make your life easier for this PR.

sbabcock23 commented 1 year ago

Thank you @stephenpapierski for the contribution!