I was first thinking about logreader device.
BUT I guess the shellsensor device is much more comfortable for this.
{
"id": "yamaha-power-indicator",
"name": "Yamaha receiver",
"class": "ShellSensor",
"attributeName": "status",
"attributeType": "string",
"command": "awk '/power/ {print $1}' /home/pi/console.log",
"interval": 10000
},
This device is executing the cat command every 10 seconds and should create a variable that containsan entry of your power status from the console.log file.
But as long as I don’t know anything more about the structure of your logfile it’s hard to tell how the command would look like. But maybe this shellsensor will already fit your needs.
.
another possibility is the logreader device.
but that’s more complex because of the regex match that needs to fit exactly.
pls. try the above device and give some feedback. thx
edit 1 : could it be that i am on the wrong track regarding “console.log” -> is this an expression to give feedback to the bash?! or does it write a logfile?! sorry for that maybe very stupid question ^^
edit 2 : ok as it seems - console.log is no logfile … shoot … ^^
ok now i guess we need another possibility …