Status on CodeDevice
Posted: 20 Dec 2015 18:44
Hi,
I can“t figure out what to write to get the correct status on my switchBinary CodeDevice.
I have a shellscript turntv.sh with different inputs turns my tv on or off. I use it in Code Device like system("/opt/scripts/turntv.sh on").
The problem is that the device always shows it as off. If i run the script in shell it will echo on or off. I also have a status parameter that returns on or off but the device always shows off.
Can someone push me in the right direction here?
I can“t figure out what to write to get the correct status on my switchBinary CodeDevice.
I have a shellscript turntv.sh with different inputs turns my tv on or off. I use it in Code Device like system("/opt/scripts/turntv.sh on").
The problem is that the device always shows it as off. If i run the script in shell it will echo on or off. I also have a status parameter that returns on or off but the device always shows off.
Can someone push me in the right direction here?