Sensor Event History

Hello,

Is there a way to store sensor history in a file?

Yep, the file notification:

That’s great.

A few questions;

  1. Will it show the time the event occured?
  2. Will it show a list of all events until cleared?
  3. Can you show the full file history on Lovelace?

Thanks again

Glenn

  1. Yes if you follow VDrainer’s example.
  2. It will continue to grow until you manually delete the contents. You might be able to use a shell script to delete the file.
  3. If you want to do this use the custom-home-feed card instead.

Hi Tom,

Just back onto this some 5 weeks on.

I have now successfully got the data going into a file on my RPI. In order to get this info into lovelace I have tried iframe, but it isn’t dynamic and when the file changes it is not updating. I had forgotten I had posted this previously, so with regards to point 3 above I have now installed the custom-home-feed-card, but I am struggling to understand how I configure the card to pull in from /local/filename.txt. Can you point me in the right direction please?

Thanks