Dear all, i am running a digital picture frame on a RPI zero.
After updating to Openhab 4 i can not turn my picture frame display on and off using the exec script anymore. I do have 2 exec things to turn the display on and off:
To be honest its years ago since i setup these things. I have no idea how to fix this. Can someone help how i can send sudo vcgencmd display_power to a RPI in the network?
I can’t help with the command itself, but have you tried to execute exactly the same command via command line?
Without any log files provided we don’t know if your command is not working (e.g. is the path still openhab2 after upgrade?) or if the issue is with the exec binding and your thing configuration?
Your command executes a ssh command using a private key id_rsa which is stored in direcotory /var/lib/openhab2. If you setup it from scratch without that direcotory the command will not be exeucted if the private ssh key is missing. Besides that if you set it up from scratch you again have to grant sudo privileges.
Putty is not required ssh is executed in the exec command.
but with adapted content with regard to your new setup. E.g. id_rsa is most probably not stored in /var/lib/openhab2 any longer. Is the IP still correct ? Is the user pi still correct ? Does that user accept login using the private key id_rsa ?
Yes thats right. The folder /var/lib/openhab2 doesnt exist anymore. IP and user pi is still correct. Didnt change anything on the digital picture frame.
I do have the folder /var/lib/openhab however, there is no /.ssh/id_rsa anymore. How can i re-setup the thing with openhab4?
Dear all, thank you for your help.
Due to the fact that i do already have mqtt on the picture frame i am now using mqtt to turn on and off the screen.
Using this little script here: