Hello,
I’d like to create an automation which saves the value of a sensor every fix time and maintain last N values in an array, so I can predict future values based on previous day’s ones.
I don’t know if best way of doing it is:
- With a sql query at the database.
- With a text file (csv).
- With an array (I don’t know if it’s possible to maintain an array whose values are stored permanently even HA is restarted).
- …
Does anybody point me to the best way?
2 posts - 2 participants