kitopopo wrote: Saturday 31 October 2020 0:38
Does anyone know why using domoticz.notify the message field is read from a local variable but the subject of a local variable is not read?
Fot telegram the subject is ignored. All messages are picked up by the domoticz bot. If you want a specific subject use something like
btw. Please do not post in a topic that is about something else.
I now split the topic and moved your post.
Code: Select all
return {
on = {
--timer = {'at sunset'},
devices = { 'Estora salon level' }
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = 'Estora',
},
execute = function(dz, item)
local porcentaje = item.level
local asunto = 'test'
if porcentaje >= 1 and porcentaje <= 99 then
dz.notify('Whatever', 'subject: ' .. asunto .. '; msg: ' .. porcentaje, dz.PRIORITY_MODERATE, nil, nil, dz.NSS_PUSHOVER)
dz.notify('Whatever', 'subject: ' .. asunto .. '; msg: ' .. porcentaje, dz.PRIORITY_MODERATE, nil, nil, dz.NSS_TELEGRAM)
end
end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>>
dzVents wiki