Hello,
I need to run a shell command every 5 minute to get the last line from a file notification (logfile). But it does not work until now and I don’t know why:
The shell command from configuration.yaml:
shell_command:
currentweather: touch sbe.txt
The automation:
alias: Sensor value to file (tail file)
description: ""
trigger:
- platform: time_pattern
minutes: /5
condition: []
action:
- event: ""
event_data:
service: shell_command.currentweather
mode: single
What is missing?
What can I do to identify the issue?
Thanks and best regards
sbe