Bonjour,
débutant en script et domoticz, comment faire pour qu'un thermostat setpoint prenne la même valeur qu'un autre
ce que j'essaie de faire:
si thermostat1 = X°
alors thermostat2=X°
thermostat1 est un capteur virtuel
thermostat2 est réel
X° = valeur actuel
Cela doit être simple mais je n'arrive pas à trouver la soluce.
D'avance merci.
script setpoint
Re: script setpoint
Finalement j'ai trouvé
Code : Tout sélectionner
commandArray ={}
temp_planning = otherdevices_svalues['Planning T° Clim salon']
temp_clim_salon = otherdevices_svalues['T° Clim salon']
if temp_clim_salon ~= temp_planning
then
commandArray['OpenURL'] = 'http://192.168.0.9:8080/json.htm?type=command¶m=udevice&idx=44&nvalue=0&svalue='..temp_planning..''
end
return commandArray