Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

Pb inclusion MySensors

Retrouvez ici des sujets concernant le protocole mySensors et les modules domotiques de type mySensors utilisés avec JEEDOM
/!\ Plugin mySensors non officiel
poupoune1974
Timide
Messages : 130
Inscription : 27 juil. 2015, 18:28

Pb inclusion MySensors

Message par poupoune1974 » 06 mai 2019, 19:12

Bonjour,
J'ai créé un nouveau noeud mysensors (ID=8), mais il n'apparait pas dans la liste des "Mysensors " de Jeedom.
Pourtant, il y a une activité dans les logs :

Code : Tout sélectionner

Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:BC
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=8)
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:CHKUPL:OK
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:GWL OK
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 10-10-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:PINGED (ID=10, hops=1)
Mon May 06 2019 19:05:28 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-10-10 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:PINGED (ID=8, hops=1)
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;255;0;0;17;2.1.1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
-> 8;255;3;0;6;M
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;255;3;0;6;0
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=6,pt=0,l=1,sg=0,ft=0,st=ok:M
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=3,c=0,t=0,pt=0,l=0,sg=0:
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;3;0;0;0;
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:SEND 0-0-8-8 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 0;255;3;0;9;TSP:MSG:READ 8-8-0 s=3,c=1,t=16,pt=2,l=2,sg=0:1
Mon May 06 2019 19:05:29 GMT+0200 (CEST) : 8;3;1;0;16;1
Voici le log Arduino :

Code : Tout sélectionner

0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
4 TSM:INIT
4 TSF:WUR:MS=0
12 TSM:INIT:TSP OK
14 TSM:INIT:STATID=8
16 TSF:SID:OK,ID=8
18 TSM:FPAR
88 TSF:MSG:SEND,8-8-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
557 TSF:MSG:READ,0-0-8,s=255,c=3,t=8,pt=1,l=1,sg=0:0
563 TSF:MSG:FPAR OK,ID=0,D=1
1851 TSF:MSG:READ,10-10-8,s=255,c=3,t=8,pt=1,l=1,sg=0:1
2097 TSM:FPAR:OK
2097 TSM:ID
2099 TSM:ID:OK
2101 TSM:UPL
2105 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
2125 TSF:MSG:READ,0-0-8,s=255,c=3,t=25,pt=1,l=1,sg=0:1
2131 TSF:MSG:PONG RECV,HP=1
2134 TSM:UPL:OK
2136 TSM:READY:ID=8,PAR=0,DIS=1
2142 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
2156 TSF:MSG:READ,0-0-8,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
2166 TSF:MSG:SEND,8-8-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
2177 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
2217 TSF:MSG:READ,0-0-8,s=255,c=3,t=6,pt=0,l=1,sg=0:M
2228 TSF:MSG:SEND,8-8-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
2234 MCO:REG:REQ
2238 TSF:MSG:SEND,8-8-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
2258 TSF:MSG:READ,0-0-8,s=255,c=3,t=27,pt=1,l=1,sg=0:1
2265 MCO:PIM:NODE REG=1
2267 MCO:BGN:STP
2269 MCO:BGN:INIT OK,TSP=1
2275 TSF:MSG:SEND,8-8-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:1
La gateway est serial, et je suis en version 2 de l'API

Mon sketch :

Code : Tout sélectionner

// Enable debug prints to serial monitor
#define MY_DEBUG 


// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_PARENT_NODE_IS_STATIC //Define MY_PARENT_NODE_IS_STATIC to disable fall back if parent node fails
#define MY_NODE_ID 8
#define MY_RF24_PA_LEVEL RF24_PA_MIN

// Example sketch showing how to send in OneWire temperature readings
#include <MySensors.h>
#include <Bounce2.h>


#define CHILD_ID 3
#define BUTTON_PIN  3  // Arduino Digital I/O pin for button/reed switch

Bounce debouncer = Bounce(); 
int oldValue=-1;

// Change to V_LIGHT if you use S_LIGHT in presentation below
MyMessage msg(CHILD_ID,V_TRIPPED);

void setup()  
{  
  // Setup the button
  pinMode(BUTTON_PIN,INPUT);
  // Activate internal pull-up
  digitalWrite(BUTTON_PIN,HIGH);

  // After setting up the button, setup debouncer
  debouncer.attach(BUTTON_PIN);
  debouncer.interval(5);

}

void presentation() {
  // Register binary input sensor to gw (they will be created as child devices)
  // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. 
  // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
  present(CHILD_ID, S_DOOR);  
}


//  Check if digital input has changed and send in new value
void loop() 
{
  debouncer.update();
  // Get the update value
  int value = debouncer.read();

  if (value != oldValue) {
     // Send in the new value
     send(msg.set(value==HIGH ? 1 : 0));
     oldValue = value;
  }
}
Merci pour vos suggestions
Jeedom sur Rpi2
Noeuds Mysensors:
- Citerne eau de pluie
- Relais lumières
- Pollution, température, humidité
- Arrosage extérieur
- Consommation électrique
H801 : Leds RGBW

poupoune1974
Timide
Messages : 130
Inscription : 27 juil. 2015, 18:28

Re: Pb inclusion MySensors

Message par poupoune1974 » 06 mai 2019, 20:57

Et après un reset du noeud, j'ai une ligne

Code : Tout sélectionner

!TSF:MSG:FPAR INACTIVE
à la fin du moniteur série
Jeedom sur Rpi2
Noeuds Mysensors:
- Citerne eau de pluie
- Relais lumières
- Pollution, température, humidité
- Arrosage extérieur
- Consommation électrique
H801 : Leds RGBW

Avatar de l’utilisateur
yogui
Actif
Messages : 797
Inscription : 11 févr. 2015, 21:52
Localisation : Alsace

Re: Pb inclusion MySensors

Message par yogui » 07 mai 2019, 12:12

Je suis sur mon portable
Mais essaie de passer ton log dans ce parser

https://www.mysensors.org/build/parser

Envoyé de mon STF-L09 en utilisant Tapatalk

Raspberry PI 2 , Razberry Zwave +
Fibaro FGRM-222
Qubino ZMNHCA2
Fibaro FGS-222
Qubino ZMNHBA2
Everspring AN180-6
Everspring Z-WAVE SP-103
Raspberry Pi 2 + touch 3.5" en Squeezebox
Modules Mysensors

Dev. Librairie Arduino pour Somfy RTS

poupoune1974
Timide
Messages : 130
Inscription : 27 juil. 2015, 18:28

Re: Pb inclusion MySensors

Message par poupoune1974 » 07 mai 2019, 16:52

Waouh, je ne connaissais pas ! Merci pour le tuyau.
Je viens de trouver mon erreur : il manquait la présentation du sketch !!!!

Code : Tout sélectionner

sendSketchInfo("Door Sensor", "1.0");
Une fois rajouté mon noeud s'affiche.
Pfff, que d'heures perdues à chercher pour çà !!!!
Jeedom sur Rpi2
Noeuds Mysensors:
- Citerne eau de pluie
- Relais lumières
- Pollution, température, humidité
- Arrosage extérieur
- Consommation électrique
H801 : Leds RGBW

Répondre

Revenir vers « [Plugin Tiers] MySensors »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 4 invités