Open pterodaktil02 opened 1 year ago
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.
i think most interesting is I Is there any way to read var I from sensor/file etc?
Only I would not be very useful, it would be necessary to also get last input and last error value
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
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?
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.