Bonjour à tous, je relance le sujet car j'ai aussi le message d'erreur suivant :
Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_time_bandeau_rouge_thermostat.lua has been running for more than 10
Le script concerné vise à retirer le bandeau rouge qui apparaît sur mes thermostats en comparant la valeur et en la ré-inscrivant. Apparemment il boucle mais je ne sais pas pourquoi.
Code : Tout sélectionner
--script_time_bandeau_rouge_thermostat : lecture consigne et reinjection valeur pour éviter bandeau rouge sur l'affichage
commandArray = {}
ThermostaChbreDor=84
ThermostaPool=270
ThermostaSdBE=269
ThermostatEco=281
Thermostathorsgel=161
ThermostatBuand=83
ThermostatSalon=333
local m = os.date('%M')
if (m % 30 == 0) then
--
consigneeco= string.match(otherdevices_svalues['Eco'], "(%d+%.*%d*)")
consignechbredor= string.match(otherdevices_svalues['Thermostat chambre Dorian'], "(%d+%.*%d*)")
consignepool= string.match(otherdevices_svalues['Thermostat poolhouse'], "(%d+%.*%d*)")
consignesdbe= string.match(otherdevices_svalues['Thermostat SdB enfants'], "(%d+%.*%d*)")
consignehorsgel= string.match(otherdevices_svalues['Hors gel'], "(%d+%.*%d*)")
consigneBuand= string.match(otherdevices_svalues['Thermostat buanderie'], "(%d+%.*%d*)")
consigneSalon= string.match(otherdevices_svalues['Thermostat salon'], "(%d+%.*%d*)")
--
commandArray[0] = { ['UpdateDevice'] = ThermostatEco..'|0|'..consigneeco }
commandArray[1] = { ['UpdateDevice'] = ThermostaPool..'|0|'..consignepool }
commandArray[2] = { ['UpdateDevice'] = Thermostathorsgel..'|0|'..consignehorsgel }
commandArray[3] = { ['UpdateDevice'] = ThermostaChbreDor..'|0|'..consignechbredor }
commandArray[4] = { ['UpdateDevice'] = ThermostaSdBE..'|0|'..consignesdbe }
commandArray[5] = { ['UpdateDevice'] = ThermostatBuand..'|0|'..consigneBuand }
commandArray[6] = { ['UpdateDevice'] = ThermostatSalon..'|0|'..consigneSalon }
end
return commandArray
Ca ne le fait pas à chaque exécution du script mais entre 5 et 10 fois par jour.