Heating Script struggling to understand
Posted: Friday 19 November 2021 12:46
I have tried dzVents a while ago and did not have much luck. My fault just my lack of understanding.
So I thought as I can now control my Evohome through Domoticz I would have another go.
I want the heating to switch from Auto to off if the outside Temperature rises above a certain level.
I have managed to get this working with the script below. I only want this script running between 09:00-16:00 and need some means of stopping the script running so I can control my Evohome normally. I created a dummy Switch called 'Heating Auto' and hoped I could get the script to run when this switch was 'On" and between the above times. I just seem to be unable to figure out how to implement this after many attempts. Please could someone point me in the right direction. I have watched the excellent video and read through the guide.
Thanks
So I thought as I can now control my Evohome through Domoticz I would have another go.
I want the heating to switch from Auto to off if the outside Temperature rises above a certain level.
I have managed to get this working with the script below. I only want this script running between 09:00-16:00 and need some means of stopping the script running so I can control my Evohome normally. I created a dummy Switch called 'Heating Auto' and hoped I could get the script to run when this switch was 'On" and between the above times. I just seem to be unable to figure out how to implement this after many attempts. Please could someone point me in the right direction. I have watched the excellent video and read through the guide.
Thanks
Code: Select all
return {
on = {
devices = {
'Outside Shade',
}
},
execute = function(domoticz, device)
if
(device.name == 'Outside Shade' and device.temperature <= 12.5) then
domoticz.devices('Evo Color').setMode(domoticz.EVOHOME_MODE_AUTO)
elseif
(device.name == 'Outside Shade' and device.temperature >= 12.6) then
domoticz.devices('Evo Color').setMode(domoticz.EVOHOME_MODE_HEATINGOFF)
end
end
}/code]
My