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

Restore sensor state after reboot #33

Open
pterodaktil02 opened this issue Nov 6, 2022 · 5 comments
Open

Restore sensor state after reboot #33

pterodaktil02 opened this issue Nov 6, 2022 · 5 comments

Comments

@pterodaktil02
Copy link

pterodaktil02 commented Nov 6, 2022

Hi
I have a problem that controller forgot it's state when i reboot my HA. And it begin search optimal parametrs from the begining.
It seems a good idia restore last state after HA restart.

@soloam
Copy link
Owner

soloam commented Nov 6, 2022

I don't think this is possible, the sensor loses the data on reboot, I don't think it's possible to restore it on reboot! If it's possible I have to see who to implement it.

@pterodaktil02
Copy link
Author

i think most interesting is I
Is there any way to read var I from sensor/file etc?

@soloam
Copy link
Owner

soloam commented Nov 6, 2022

Only I would not be very useful, it would be necessary to also get last input and last error value

@pterodaktil02
Copy link
Author

pterodaktil02 commented Nov 6, 2022

Last input data is not critical - in stable PID controller use only I .
So after start
Let's check situstion that i have on any reboot:
I control objects with very big time constant (from 5 min to 3 hous ).
So after hours of work controller found optimal I and it have very small P and D.
As i see - lost of P or D is not critical - i will get them in few minutes. we can calculate them after start.
But we will search for the value of I again within hours.
Btw it's my fastest control https://pidtuner.com/#/RGtoWzvHBo

@KrzysztofHajdamowicz
Copy link

Idea: implement backing up vital data as JSON to input_text every PID calculation. Add service pid_controller.restore to read backed up state from said input_text . Maybe such feature is enough to make this issue fixed?

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

3 participants