Hello, I am trying to send a I2c command via the OpenHab2 to the raspberry pi. My target is press the switch ON and the command to send a relay on (python code) is executed.
rule: “Powe on”
Item zone1 received command
executeCommandLine("python /etc/openhab2/scripts/relay1config.py") }
Switch zone1 "zone 1"
sitemap home label=“home”
Frame label= “Light Control”
Do I need to do anything else? the code run in the LogViwer but it does not execute anything. If I run my code it is working normally.