Second Telegram bot

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
Marque1968
Posts: 60
Joined: Tuesday 03 April 2018 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Second Telegram bot

Post 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)
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Second Telegram bot

Post 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
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest