I searched this forum for a couple of days before posting but I did't find any way to solve my problem.
I have this lua script named script_device_lights.lua, located under /xavier/domoticz/scripts/lua/
Code: Select all
commandArray = {}
if (devicechanged['Luci corridoio'] == 'On') then
os.execute ("/home/xavier/domoticz/scripts/luci_corridoio.sh")
end
return commandArray
Code: Select all
#!/bin/bash
izsynth -e naturalreaders -v Federica -t "Luci del corridoio accese"
This is the domoticz log:
2018-03-22 19:02:40.214 (SonOff_corridoio) Lighting 1 (Luci corridoio)
2018-03-22 19:02:40.423 Executing script: /home/xavier/domoticz/scripts/luci_corridoio.sh
2018-03-22 19:02:41.269 MQTT: Topic: domoticz/in, Message: {"idx":13,"nvalue":0,"svalue":""}
2018-03-22 19:02:41.274 LUA: Time set to Night
My lua script is chmod +x and 755
My sh script is chmod +x and 755
If I launch my sh script in a terminal Windows using both root and not-root users it is working and I am able to hear the message... THE PROBLEM IS THAT WHEN THE SH SCRIPT IS EXECUTED BY DOMOTICZ I SIMPLY CAN'T HEAR ANYTHING (sorry for the capital letters.....)
Could you please help me to understand my error because it is driving me totally crazy!
Thanks!!!
Echeberri