sur le log plus d'erreurs , j'ai la création de toutes variables mais rien ne se passe .
mon script avec toutes corrections :
Code : Tout sélectionner
dofile('/home/pi/domoticz/scripts/lua/modules.lua')
local debug = true
commandArray = {}
-- radar0
if stateChange('radar0') == "On" and (timeofday['Nighttime'])
then
commandArray['Eclairage_Ext'] = "On"
commandArray['inter_chalet_Virtuel'] = "On"
print("Radar mode nuit")
end
if stateChange('radar0') == "On" and (timeofday['Daytime'])
then
commandArray['carillon'] = "On"
print("Ding dong mode jour")
end
---- carillon sur ouverture1
if stateChange('ouverture1') == "Open"
then
commandArray['carillon'] = "On"
print("Chalet ouvert")
end
--- chalet_inter_virtuel
if stateChange('inter_chalet_Virtuel') == "On"
then
commandArray['Eclairage_chalet'] = "Off"
elseif
stateChange('inter_chalet_Virtuel') == "Off"
then
commandArray['Eclairage_chalet'] = "On"
end
return commandArray