By trying to choose only one way to send a notification on my phone, I discovered a little problem in the function.
The wiki list the following constant :
but those didn't work for me.NSS_FIREBASE, NSS_FIREBASE_CLOUD_MESSAGING, NSS_GOOGLE_DEVICES 3.0.10 Only with installed casting plugin, NSS_HTTP, NSS_KODI, NSS_LOGITECH_MEDIASERVER, NSS_NMA,NSS_PROWL, NSS_PUSHALOT, NSS_PUSHBULLET, NSS_PUSHOVER, NSS_PUSHSAFER, NSS_TELEGRAM** 2.4.8, NSS_GOOGLE_CLOUD_MESSAGING deprecated by Google and replaced by firebase: for notification subsystem
A look in Domoticz.lua & constants.lua, we can find those definitions:
Code: Select all
['NSS_GOOGLE_CLOUD_MESSAGING'] = 'gcm',
['NSS_HTTP'] = 'http',
['NSS_KODI'] = 'kodi',
['NSS_LOGITECH_MEDIASERVER'] = 'lms',
['NSS_NMA'] = 'nma',
['NSS_PROWL'] = 'prowl',
['NSS_PUSHALOT'] = 'pushalot',
['NSS_PUSHBULLET'] = 'pushbullet',
['NSS_PUSHOVER'] = 'pushover',
['NSS_PUSHSAFER'] = 'pushsafer',
['NSS_TELEGRAM'] = 'telegram',
Code: Select all
-- combine
if (type(subSystems) == 'table') then
_subSystem = table.concat(subSystems, ";")
elseif (type(subSystems) == 'string') then
_subSystem = subSystems
else
_subSystem = ''
end
The wiki also indicates:
but here, it's just a string that must be used.subsystem can be a table containing one or more notification subsystems. See domoticz.NSS_subsystem
I'm using directly "telegram" and it works but it took me some time to understand the problem.
Thanks for your work.