Every Time a File gets written the first time, it adds two lines to the File:
Home Assistant notifications (Log started: 2024-11-15T10:04:50.710043+00:00)
--------------------------------------------------------------------------------
While this might make sense for somebody, or is useful for debugging, there are Cases where it is not only benefitless, but negative.
In my actual Case, i am saving a Templates’ Output to a file, to use it then a Scene.
Therefore it needs to be in YAML Syntax.
Writing a File should have the Possibility to disable unwanted additional Content.
I tried that, but somehow it always got truncated.
Now i solved it by calling a shell script after writing it with file message, that removes the first two lines.
However, i still think generally a File writing service should not write Things the User doesn’t explicitly want. We already have a switch for appending Timestamp to each line. If i want to know when the file got created, i can look in the Properties.