Page 1 of 1

Second Telegram bot

Posted: Monday 04 March 2019 8:31
by Marque1968
Less then 24 hours after installing the Telegram bot, I already have the need for a second bot. Why? Well, to debug I now send a telegram when needed, with just a minor beep sounding as not to disturb my normal activities. However, if there is an alarm situation, I need an bot set with a very loud and long lasting sound, so I am sure I would even wake up in those cases (fire, break in etc)

I can think of two options:
1) Let the entry field of botID and chatID allow to hold multiple value's seperated by a special character (space?). In dzvents etc allow domoticz.notify to be called by domoticz.NSS_TELEGRAM2

2) In DZVents allow the "extra" field in domoticz.notify to contain another bot and chat id then the default given in the UI.
e.g.:
sendTelegramAlarm = function(dz, sendMessage)
dz.notify("Domoticz", sendMessage, dz.PRIORITY_NORMAL,dz.SOUND_DEFAULT, varAlarmBot .. " " .. varAlarmChat , dz.NSS_TELEGRAM)
dz.log('Telegram Alarm send')
end,

(or perhaps something like this is already implemented, in which case please change the status of this suggestion into a noob-question)

Re: Second Telegram bot

Posted: Monday 04 March 2019 8:37
by emme
uh... so you need a bot for low_priority alarm, and another for high_priority?

...well, I'm not clear about why using 2 different bot, but anyhow
chech this out :
https://www.domoticz.com/forum/viewtopi ... 3&p=205077