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

Attribute for zone restorals #112

Open
chelming opened this issue May 29, 2024 · 4 comments
Open

Attribute for zone restorals #112

chelming opened this issue May 29, 2024 · 4 comments

Comments

@chelming
Copy link

Is there any data (DSC) for the last time a zone was restored? The last tripped time is accurate and fantastic, but I don't have any good data for when the zone was restored. I can't go off of "updated" or "changed" because those will always be set when Home Assistant restarts.

image

@ufodone
Copy link
Owner

ufodone commented May 30, 2024

No, the envisalink does not provide that information. The same actually applies to the last tripped time attribute too but the integration saves its state in HA so it is restored on restarts. The caveat is that it's still possible to have the wrong value if it was tripped and then restored while HA was down/restarting).

It might be possible to do something similar with the restore time but the same caveat would apply.

What do you mean by using "updated" or "changed"?

@chelming
Copy link
Author

Updated and changed seem to be on all HA entities by default but they reset to the last boot time. E.g., this one shows that it changed yesterday but it was just a HA restart.
image

@ufodone
Copy link
Owner

ufodone commented Jun 22, 2024

@chelming Given the caveat I mentioned above, would it still be useful to preserve this state across restarts?

@chelming
Copy link
Author

I think so? honestly, I forgot what I was going to do with that attribute

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

No branches or pull requests

2 participants