i recently upgraded from 16782 to 17053 and noticed a script is not updating the thermostat anymore.
i notice Thermostaat Setpoint is changing values in domoticz and should trigger this script.
also Thermostaat has a different value than Thermostaat Setpoint so the script should update this value in Thermostaat but it is not.
Is there some breaking code regarding thermostats, setpoint or something else?
i also tried removing the silent part but that did not help either
Code: Select all
local THERMOSTAAT = 'Thermostaat' -- Thermostaat domoticz device name in this case a dummy thermostat device, not Intergas version which is generated in domoticz
local THERMOSTAATSETPOINT = 'Thermostaat Setpoint' -- Thermostat setpoint device which represents the current thermostat setting(this is an Intergas temp device, not the Intergas generated thermostat device)
-- if there is a thermostat change coming from the physical thermostat/app then sync it with the dummy thermostat in domoticz
if (device.name == THERMOSTAATSETPOINT and domoticz.devices(THERMOSTAATSETPOINT).temperature ~= domoticz.devices(THERMOSTAAT).setPoint) then
local SetTemperature = domoticz.devices(THERMOSTAATSETPOINT).temperature
--we update silent otherwise the script gets triggered again
domoticz.devices(THERMOSTAAT).updateSetPoint(SetTemperature).silent()