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

Implement time sensor and clock skew #15

Open
SphtKr opened this issue Jan 9, 2025 · 2 comments
Open

Implement time sensor and clock skew #15

SphtKr opened this issue Jan 9, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@SphtKr
Copy link
Owner

SphtKr commented Jan 9, 2025

Background: apparently, my unit stores the time in nvram, which has the effect of whenever there is any power outage the clock picks up the last known time--even if the power came back up hours later. I suppose this is better than resetting to 12:00am, but this has the effect of throwing the schedule off. If you want to retain any scheduling function on the controller, it would be super useful to be aware when this happens.

There is a sensor device class timestamp, so that can be used to hold the current clock time... and a device class duration which would work for recording clock skew. Probably just m would be sufficient resolution, though we could get fancy and try to come up with a s value...actually probably not a good idea, as that would likely oscillate a lot and make noise in the sensor history.

@SphtKr
Copy link
Owner Author

SphtKr commented Jan 9, 2025

Make enablement of either sensor configurable, so depends on #1.

@SphtKr
Copy link
Owner Author

SphtKr commented Jan 9, 2025

This may require an option to specify the time zone for the pool controller? Is it sufficient to require that the aqualogic_mqtt process run in the time zone (via TZ env) the controller is set to?

@SphtKr SphtKr added the enhancement New feature or request label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant