Bonjour,
Avec le tellstick duo, il y a t-il possibilité d'envoyer un mail en fonction de l'état d'un émetteur. Par exemple un détecteur d'ouverture activé et le programme envoie un mail en signalant "porte entrée ouverte".
Si oui , comment faire avec Nexahome.
Merci de votre réponse
traduction francais/anglais automatique!
French translation/English automatic!
Hello,
With the tellstick duo, there is possibility of sending an e-mail according to the state of a transmitter. For example a detector of opening activated and the program sends an e-mail while announcing “carries entered open”.
If so, how to make with Nexahome.
Thank you for your answer
Nexahome mail
Moderator: Telldus
-
- Posts: 34
- Joined: Fri Mar 17, 2023 9:45 am
Re: Nexahome mail
Je me réponds puisque j'ai trouvé une solution.
J'ai trouvé dans le forum Nexahome un script de Henrik qui semblait correspondre a ce que je voulais.
Le voici avec mes modifications:
Appeler ce fichier 6.bsh par exemple, (toujours un chiffre comme nom de fichier)
Les fichiers mail-entree-on.bat et mail-entree-off.bat:
"c:\nexahome\courrier\" (mettre le bon chemin)
le smtp.gmail.com:587 est peut etre a modifier en fonction de votre pays.
Telecharger SendEmail ( http://caspian.dotconf.net/menu/Software/SendEmail/) et mettre le fichier SendEmail.exe dans le même dossier que les fichier .bat
Cette solution fonctionne avec Windows
Automatic translation in English:
I answer myself because I found a solution.
I found in the Nexahome forum a Henrik script that seemed to match was what I wanted.
Here it is with my changes:
Call this file 6.bsh for example, (always a number as the file name)
files mail-entree-on.bat and mail-entree-off.bat:
"c:\nexahome\courrier\" (put the right road)
smtp.gmail.com:587 is may be a change according to your country.
Download SendEmail ( http://caspian.dotconf.net/menu/Software/SendEmail/) and put the SendEmail.exe file in the same folder as the .bat file
This solution works with Windows
/J-J
J'ai trouvé dans le forum Nexahome un script de Henrik qui semblait correspondre a ce que je voulais.
Le voici avec mes modifications:
Code: Select all
//test de lampe avec envoi de mail
String on = "ON";
String off = "OFF";
if (deviceIsOn("6")) { //mettre le numero id du device qui doit déclencher le mail
on += ",6";
execFile("C:/nexahome/courrier/mail-entree-on.bat"); // mettre le bon chemin
} else {
off += ",6";
execFile("C:/nexahome/courrier/mail-entree-off.bat");
}
execParam(getMode());
execParam(on);
execParam(off);
Les fichiers mail-entree-on.bat et mail-entree-off.bat:
Code: Select all
set date = (DATE /T)
set time = (TIME /T)
c:\nexahome\courrier\SendEmail -f moi@free.fr -t destinataire@gmail.com -xu moi@gmail.com -xp "password" -u "Titre du mail" -m "texte du mail le %date% a %time%" -s smtp.gmail.com:587
le smtp.gmail.com:587 est peut etre a modifier en fonction de votre pays.
Telecharger SendEmail ( http://caspian.dotconf.net/menu/Software/SendEmail/) et mettre le fichier SendEmail.exe dans le même dossier que les fichier .bat
Cette solution fonctionne avec Windows
Automatic translation in English:
I answer myself because I found a solution.
I found in the Nexahome forum a Henrik script that seemed to match was what I wanted.
Here it is with my changes:
Code: Select all
//test of lamp with sending mail
String on = "ON";
String off = "OFF";
if (deviceIsOn("6")) { //put the number id of the device to trigger the mail
on += ",6";
execFile("C:/nexahome/courrier/mail-entree-on.bat"); // put the right road
} else {
off += ",6";
execFile("C:/nexahome/courrier/mail-entree-off.bat");
}
execParam(getMode());
execParam(on);
execParam(off);
files mail-entree-on.bat and mail-entree-off.bat:
Code: Select all
set date = (DATE /T)
set time = (TIME /T)
c:\nexahome\courrier\SendEmail -f moi@free.fr -t destinataire@gmail.com -xu moi@gmail.com -xp "password" -u "Titre du mail" -m "texte du mail le %date% a %time%" -s smtp.gmail.com:587
"c:\nexahome\courrier\" (put the right road)
smtp.gmail.com:587 is may be a change according to your country.
Download SendEmail ( http://caspian.dotconf.net/menu/Software/SendEmail/) and put the SendEmail.exe file in the same folder as the .bat file
This solution works with Windows
/J-J
Re: Nexahome mail
Bonjour,
Je voudrais savoir comment déclarer le "contacteur de porte" de DI-O pour détecter l'ouverture d'une porte avec mon tellstick Duo ?
Merci
I would like to know how to declare the "open door detector" DI-O with my tellstick Duo ?
Thanks.
Stephane.
Je voudrais savoir comment déclarer le "contacteur de porte" de DI-O pour détecter l'ouverture d'une porte avec mon tellstick Duo ?
Merci
I would like to know how to declare the "open door detector" DI-O with my tellstick Duo ?
Thanks.
Stephane.
Tellstick Duo
-
- Posts: 34
- Joined: Fri Mar 17, 2023 9:45 am
Re: Nexahome mail
Bonjour,
Il faut l'enregistrer dans tellduscenter (nouvel appareil, sélectionner Chacon self learning on/off, Lancer le scan et ecarter les deux éléments du contacteur de porte)
Vous devrez avoir un numéro de code du genre 3300000 et Unicode 10.
Valider la saisie.
Nexahome: Fermer le programme, le rouvrir. Vous devez avoir le numéro du nouveau device installé.
C'est ce numéro à utiliser dans les fichiers bsh.
Cordialement.
Il faut l'enregistrer dans tellduscenter (nouvel appareil, sélectionner Chacon self learning on/off, Lancer le scan et ecarter les deux éléments du contacteur de porte)
Vous devrez avoir un numéro de code du genre 3300000 et Unicode 10.
Valider la saisie.
Nexahome: Fermer le programme, le rouvrir. Vous devez avoir le numéro du nouveau device installé.
C'est ce numéro à utiliser dans les fichiers bsh.
Cordialement.