Include variable values in email notifications
Posted: Sunday 17 December 2017 8:47
Script below works fine and sends the mail BUT
I can't find anything in the docs or forum on how to append the actual values. I tried a few things like {(cellar_Hall_RH.humidity)} but I'm just getting errors. Point me in the right direction please.
Code: Select all
return {
active = true,
on = {
timer = {'every minute'}
},
execute = function(domoticz)
local cellar_Hall_RH = domoticz.devices('FR_02 Cellar Hall')
if (cellar_Hall_RH.humidity >= 40 ) then
domoticz.notify('RH in Cellar Hallway Notification!', 'Current value is ' , domoticz.PRIORITY_NORMAL)
end
end
}