Automation, saving sensor value in csv

alias: notifications
trigger:
  - platform: homeassistant
    event: start
  - platform: template
    value_template: "{{ (states('sensor.0x00124b0003364a01_l2') | float) * 3 < 1 }}"
action:
  - service: persistent_notification.create
    data:
      message: BATTERIE FEHLERHAFT
mode: restart

Ed,
Have you been able to overcome the whitespace at the end of the timestamp?
Proving to be problematic for me.

No, I am importing the CSVs in Excel, and am using an Excel formula to convert the ISO8601 format to an Excel format, and the trailing space is not hindering this.
I had a brief look at the GitHub code of the File Notify component, and think that the space is added in line 64 of the notify.py code:

HA_GitHub_FileNotify

So if you can’t get around it, it might be useful to register an Issue or PR for this on GitHub?

hey thanks.

Great explanation.

Hello,
Is it also possible to save the CSV to an FTP server?
and not on the local system?