Greetings! I am trying to create a file sensor to pull the very last line of a flat text file. Here’s the output of the file… essentially, it’s the a log of a switch.
GPO 1 Lhhhh GPO 1 Hhhhh
How would I go about creating a sensor to check and see the state of the very last line of a text file? So far… I have:
sensor: - platform: file name: SwitchLog file_path: /config/switch/switchsensor.txt
I’m just not sure where to go next.
Thanks for your help.