Page 1 sur 1

script setpoint

Publié : 22 janv. 2018, 11:34
par spike2012
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.

Re: script setpoint

Publié : 23 janv. 2018, 09:02
par spike2012
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&param=udevice&idx=44&nvalue=0&svalue='..temp_planning..''
end
return commandArray