Hi,
first of all, this is my first day with openHAB…
I installed today the openHAB runtime core, the addons and the Designer.
I did the very good beginners guide from:
https://openhabdoc.readthedocs.org/de/latest/
But I have no hardware to switch available, so i thought that I could emulate a switch with these two little programs:
First program “on.sh”
#!/bin/sh echo deleting off ; rm /home/USER/testfiles/off ; echo creating on ; touch /home/USER/testfiles/on ; echo exit
Second program “off.sh”
#!/bin/sh echo deleting on ; rm /home/mrstone/testfiles/on ; echo creating off ; touch /home/mrstone/testfiles/off ; echo exit
When I run this code in the terminal, everything is fine.
Then I added in the openHAB Designer the following line:
Switch Testswitch "Testswitch" (Testroom) {exec=">[ON:sh /home/USER/testfiles/on.sh] >[OFF:sh /home/USER/testfiles/off.sh]"}
Unfortunatly, nothing is happening when i press the switch in openHAB
What is wrong?
Thx, mr_stone