i am using the telegram binding in my rules. Instead of using the telegram action in every rule I created one item and a rule is reacting when the item is changed.
In a rule I define the messages with theese items:
BenachrichtigungTelegram.postUpdate("Die Waschmaschine ist fertig") BenachrichtigungTelegram.postUpdate("Maximaler Verbrauch: " + Waeschetrockner_Max_Verbrauch.state)
One other rule is reacting when this item is changed:
rule "Benachrichtigung Telegram" when Item BenachrichtigungTelegram received update then var nachricht = BenachrichtigungTelegram.state var telegramAction = getActions("telegram","telegram:telegramBot:FSS6") telegramAction.sendTelegram("benachrichtigung: "+ nachricht) end
I would expect that I receive 2 messages, one with the message “Die Waschmaschine ist fertig” and one with “Maximaler Verbrauch xxx kw”
But instead I just receive the second message 2 times. The first message is ignored. I guess that is because the item is changed too fast, so the item has the 2. status before the messaging rule can send the first message.
Is there a way to prevent this and still keep my notification rule or do I need to move the notification back to every rule which is using telegram notifications?