Notification Telegram

Forum dédié aux problématiques concernant les scripts pour DomoticZ.
Entourez votre code et les logs avec les balises nommées code grâce au bouton <\>.
david86
Messages : 224
Inscription : 06 avr. 2018, 08:22

Notification Telegram

Message par david86 »

Bonjour à tous,
Je tente de faire fonctionner les notif via Telegram en LUA.
Actuellement je me sers de pushover en LUA qui fonctionne très bien, je me sers de pushover ET telegram en DZvents qui fonctionne aussi très bien mais impossible de recevoir une notif sur TELEGRAM en lua.
Le test d'envoi de notif TELEGRAM via domoticz est un succès, mais aucun moyen d'envoyer une notif si porte ouverte. Dans les logs pourtant domoticz signifie bien qu'il envoi une notification, mais dans la réalité je ne reçois rien...

Voici mes éléments :
je déclare cela :

Code : Tout sélectionner

local subsystem = "pushover;telegram"
ma ligne d'envoi est celle-ci :

Code : Tout sélectionner

commandArray[#commandArray+1] = {['SendNotification'] = 'Domoticz#La porte d\'entrée est fermée à '..(Heure_Actuelle)..'#0###'..subsystem..''}
Je reçois l'info sur pushover mais rien sur telegram.

J'ai essayé en ne mettant que telegram avec cette ligne :

Code : Tout sélectionner

commandArray['SendNotification']='Domoticz#Porte entrée fermée à : '..(Heure_Actuelle)..'#0###telegram'
Merci de votre bon œil et conseil.
Raspberry Pi 3, Domoticz, RFXComm, contrôle RTS, contrôle SPOT PISCINE ;-), 2 inter Chacon 1000W, 2 inter CHACON 3000W, AEON Stick ZWAVE, 1 wall plug
1 WEMOS avec capteur pression
Boitier sonde + LED en cours...
fcBourgogne
Messages : 172
Inscription : 31 mars 2020, 14:22

Re: Notification Telegram

Message par fcBourgogne »

Bonjour,

Avec ceci chez moi Telegram fonctionne.

Code : Tout sélectionner

 commandArray['SendNotification']='subject#Alarme impossible Petite Fenetre Salon Ouverte.#0'
A+
Raspberry PI5+ 1WIRE + I2C +ESP8266 +esp32
david86
Messages : 224
Inscription : 06 avr. 2018, 08:22

Re: Notification Telegram

Message par david86 »

Merci, mais pas chez moi, ça bascule directement sur Pushover, telegram n'est pas pris en compte... Mince pour moi merci quand même.
Raspberry Pi 3, Domoticz, RFXComm, contrôle RTS, contrôle SPOT PISCINE ;-), 2 inter Chacon 1000W, 2 inter CHACON 3000W, AEON Stick ZWAVE, 1 wall plug
1 WEMOS avec capteur pression
Boitier sonde + LED en cours...
garycooper
Messages : 453
Inscription : 07 août 2017, 23:58

Re: Notification Telegram

Message par garycooper »

Bonjour David86, ici un exemple qui fonctionne chez moi

Code : Tout sélectionner

commandArray['SendNotification']='#Le programme du '.. name ..' vient de se terminer. Il faut maintenant le vider##1#0#telegram'
david86
Messages : 224
Inscription : 06 avr. 2018, 08:22

Re: Notification Telegram

Message par david86 »

Bonjour
Merci de ce nouveau coup de main. Ça a finalement fonctionné…. Car, truc vraiment bête de ma part, lorsque j’activais telegram dans les paramètres de notifications, je n’enregistrais pas ce choix 🤦🏻‍♂️🤦🏻‍♂️
Boulet David !
Raspberry Pi 3, Domoticz, RFXComm, contrôle RTS, contrôle SPOT PISCINE ;-), 2 inter Chacon 1000W, 2 inter CHACON 3000W, AEON Stick ZWAVE, 1 wall plug
1 WEMOS avec capteur pression
Boitier sonde + LED en cours...
Répondre