OK I found the solution and how is working!!
Here were my steps:
TO fix the permission error:
Based on: OpenHAB sudo [Exec Binding]
-
sudo chmod +x /etc/openhab2/scripts/ws2801color.py
-
sudo addgroup openhab spi
-
sudo pip3 uninstall adafruit-ws2801
(then remove any adafruit files and libraries found in /usr/local/lib/python3.5/dist-packages/) -
sudo visudo -f /etc/sudoers.d/010_pi-nopasswd
-
type in the file:
openhab ALL=(ALL) NOPASSWD: ALL
(this ensures that no password will be prompted when running the script)
Thats it!
Enjoy some LED stip craziness!