About This File
I have a Secure SRT321 room thermostat in my living room, and up until now the only function that it has performed is as a temperature sensor. Changing the temperature on the thermostat has had no effect. I haven't associated it with my boiler switch, as I've implemented a multi-room system. In theory, I should be able to associate the thermostat with the Danfoss LC-13 radiator valves in that room, but that doesn't seem to work. However, what I really wanted to do is to override the Heating Panel for that room. That way, any overrides will also be visible in my Heating Override Virtual Device.
This scene should work with any thermostat device (including the radiator valves), but is primarily designed to work with room thermostats. When the set point temperature on the thermostat is changed, then the corresponding Heating Panel for the room that the thermostat is located in will also be updated. If the temperature that is selected is not the same as the current scheduled temperature for that room, then it will put the Heating Panel in manual mode. If it's the same as the scheduled temperature, then the Heating Panel will revert to scheduled mode. By having it update the Heating Panel, then the radiator valves in the room will also be updated.
You will need to change the list of devices ids in the Scene Header, for each of the room thermostats:
--[[ %% properties 123 targetLevel 234 targetLevel --]]
Ensure that you enter the device id for the thermostat and not the associated temperature sensor on the device, if there is one.
You can specify a fixed override duration (the number of minutes that the Heating Panel will be overridden) by changing this variable:
local overrideDurationMins = 0 -- Set to zero to override until next scheduled change
However, if you leave this variable as zero, then it will override the Heating Panel until the time that the panel is next due to change, or for the Minimum Duration. The Minimum Duration can be specified here:
local minimumOverrideMins = 60 -- If the duration until the next scheduled change is less than this, then use this value
Set the Minimum Duration to zero if you don't want use this feature.
You might need to increase the number of scenes that can run concurrently by changing the Max Running Instances in the scene properties. Changing the thermostat could trigger several occurrences of this scene. If there is a limit on the number of scenes that can run, then it's possible that the final setting of the thermostat will be ignored.
Download it from here: Room Thermostat Override 1.0.lua