Add "Time" and "Update_Mac" to HA pet activity to track location in multi-flap-setups #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.