I have a hot water recirculating pump that I control with Domoticz. We turn this on 15 minutes before taking a shower of when we want hot water at the faucet. Is there a way to turn off this switch after it has ben on for x minutes? I tried doing this in dzVents without luck. Here is what I have so far, 269 is the "hot water" switch id:
Code: Select all
return {
on = {
devices = { 269 }
},
execute = function(domoticz, item)
if domoticz.devices(269).state == 'On' then
domoticz.devices('hot water').switchOff().afterMin(30)
domoticz.log('hot water is on, shutting down in 30 min')
end
end
}
Best home automation system I have used. The most reliable, flexible and easy to use!
Thanks!
Pete