need your help on lua/dZvent script to get output back in domoticz either to dummy switch/script to process.
I can check the tv status via domoticz raspberry(rPi1). TV is connected to remote raspberry pi(rPi2)
this works on the console but not via a script in domoticz.
Need some help to point me in the right direction.
This is the command I run on the command line
Code: Select all
ssh 192.168.x.x 'echo pow 0 | cec-client -s -d 1 | grep "power status:" | sed "s/..............//" '
Now I am trying with os.execute command in script, but not able to get the response from the command.
Any suggestion how to do that.
In a dZvent script I put these two line just for testing purposes
Code: Select all
local t = os.execute('ping -c 192.168.x.x')
print(t)
Any help is appreciated