This allows you to integrate TryFi Smart GPS Collars with Home Assistant.
Current functionality includes:
- Device Tracker - your pet will show up in HA using the GPS coordinates from the collar
- Step Counter - it will report your pets daily, weekly, and monthly steps
- Distance Counter - it will report your pets daily, weekly and monthly distance
- Battery Level - it will report your Pet's collar battery level
- Collar Light - you can control the light on the collar by turning it on and off (color selection coming soon!)
- Lost Dog Mode - allows you to select Lost mode if your dog if it is lost and select Safe if it is found
- Bases - reports the status of the base (online/offline)
If you would like to donate you can use my TryFi referral code "395FX4" on your next purchase.
- Home Assistant >= 0.0.117
- TryFi dog collar with active cellular subscription
- HACS is already installed
- Search for
TryFi
underIntegrations
in the HACS Store tab. - Add the Integration to your HA and configure.
- In your
/config
directory, create acustom_components
folder if one does not exist. - Copy the tryfi folder and all of it's contents to your
custom_components
directory. - Restart Home Assistant.
- Add the Integration to your HA and configure.
- After installing TryFi go to Configuration --> Integrations and add a new Integration
- Search for TryFi
- Enter in your TryFi username and password. Optionally you can select a polling frequency option (in seconds). Suggestion is nothing less then 5.
- Click Submit
Once you have added the integration, you will see 1 or more devices and entities associated with this integration. To validate its accuracy, you can review the steps and distance counters for your pet or its current whereabouts.
The light on your Pet's collar is represented as a light switch in HA. It can either be turned on or off.
TryFi is equiped with a "Lost Dog Mode" functionality. In HA this is represented by a select entity. Select Lost if your pet is lost or Safe if your pet is OK.
type: entities
entities:
- entity: select.harley_lost_state
- entity: sensor.harley_collar_battery_level
- entity: sensor.home_base
- entity: sensor.harley_daily_steps
- entity: sensor.harley_weekly_steps
- entity: sensor.harley_monthly_steps
- entity: sensor.harley_daily_distance
- entity: sensor.harley_weekly_distance
- entity: sensor.harley_monthly_distance
- entity: sensor.harley_daily_sleep
- entity: sensor.harley_weekly_sleep
- entity: sensor.harley_monthly_sleep
- entity: sensor.harley_daily_nap
- entity: sensor.harley_weekly_nap
- entity: sensor.harley_monthly_nap
type: light
entity: light.harley_collar_light
Turns on the collar light after dark if the pet is not home.
- id: '1604060166498'
alias: Turn on Light After Dark If Not Home
description: ''
trigger:
- platform: sun
event: sunset
condition:
- condition: and
conditions:
- condition: device
device_id: a7237a6c1144fcd90828b21de2572603
domain: device_tracker
entity_id: device_tracker.pet_tracker
type: is_not_home
action:
- type: turn_on
device_id: a7237a6c1144fcd90828b21de2572603
entity_id: light.pet_collar_light
domain: light
mode: single
- It sometimes takes time for the status to accurately refresh in HA. For example the light on/off status and the Lost Mode select status.
- Allow for the selection of the LED light color
- Enable possibility of if pet not home and not with owner then trigger lost dog mode
- Version bump to support latest pytryfi version 0.0.16 that includes multiple households
- Fix - fixed sleep and nap units from hours to minutes with proper conversion
- Enhancement - Added Sleep and Nap "sensors"/attributes based on new version of pytryfi
- Fix - Issue where base status (online/offline) was not set correctly.
- Version bump to support latest pytryfi version 0.0.14.1
- Lost Mode is now a select entity instead of a lock entity
- Updated dependency version of pytryfi
- Fixed Issue #30 - Convert to Async
- Updating dependency version of pytryfi
- Updating dependency version of pytryfi
- Steps unit was added to enable charting of dogs steps over time.
- Fixed Issue #15 - dependency update
- Fixed Issue #17 - converted to async
- Multiple bases fix
- Documentation updates
- Initial Release with basic functionality including light on/off, device tracker, lock mode of dog and general stats
- Python TryFi Interface
- TryFi