Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 110846

Maintain an array with last values of a sensor

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 110846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>