How to write to a log file

hello,
for month I use to write in log file with
notify:

  • name: writetofile
    platform: file
    filename: Pierre_log
    since 2024.5 or 6 I get a warning use the new service notify.send_message
    can you give me a simple example

Hi Pierre, have you seen this? home-assistant.io → integrations → file

the documentation is not clear. I need a small example

Thanks. it works
file integration: ToLogEnergy [/config/Plogenergy]

  • service: notify.send_message
    data:
    entity_id: notify.tologenergy
    message: hello

Good you got it solved!

Please take the time to mark your post as the solution, you do that by selecting the three dots under the post:

image

Then select the check box:

image
By doing so the solution can be helpful to others and prevents that someone else steps in to try to help.