thanks.
How would you add a time stamp?
EDIT, found
notify:
- platform: file
name: filenotify
filename: /share/history/10sec_power_reading.csv
#timestamp: true
automation:
- alias: sensor_values_to_file
initial_state: 'on'
trigger:
- platform: time
seconds: 10
action:
- service: notify.filenotify
data_template:
message: '{{ states.sensor.efergy_802171.state }}; {{now().strftime("%Y%m%d-%H%M%S")}}'