Chaps; I had this working in configuration.yaml
and it created a sensor for me
command_line:
- sensor:
name: plex file history
command: 'cat /config/bruce/file/plex.txt'
I’m trying to move this to sensor.yaml but I can’t get either the formatting correct or the syntax as it won’t create a sensor for me.
In configuration.yaml I have include
sensor: !include sensor.yaml
And my sensor.yaml is
- platform: command_line
sensors:
name: plex file history
command: 'cat /config/bruce/file/plex.txt'
It passes Dev Tools / Check configuration with no errors but just doesn’t create the sensor
Please help, believe me I’ve trawled the forums but just can’t get this working.