Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Time" and "Update_Mac" to HA pet activity to track location in multi-flap-setups #12

Merged
merged 2 commits into from
Sep 2, 2022

Conversation

jacotec
Copy link
Contributor

@jacotec jacotec commented Sep 1, 2022

Adds the additional attributes "Time" and "Update_Mac" to the pet sensor.

"Time" ist the timestamp of the last update (can be used to trigger automations on change), "Update_Mac" is the MAC address of the device which did the last change.

With these information you can track the location of the pet in HA in setups with multiple flaps (i.e. one from the house into a screened area, another one from the screened area into the garden etc.)

Generation of pethubconfig.json from cloud adds this to pethubconfig as well.

Solves issue #10 as the position per pet can now be tracked in HomeAssistant via automations.

Adds the additional attributes "Time" and "Update_Mac" to the pet sensor.

"Time" ist the timestamp of the last update (can be used to trigger automations on change), "Update_Mac" is the MAC address of the device which did the last change.

With these information you can track the location of the pet in HA in setups with multiple flaps (i.e. one from the house into a screened area, another one from the screened area into the garden etc.)

Generation of pethubconfig.json from cloud adds this to pethubconfig as well.
Optimization from Peter
@plambrechtsen plambrechtsen merged commit 4daea02 into PetHubLocal:main Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants