SOLVED Error executing script command returned: 512 and 32256
Posted: Tuesday 30 October 2018 10:33
We made a simple Python script (below) to switch on a led at the Raspberry GPIO pin 4.
This script works perfect at the command line but unfortunately not in a Scene in Domoticz.
We got the following error:
Error executing script command (/home/pi/domoticz/scripts/ledon.py). returned: 32256
The specified path is 100% ok (script:///home/pi/domoticz/scripts/ledon.py)
Then we changed the user rights with sudo 755.
Then we got the following error;
Error executing script command (/home/pi/domoticz/scripts/ledon.py). returned: 512
Then we tried the standard delivered sample within the Domoticz python script folder:
Error executing script command (/home/pi/domoticz/scripts/python/script_time_demo.py). returned: 32256
So, even the standard python sample won't work within a Domoticz Scene!
We searched the forum and saw a lot of these kind of errors but nu solution for this simple script.
Thanks for the help!
Python script:
from gpiozero import LED
red_led=LED(4)
red_led.on()
This script works perfect at the command line but unfortunately not in a Scene in Domoticz.
We got the following error:
Error executing script command (/home/pi/domoticz/scripts/ledon.py). returned: 32256
The specified path is 100% ok (script:///home/pi/domoticz/scripts/ledon.py)
Then we changed the user rights with sudo 755.
Then we got the following error;
Error executing script command (/home/pi/domoticz/scripts/ledon.py). returned: 512
Then we tried the standard delivered sample within the Domoticz python script folder:
Error executing script command (/home/pi/domoticz/scripts/python/script_time_demo.py). returned: 32256
So, even the standard python sample won't work within a Domoticz Scene!
We searched the forum and saw a lot of these kind of errors but nu solution for this simple script.
Thanks for the help!
Python script:
from gpiozero import LED
red_led=LED(4)
red_led.on()