Largely like it says on the tin. I have a free fridge pantry in range of my HA, and I want to log when the door is opened and closed, just the timestamps so that if something happens I have an idea of what times to go back and review the camera footage for. The idea would be (using HA Container) to have the data write to pantry_logs/pantry_door_log.csv (from the /config mount point) , but I can't figure out how to write to a file. I do have NodeRed set up in case it helps, but I'm honestly not very familiar with it
#trying to write sensor data to a csv file
1 messages · Page 1 of 1 (latest)
Home Assistant Community
You can use the file notification for this. All you have to do is build the message like you want. eg: notify: - platform: file name: filenotify filename: /your/path/to/file.csv #timestamp: true automation: - alias: sensor_values_to_file initial_state: 'on' trigger: - platform: time at: '23:59:55' ac...