je ne sais si c'est depuis la maj V4.9700, mais je n'arrive plus à utiliser ma variable heure dans un script lua device
Code : Tout sélectionner
time = os.date("*t")
local mois = os.date("%m")
local jour = os.date("%w")
local heure = os.date("%H:%M")
commandArray = {}
---------------------------lumière du soir
if ((devicechanged['Nuit'] == 'On') and (otherdevices['Lampadaires'] == 'Off')) then
commandArray['Lampadaires']='On'
end
if ((heure == '20:50') and (otherdevices['Lampadaires'] == 'On')) then
commandArray['Lampadaires']='Off'
end
return commandArrayavez vous une idée,
merci