Hi,
I have a Logitech Harmony Ultimate Remote.
I have a decent HTCP desktop with kodibuntu installed on it. (doesnt have a SPI, GPIO to control my led so
I also have a RPi2 (has OSMC and hyperion application)
Facts:
- Logitech Harmony doesnt work with Kodi (yet) soon supports ip remote)
- I can only connect to one IR device, otherwise both devices will pick up the signal
- I wont use CEC, cause then i can only switch the light when RPi2 is on the tv screen with a active signal
So i tought, i would use HTCP for running kodibuntu and use the RPi2 as hyperion server, included in OSMC).
[b]On the RPi2.
Im using some scripts that are loaded with buttons on my Harmony Remote to a IR receiver[/b]
In the keymap.xml i got this directions:
<red>RunScript("/home/osmc/hyperion/off.py")</red>
<yellow>RunScript("/home/osmc/hyperion/colourswitch.py")</yellow>
<blue>RunScript("/home/osmc/hyperion/switch.py")</blue>
This always works locally.
After creating RSA tokens on the HTCP i can ssh run this following command from the HTCP to the RPi2
ssh osmc@192.168.1.13 python "/home/osmc/hyperion/colourswitch.py"
and the lights on the rpi will change. So far So good.
BUT:
workflow now is
Harmony Remote yellow button -> IR device -> HTCP Desktop keymaps.xml receives [yellow] -> ssh to raspberry -> run command python “/home/osmc/hyperion/colourswitch.py” -> hyperion changes the colour of the leds connection to spi (gpio pins)
On the HTCP i also made an remote.xml with almost the same script as in remote.xml on the raspberry but including the ssh connection i tried this followings but none of them push the code true ssh and activate the script. It looks like the keymap.xml receives the button, well it should, but never run the script remote.
remote.xml on HTCP
<yellow>RunScript(ssh osmc@192.168.1.13 python "/home/osmc/hyperion/colourswitch.py")</yellow>
<yellow>ssh osmc@192.168.1.13 python "/home/osmc/hyperion/colourswitch.py"</yellow>
<yellow>RunScript(ssh osmc@192.168.1.13 "python /home/osmc/hyperion/colourswitch.py")</yellow>
<yellow>RunScript(ssh osmc@192.168.1.13 python "/home/osmc/hyperion/colourswitch.py")</yellow>
Does anyone have a clue why its not working? Sorry for my bad english if i need to re-explain myself please let me know, i barely understand this myself :D. Im trying this 6 hours straight now