Code: Select all
return {
on = {
timer = { 'every minute between 12:00 and 22:00'
}
},
execute = function(domoticz, )
if (domoticz.devices ('Temperature').temperature > 20) then
domoticz.email('Hi Prue you may turn the Aircon on because the temp is:' .. 'Temperature'.temperature '', '*****@gmail.com')
end
end
}