Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. OpenHAB
  4. OH3 - MySensors Binding

OH3 - MySensors Binding

Scheduled Pinned Locked Moved OpenHAB
135 Posts 34 Posters 1.8k Views 40 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haloway13
    wrote on last edited by
    #55

    so to follow up:

    Here is the log after adding the thing systembroker:

    21:28:27.906 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.151' with clientid bd9a756d-5cf7-46b0-adaa-856d29f8b587
    21:29:27.913 [INFO ] [t.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.151'. Next attempt in 60000ms
    21:29:27.920 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.151' with clientid bd9a756d-5cf7-46b0-adaa-856d29f8b587
    21:30:27.925 [INFO ] [t.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.151'. Next attempt in 60000ms
    21:30:27.933 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.151' with clientid bd9a756d-5cf7-46b0-adaa-856d29f8b587
    21:31:05.860 [INFO ] [openhab.event.InboxRemovedEvent      ] - Discovery Result with UID 'mqtt:systemBroker:mosquitto' has been removed.
    21:31:06.015 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from UNINITIALIZED to INITIALIZING
    21:31:06.072 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from INITIALIZING to OFFLINE
    21:31:06.079 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.151' with clientid bd9a756d-5cf7-46b0-adaa-856d29f8b587
    21:31:06.130 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from OFFLINE to OFFLINE (COMMUNICATION_ERROR): Timeout
    21:31:06.135 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from OFFLINE (COMMUNICATION_ERROR): Timeout to OFFLINE (COMMUNICATION_ERROR): java.io.IOException: Connection reset by peer
    21:31:27.938 [INFO ] [t.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.151'. Next attempt in 60000ms
    21:31:27.943 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from OFFLINE (COMMUNICATION_ERROR): java.io.IOException: Connection reset by peer to OFFLINE
    21:31:27.951 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.151' with clientid bd9a756d-5cf7-46b0-adaa-856d29f8b587
    21:31:27.986 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from OFFLINE to OFFLINE (COMMUNICATION_ERROR): java.io.IOException: Connection reset by peer
    21:32:27.956 [INFO ] [t.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '192.168.1.151'. Next attempt in 60000ms
    21:32:27.967 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.1.151' with clientid bd9a756d-5cf7-46b0-adaa-856d29f8b587
    21:32:27.968 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from OFFLINE (COMMUNICATION_ERROR): java.io.IOException: Connection reset by peer to OFFLINE
    21:32:28.014 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:systemBroker:mosquitto' changed from OFFLINE to OFFLINE (COMMUNICATION_ERROR): java.io.IOException: Connection reset by peer
    
    

    Here is how I configured the thing:

    systembroker.png

    1 Reply Last reply
    1
    • fabyteF fabyte

      After reinstalling the mqtt bindung the MQTT System Broker connection now could be established - strange, that a reinstall was required since I did several OpenHAB system restarts and those didn't fix it.

      Well, now the MySensors binding is working with the system broker:
      Screenshot 2021-02-22 195800.png
      Here's a MySensors temperature item:
      Screenshot 2021-02-22 201902.png

      To sum up, here's what I did

      1. (manually) installed MySensors binding
      2. uninstalled mqtt binding
      3. installed mqtt binding
      4. set up the MQTT system broker connection
        4.1 set Connection Name to systembroker
        4.2 set Broker Host to localhost (it's running on the same device)
        4.3 Show advanced -> set Broker Port to 1883 since it was always using 8883 but I don't use a secure connection
        (4.4 I didn't set a clientid, no user and no password)
      5. set up the MySensors MQTT Gateway thing
        5.1 set Broker Name to systembroker
      H Offline
      H Offline
      haloway13
      wrote on last edited by
      #56

      @fabyte

      Could you post config screens for each of the things above for me?

      Thanks!

      1 Reply Last reply
      0
      • N Offline
        N Offline
        ncollins
        wrote on last edited by
        #57

        One thing I had to do was explicitly set secure="false" into /opt/openhab/userdata/config/org/openhab/mqttbroker.config.

        Please try that, then restart.

        D 1 Reply Last reply
        1
        • N Offline
          N Offline
          ncollins
          wrote on last edited by
          #58

          also, is your MQTT broker password protected? if not, remove the username and password from your system broker configuration.

          H 1 Reply Last reply
          0
          • N ncollins

            also, is your MQTT broker password protected? if not, remove the username and password from your system broker configuration.

            H Offline
            H Offline
            haloway13
            wrote on last edited by
            #59

            @ncollins
            I will check tonight.

            I really appreciate all help so far.

            When you refer to the broker password: do you mean when you install the mqtt using the openhabian-config utility from the command line while being logged in with ssh to the Pi?

            N 1 Reply Last reply
            0
            • fabyteF Offline
              fabyteF Offline
              fabyte
              wrote on last edited by fabyte
              #60

              @haloway13 I had exactly the same problem.
              Here is what I did to fix it:

              1. uninstalled the mqtt binding
                1.1 make sure the /opt/openhab/userdata/config/org/openhab/mqttbroker.config is removed
              2. installed the mqtt binding
              3. setup the system broker

              After that, the system broker connection could be established and the Try to restore connection to '192.168.1.151'. Next attempt in 60000ms messaged disappeared.

              Then you can proceed and set up the MySensors MQTT Bridge.

              H 1 Reply Last reply
              1
              • H haloway13

                @ncollins
                I will check tonight.

                I really appreciate all help so far.

                When you refer to the broker password: do you mean when you install the mqtt using the openhabian-config utility from the command line while being logged in with ssh to the Pi?

                N Offline
                N Offline
                ncollins
                wrote on last edited by
                #61

                @haloway13 yeah, when you did the initial mqtt setup, did you protect it with a password? If not, make sure you clear out the username and password from the OpenHAB broker settings. (I’m not sure if it will fail if you provide credentials to an instance that is not password protected)

                1 Reply Last reply
                0
                • fabyteF fabyte

                  @haloway13 I had exactly the same problem.
                  Here is what I did to fix it:

                  1. uninstalled the mqtt binding
                    1.1 make sure the /opt/openhab/userdata/config/org/openhab/mqttbroker.config is removed
                  2. installed the mqtt binding
                  3. setup the system broker

                  After that, the system broker connection could be established and the Try to restore connection to '192.168.1.151'. Next attempt in 60000ms messaged disappeared.

                  Then you can proceed and set up the MySensors MQTT Bridge.

                  H Offline
                  H Offline
                  haloway13
                  wrote on last edited by
                  #62

                  @fabyte

                  I am not showing such a file as mentioned in 1.1

                  2 & 3 refer to using the web interface?

                  Thanks!

                  fabyteF N 2 Replies Last reply
                  0
                  • H haloway13

                    @fabyte

                    I am not showing such a file as mentioned in 1.1

                    2 & 3 refer to using the web interface?

                    Thanks!

                    fabyteF Offline
                    fabyteF Offline
                    fabyte
                    wrote on last edited by
                    #63

                    @haloway13 Yes, everything via the web interface

                    1 Reply Last reply
                    0
                    • H haloway13

                      @fabyte

                      I am not showing such a file as mentioned in 1.1

                      2 & 3 refer to using the web interface?

                      Thanks!

                      N Offline
                      N Offline
                      ncollins
                      wrote on last edited by ncollins
                      #64

                      @haloway13 Here are all of my settings in my sandbox environment.

                      A couple things to note, NO MQTT BINDING INSTALLED, no special MQTT thing configured, my mqtt install is not password protected.

                      Screen Shot 2021-03-05 at 12.49.22 PM.png Screen Shot 2021-03-05 at 12.53.23 PM.png Screen Shot 2021-03-05 at 12.54.34 PM.png Screen Shot 2021-03-05 at 12.55.27 PM.png Screen Shot 2021-03-05 at 12.55.50 PM.png Screen Shot 2021-03-05 at 1.01.14 PM.png
                      Screen Shot 2021-03-05 at 1.03.05 PM.png

                      My Gateway code:

                      
                      // Enable debug prints to serial monitor
                      #define MY_DEBUG
                      
                      
                      // Enables and select radio type (if attached)
                      //#define MY_RADIO_RF24
                      //#define MY_RADIO_RFM69
                      //#define MY_RADIO_RFM95
                      
                      #define MY_GATEWAY_MQTT_CLIENT
                      #define MY_GATEWAY_ESP8266
                      
                      #define MY_BAUD_RATE 9600
                      
                      #define MY_MQTT_CLIENT_ID "MYSGW01"
                      
                      // Set this node's subscribe and publish topic prefix
                      #define MY_MQTT_PUBLISH_TOPIC_PREFIX "tele/mysgw01-out"
                      #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX  "cmnd/mysgw01-in"
                      
                      // Set MQTT client id
                      
                      
                      // Enable these if your MQTT broker requires username/password
                      //#define MY_MQTT_USER "username"
                      //#define MY_MQTT_PASSWORD "password"
                      
                      // Set WIFI SSID and password
                      #define MY_WIFI_SSID "--------"
                      #define MY_WIFI_PASSWORD "*********"
                      
                      // Set the hostname for the WiFi Client. This is the hostname
                      // passed to the DHCP server if not static.
                      #define MY_HOSTNAME MY_MQTT_CLIENT_ID 
                      
                      // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
                      //#define MY_IP_ADDRESS 192,168,178,87
                      
                      // If using static ip you can define Gateway and Subnet address as well
                      //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1
                      //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
                      
                      // MQTT broker ip address.
                      #define MY_CONTROLLER_IP_ADDRESS 192, 168, 1, 62
                      
                      //MQTT broker if using URL instead of ip address.
                      // #define MY_CONTROLLER_URL_ADDRESS "test.mosquitto.org"
                      
                      // The MQTT broker port to to open
                      #define MY_PORT 1883
                      
                      // Enable inclusion mode
                      //#define MY_INCLUSION_MODE_FEATURE
                      // Enable Inclusion mode button on gateway
                      //#define MY_INCLUSION_BUTTON_FEATURE
                      // Set inclusion mode duration (in seconds)
                      //#define MY_INCLUSION_MODE_DURATION 60
                      // Digital pin used for inclusion mode button
                      //#define MY_INCLUSION_MODE_BUTTON_PIN D1
                      
                      // Set blinking period
                      //#define MY_DEFAULT_LED_BLINK_PERIOD 300
                      
                      // Flash leds on rx/tx/err
                      //#define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
                      //#define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
                      //#define MY_DEFAULT_TX_LED_PIN  2  // the PCB, on board LED
                      #include <ArduinoOTA.h>
                      #include <MySensors.h>
                      
                      void setup()
                      {
                      
                        pinMode(LED_BUILTIN, OUTPUT);
                      	// Setup locally attached sensors
                       ArduinoOTA.setHostname(MY_HOSTNAME);
                        ArduinoOTA.onStart([]() {
                          Serial.println("ArduinoOTA start");
                        });
                        ArduinoOTA.onEnd([]() {
                          Serial.println("\nArduinoOTA end");
                        });
                        ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
                          Serial.printf("OTA Progress: %u%%\r", (progress / (total / 100)));
                        });
                        ArduinoOTA.onError([](ota_error_t error) {
                          Serial.printf("Error[%u]: ", error);
                          if (error == OTA_AUTH_ERROR) {
                            Serial.println("Auth Failed");
                          } else if (error == OTA_BEGIN_ERROR) {
                            Serial.println("Begin Failed");
                          } else if (error == OTA_CONNECT_ERROR) {
                            Serial.println("Connect Failed");
                          } else if (error == OTA_RECEIVE_ERROR) {
                            Serial.println("Receive Failed");
                          } else if (error == OTA_END_ERROR) {
                            Serial.println("End Failed");
                          }
                        });
                        ArduinoOTA.begin();
                      }
                      
                      void presentation()
                      {
                        
                      	// Present locally attached sensors here
                        sendSketchInfo("MYSGW01-TEST Gateway","1.0");
                        present(0, S_BINARY);
                      }
                      
                      void loop()
                      {
                      	// Send locally attached sensors data here
                         ArduinoOTA.handle();
                      }
                      
                      void receive(const MyMessage &message)
                      {
                          // We only expect one type of message from controller. But we better check anyway.
                          if (message.type==V_STATUS) {
                              // Change relay state
                              digitalWrite(LED_BUILTIN, message.getBool() ? LOW:HIGH);
                              // Store state in eeprom
                              saveState(message.sensor, message.getBool());
                              // Write some debug info
                              Serial.print("Incoming change for sensor:");
                              Serial.print(message.sensor);
                              Serial.print(", New status: ");
                              Serial.println(message.getBool());
                          }
                      }
                      
                      H 1 Reply Last reply
                      0
                      • N ncollins

                        @haloway13 Here are all of my settings in my sandbox environment.

                        A couple things to note, NO MQTT BINDING INSTALLED, no special MQTT thing configured, my mqtt install is not password protected.

                        Screen Shot 2021-03-05 at 12.49.22 PM.png Screen Shot 2021-03-05 at 12.53.23 PM.png Screen Shot 2021-03-05 at 12.54.34 PM.png Screen Shot 2021-03-05 at 12.55.27 PM.png Screen Shot 2021-03-05 at 12.55.50 PM.png Screen Shot 2021-03-05 at 1.01.14 PM.png
                        Screen Shot 2021-03-05 at 1.03.05 PM.png

                        My Gateway code:

                        
                        // Enable debug prints to serial monitor
                        #define MY_DEBUG
                        
                        
                        // Enables and select radio type (if attached)
                        //#define MY_RADIO_RF24
                        //#define MY_RADIO_RFM69
                        //#define MY_RADIO_RFM95
                        
                        #define MY_GATEWAY_MQTT_CLIENT
                        #define MY_GATEWAY_ESP8266
                        
                        #define MY_BAUD_RATE 9600
                        
                        #define MY_MQTT_CLIENT_ID "MYSGW01"
                        
                        // Set this node's subscribe and publish topic prefix
                        #define MY_MQTT_PUBLISH_TOPIC_PREFIX "tele/mysgw01-out"
                        #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX  "cmnd/mysgw01-in"
                        
                        // Set MQTT client id
                        
                        
                        // Enable these if your MQTT broker requires username/password
                        //#define MY_MQTT_USER "username"
                        //#define MY_MQTT_PASSWORD "password"
                        
                        // Set WIFI SSID and password
                        #define MY_WIFI_SSID "--------"
                        #define MY_WIFI_PASSWORD "*********"
                        
                        // Set the hostname for the WiFi Client. This is the hostname
                        // passed to the DHCP server if not static.
                        #define MY_HOSTNAME MY_MQTT_CLIENT_ID 
                        
                        // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
                        //#define MY_IP_ADDRESS 192,168,178,87
                        
                        // If using static ip you can define Gateway and Subnet address as well
                        //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1
                        //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
                        
                        // MQTT broker ip address.
                        #define MY_CONTROLLER_IP_ADDRESS 192, 168, 1, 62
                        
                        //MQTT broker if using URL instead of ip address.
                        // #define MY_CONTROLLER_URL_ADDRESS "test.mosquitto.org"
                        
                        // The MQTT broker port to to open
                        #define MY_PORT 1883
                        
                        // Enable inclusion mode
                        //#define MY_INCLUSION_MODE_FEATURE
                        // Enable Inclusion mode button on gateway
                        //#define MY_INCLUSION_BUTTON_FEATURE
                        // Set inclusion mode duration (in seconds)
                        //#define MY_INCLUSION_MODE_DURATION 60
                        // Digital pin used for inclusion mode button
                        //#define MY_INCLUSION_MODE_BUTTON_PIN D1
                        
                        // Set blinking period
                        //#define MY_DEFAULT_LED_BLINK_PERIOD 300
                        
                        // Flash leds on rx/tx/err
                        //#define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
                        //#define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
                        //#define MY_DEFAULT_TX_LED_PIN  2  // the PCB, on board LED
                        #include <ArduinoOTA.h>
                        #include <MySensors.h>
                        
                        void setup()
                        {
                        
                          pinMode(LED_BUILTIN, OUTPUT);
                        	// Setup locally attached sensors
                         ArduinoOTA.setHostname(MY_HOSTNAME);
                          ArduinoOTA.onStart([]() {
                            Serial.println("ArduinoOTA start");
                          });
                          ArduinoOTA.onEnd([]() {
                            Serial.println("\nArduinoOTA end");
                          });
                          ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
                            Serial.printf("OTA Progress: %u%%\r", (progress / (total / 100)));
                          });
                          ArduinoOTA.onError([](ota_error_t error) {
                            Serial.printf("Error[%u]: ", error);
                            if (error == OTA_AUTH_ERROR) {
                              Serial.println("Auth Failed");
                            } else if (error == OTA_BEGIN_ERROR) {
                              Serial.println("Begin Failed");
                            } else if (error == OTA_CONNECT_ERROR) {
                              Serial.println("Connect Failed");
                            } else if (error == OTA_RECEIVE_ERROR) {
                              Serial.println("Receive Failed");
                            } else if (error == OTA_END_ERROR) {
                              Serial.println("End Failed");
                            }
                          });
                          ArduinoOTA.begin();
                        }
                        
                        void presentation()
                        {
                          
                        	// Present locally attached sensors here
                          sendSketchInfo("MYSGW01-TEST Gateway","1.0");
                          present(0, S_BINARY);
                        }
                        
                        void loop()
                        {
                        	// Send locally attached sensors data here
                           ArduinoOTA.handle();
                        }
                        
                        void receive(const MyMessage &message)
                        {
                            // We only expect one type of message from controller. But we better check anyway.
                            if (message.type==V_STATUS) {
                                // Change relay state
                                digitalWrite(LED_BUILTIN, message.getBool() ? LOW:HIGH);
                                // Store state in eeprom
                                saveState(message.sensor, message.getBool());
                                // Write some debug info
                                Serial.print("Incoming change for sensor:");
                                Serial.print(message.sensor);
                                Serial.print(", New status: ");
                                Serial.println(message.getBool());
                            }
                        }
                        
                        H Offline
                        H Offline
                        haloway13
                        wrote on last edited by haloway13
                        #65

                        @ncollins

                        Thank you so much. This has gotten me so much closer to actually getting the test temp and humidity arduino thing working.

                        I am seeing this output from the mysensors gateway:

                        Mar 05 22:55:07 DEBUG GWT:RMQ:OK
                        Mar 05 22:55:07 DEBUG GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT
                        Mar 05 22:55:07 DEBUG TSM:READY:NWD REQ
                        Mar 05 22:55:07 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
                        Mar 05 22:55:07 DEBUG TSF:MSG:READ,1-1-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
                        Mar 05 22:55:07 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/255/3/0/21,MSG SENT
                        Mar 05 22:55:41 DEBUG TSF:MSG:READ,1-1-0,s=1,c=1,t=1,pt=7,l=5,sg=0:34.0
                        Mar 05 22:55:41 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/1/1/0/1,MSG SENT
                        Mar 05 22:55:51 DEBUG TSF:MSG:READ,1-1-0,s=0,c=1,t=0,pt=7,l=5,sg=0:19.8
                        Mar 05 22:55:51 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/0/1/0/0,MSG SENT
                        Mar 05 22:57:01 DEBUG TSF:MSG:READ,1-1-0,s=1,c=1,t=1,pt=7,l=5,sg=0:34.1
                        Mar 05 22:57:01 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/1/1/0/1,MSG SENT
                        Mar 05 22:57:11 DEBUG TSF:MSG:READ,1-1-0,s=1,c=1,t=1,pt=7,l=5,sg=0:34.0
                        Mar 05 22:57:11 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/1/1/0/1,MSG SENT
                        Mar 05 22:57:41 DEBUG TSF:MSG:READ,1-1-0,s=0,c=1,t=0,pt=7,l=5,sg=0:19.8
                        Mar 05 22:57:41 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/0/1/0/0,MSG SENT
                        Mar 05 22:59:01 DEBUG TSF:MSG:READ,1-1-0,s=1,c=1,t=1,pt=7,l=5,sg=0:34.0
                        Mar 05 22:59:01 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/1/1/0/1,MSG SENT
                        Mar 05 22:59:21 DEBUG TSF:MSG:READ,1-1-0,s=0,c=1,t=0,pt=7,l=5,sg=0:19.9
                        Mar 05 22:59:21 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/0/1/0/0,MSG SENT
                        Mar 05 22:59:41 DEBUG TSF:MSG:READ,1-1-0,s=0,c=1,t=0,pt=7,l=5,sg=0:19.8
                        Mar 05 22:59:41 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/0/1/0/0,MSG SENT
                        Mar 05 23:00:51 DEBUG TSF:MSG:READ,1-1-0,s=1,c=1,t=1,pt=7,l=5,sg=0:34.0
                        Mar 05 23:00:51 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/1/1/0/1,MSG SENT
                        Mar 05 23:01:11 DEBUG TSF:MSG:READ,1-1-0,s=0,c=1,t=0,pt=7,l=5,sg=0:19.7
                        Mar 05 23:01:11 DEBUG GWT:TPS:TOPIC=mygateway1-out/1/0/1/0/0,MSG SENT
                        Mar 05 23:01:21 DEBUG TSF:MSG:READ,1-1-0,s=0,c=1,t=0,pt=7,l=5,sg=0:19.8
                        
                        

                        My Sensors Gateway configuration: not letting me upload the image/screenshot, getting an error.
                        ![0_1615011411135_SS_2021-03-05_23-09-13.jpg](Uploading 100%)

                        Humidity Sensor thing: same problem here.
                        ![0_1615011449159_SS_2021-03-05_23-12-48.jpg](Uploading 100%)

                        I will try to edit this in the morning

                        The short of it is that I am not seeing the values I am expecting from the sensor. I am leaning towards just not identifying the id/node for each of the things/channel.

                        1 Reply Last reply
                        0
                        • H Offline
                          H Offline
                          haloway13
                          wrote on last edited by haloway13
                          #66

                          Here is the humidity sensor thing page:
                          SS_2021-03-05_23-12-48.jpg
                          Here is the temperature:
                          SS_2021-03-07_06-32-21.png

                          Do I have the node and child id right? What should I check?

                          Or maybe I need to do a follow on configuration to see the values?

                          Thank you!

                          N 1 Reply Last reply
                          0
                          • H haloway13

                            Here is the humidity sensor thing page:
                            SS_2021-03-05_23-12-48.jpg
                            Here is the temperature:
                            SS_2021-03-07_06-32-21.png

                            Do I have the node and child id right? What should I check?

                            Or maybe I need to do a follow on configuration to see the values?

                            Thank you!

                            N Offline
                            N Offline
                            ncollins
                            wrote on last edited by
                            #67

                            @haloway13 progress!

                            Check the channels tab of your temperature sensor thing:
                            Screen Shot 2021-03-07 at 8.13.28 AM.png

                            "Add link to item" then follow the directions to create a new item
                            Screen Shot 2021-03-07 at 8.15.31 AM.png

                            H 1 Reply Last reply
                            0
                            • N ncollins

                              @haloway13 progress!

                              Check the channels tab of your temperature sensor thing:
                              Screen Shot 2021-03-07 at 8.13.28 AM.png

                              "Add link to item" then follow the directions to create a new item
                              Screen Shot 2021-03-07 at 8.15.31 AM.png

                              H Offline
                              H Offline
                              haloway13
                              wrote on last edited by
                              #68

                              @ncollins

                              I tried just as you describe. However I think something is failing before this should be expected to succeed.

                              Thoughts?

                              openhab> log:tail                                                                                                                                                                                                       
                              22:37:44.426 [DEBUG] [s.discovery.MySensorsDiscoveryService] - Starting MySensors discovery scan
                              22:37:44.428 [DEBUG] [protocol.mqtt.MySensorsMqttConnection] - Adding consumer for topic: mygateway1-out/+/+/+/+/+
                              22:37:44.434 [WARN ] [protocol.mqtt.MySensorsMqttConnection] - Skipping I_VERSION connection test, not recommended...
                              22:37:44.438 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-mqtt:3976df7e54' changed from INITIALIZING to ONLINE
                              22:37:44.446 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: []
                              22:37:44.443 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
                              22:37:44.451 [INFO ] [protocol.mqtt.MySensorsMqttConnection] - Successfully connected to MySensors Bridge.
                              22:37:44.454 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
                              22:37:44.460 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=1, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                              22:37:44.464 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                              22:37:44.465 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=0, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                              22:37:44.467 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-1 not registered yet, registering...
                              22:37:44.469 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Merging child map: {1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]} with: {0=MySensorsChild [childId=0, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_ID=MySensorsVariableVId [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_TEMP=MySensorsVariableVTemp [value=null]}]}
                              22:37:44.472 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from INITIALIZING to ONLINE
                              22:37:44.474 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-0 not registered yet, registering...
                              22:37:44.479 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from INITIALIZING to ONLINE
                              22:41:47.918 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from ONLINE to UNINITIALIZED
                              22:41:47.936 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
                              22:41:49.778 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED (DISABLED) to INITIALIZING
                              22:41:49.786 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=1, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                              22:41:49.788 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                              22:41:49.791 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-1 not registered yet, registering...
                              22:41:49.795 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from INITIALIZING to ONLINE
                              22:41:51.075 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from ONLINE to UNINITIALIZED
                              22:41:51.090 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
                              22:41:51.806 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED (DISABLED) to INITIALIZING
                              22:41:51.814 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=1, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                              22:41:51.817 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                              22:41:51.819 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-1 not registered yet, registering...
                              22:41:51.825 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from INITIALIZING to ONLINE
                              22:42:06.748 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from ONLINE to UNINITIALIZED
                              22:42:06.762 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
                              22:42:07.739 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from UNINITIALIZED (DISABLED) to INITIALIZING
                              22:42:07.749 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=0, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                              22:42:07.751 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={0=MySensorsChild [childId=0, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_ID=MySensorsVariableVId [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_TEMP=MySensorsVariableVTemp [value=null]}]}]
                              22:42:07.753 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-0 not registered yet, registering...
                              22:42:07.756 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from INITIALIZING to ONLINE
                              22:51:49.195 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuation update for thing 1-1: {nodeUpdateTimeout=-1, smartSleep=false, requestHeartbeatResponse=false, childUpdateTimeout=-1, childId=18, nodeId=1, revertState=true, requestAck=false}
                              22:51:49.214 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=18, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                              22:51:49.217 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={18=MySensorsChild [childId=18, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                              22:51:49.218 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-18 not registered yet, registering...
                              23:01:04.984 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: Temperature
                              23:01:08.762 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: TemperatureSensor_Temperature
                              23:04:05.921 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: TemperatureSensor_Variable1
                              23:05:12.626 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuation update for thing 1-18: {nodeUpdateTimeout=-1, smartSleep=false, requestHeartbeatResponse=false, childUpdateTimeout=-1, childId=0, nodeId=1, revertState=true, requestAck=false}
                              23:05:12.636 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=0, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                              23:05:12.638 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={0=MySensorsChild [childId=0, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                              23:05:12.643 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-0 not registered yet, registering...
                              22:35:59.095 [WARN ] [orsAbstractConnection$MySensorsWriter] - Message returned from queue is null
                              22:37:44.434 [WARN ] [orsAbstractConnection$MySensorsWriter] - Message returned from queue is null
                              
                              
                              N 1 Reply Last reply
                              0
                              • H haloway13

                                @ncollins

                                I tried just as you describe. However I think something is failing before this should be expected to succeed.

                                Thoughts?

                                openhab> log:tail                                                                                                                                                                                                       
                                22:37:44.426 [DEBUG] [s.discovery.MySensorsDiscoveryService] - Starting MySensors discovery scan
                                22:37:44.428 [DEBUG] [protocol.mqtt.MySensorsMqttConnection] - Adding consumer for topic: mygateway1-out/+/+/+/+/+
                                22:37:44.434 [WARN ] [protocol.mqtt.MySensorsMqttConnection] - Skipping I_VERSION connection test, not recommended...
                                22:37:44.438 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-mqtt:3976df7e54' changed from INITIALIZING to ONLINE
                                22:37:44.446 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: []
                                22:37:44.443 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
                                22:37:44.451 [INFO ] [protocol.mqtt.MySensorsMqttConnection] - Successfully connected to MySensors Bridge.
                                22:37:44.454 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
                                22:37:44.460 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=1, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                                22:37:44.464 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                                22:37:44.465 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=0, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                                22:37:44.467 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-1 not registered yet, registering...
                                22:37:44.469 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Merging child map: {1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]} with: {0=MySensorsChild [childId=0, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_ID=MySensorsVariableVId [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_TEMP=MySensorsVariableVTemp [value=null]}]}
                                22:37:44.472 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from INITIALIZING to ONLINE
                                22:37:44.474 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-0 not registered yet, registering...
                                22:37:44.479 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from INITIALIZING to ONLINE
                                22:41:47.918 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from ONLINE to UNINITIALIZED
                                22:41:47.936 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
                                22:41:49.778 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED (DISABLED) to INITIALIZING
                                22:41:49.786 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=1, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                                22:41:49.788 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                                22:41:49.791 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-1 not registered yet, registering...
                                22:41:49.795 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from INITIALIZING to ONLINE
                                22:41:51.075 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from ONLINE to UNINITIALIZED
                                22:41:51.090 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
                                22:41:51.806 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from UNINITIALIZED (DISABLED) to INITIALIZING
                                22:41:51.814 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=1, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                                22:41:51.817 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={1=MySensorsChild [childId=1, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                                22:41:51.819 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-1 not registered yet, registering...
                                22:41:51.825 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:humidity:3976df7e54:529c716d78' changed from INITIALIZING to ONLINE
                                22:42:06.748 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from ONLINE to UNINITIALIZED
                                22:42:06.762 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
                                22:42:07.739 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from UNINITIALIZED (DISABLED) to INITIALIZING
                                22:42:07.749 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=0, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                                22:42:07.751 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={0=MySensorsChild [childId=0, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_ID=MySensorsVariableVId [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_TEMP=MySensorsVariableVTemp [value=null]}]}]
                                22:42:07.753 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-0 not registered yet, registering...
                                22:42:07.756 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:temperature:7c6c709b27' changed from INITIALIZING to ONLINE
                                22:51:49.195 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuation update for thing 1-1: {nodeUpdateTimeout=-1, smartSleep=false, requestHeartbeatResponse=false, childUpdateTimeout=-1, childId=18, nodeId=1, revertState=true, requestAck=false}
                                22:51:49.214 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=18, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                                22:51:49.217 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={18=MySensorsChild [childId=18, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                                22:51:49.218 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-18 not registered yet, registering...
                                23:01:04.984 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: Temperature
                                23:01:08.762 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: TemperatureSensor_Temperature
                                23:04:05.921 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: TemperatureSensor_Variable1
                                23:05:12.626 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuation update for thing 1-18: {nodeUpdateTimeout=-1, smartSleep=false, requestHeartbeatResponse=false, childUpdateTimeout=-1, childId=0, nodeId=1, revertState=true, requestAck=false}
                                23:05:12.636 [DEBUG] [sensors.handler.MySensorsThingHandler] - Configuration: MySensorsSensorConfiguration{nodeId=1, childId=0, requestAck=false, revertState=true, smartSleep=false, childUpdateTimeout=-1, nodeUpdateTimeout=-1, requestHeartbeatResponse=false, usePureWhiteLightInRGBW=false}
                                23:05:12.638 [DEBUG] [ors.internal.gateway.MySensorsGateway] - Adding device MySensorsNode [nodeId=1, childNumber=1, chidldList={0=MySensorsChild [childId=0, nodeValue={V_VAR5=MySensorsVariableVVar5 [value=null], V_VAR1=MySensorsVariableVVar1 [value=null], V_VAR2=MySensorsVariableVVar2 [value=null], V_VAR4=MySensorsVariableVVar4 [value=null], V_VAR3=MySensorsVariableVVar3 [value=null], V_HUM=MySensorsVariableVHum [value=null]}]}]
                                23:05:12.643 [DEBUG] [sensors.handler.MySensorsThingHandler] - Event listener for node 1-0 not registered yet, registering...
                                22:35:59.095 [WARN ] [orsAbstractConnection$MySensorsWriter] - Message returned from queue is null
                                22:37:44.434 [WARN ] [orsAbstractConnection$MySensorsWriter] - Message returned from queue is null
                                
                                
                                N Offline
                                N Offline
                                ncollins
                                wrote on last edited by
                                #69

                                @haloway13 can you send a screenshot of your item?Screen Shot 2021-03-08 at 9.09.23 AM.png

                                H 1 Reply Last reply
                                0
                                • N ncollins

                                  @haloway13 can you send a screenshot of your item?Screen Shot 2021-03-08 at 9.09.23 AM.png

                                  H Offline
                                  H Offline
                                  haloway13
                                  wrote on last edited by
                                  #70

                                  @ncollins
                                  SS_2021-03-08_20-05-19.png

                                  N 1 Reply Last reply
                                  0
                                  • H haloway13

                                    @ncollins
                                    SS_2021-03-08_20-05-19.png

                                    N Offline
                                    N Offline
                                    ncollins
                                    wrote on last edited by
                                    #71

                                    @haloway13 Can you post your sketch?

                                    Your humidity sensor and your temperature sensor Thing configurations both point to Child Id = 0. I think your humidity sensor should be Child Id = 1.

                                    H 1 Reply Last reply
                                    0
                                    • N ncollins

                                      @haloway13 Can you post your sketch?

                                      Your humidity sensor and your temperature sensor Thing configurations both point to Child Id = 0. I think your humidity sensor should be Child Id = 1.

                                      H Offline
                                      H Offline
                                      haloway13
                                      wrote on last edited by haloway13
                                      #72

                                      @ncollins
                                      Fixed the child ID. Good catch. No change.

                                      Here is the sketch

                                      #include <DHT.h>
                                      
                                      #define MY_DEBUG 1
                                      #define MY_RADIO_NRF24
                                      #define MY_NODE_ID 1
                                      
                                      #define CHILD_ID_TEMP 0
                                      #define CHILD_ID_HUM 1
                                      #define DHT_DATA_PIN 3
                                      #define SENSOR_TEMP_OFFSET 0
                                      
                                      #include <MySensors.h>
                                      
                                      /**************************************************/
                                      /****************** CONSTANTS *********************/
                                      /**************************************************/
                                      
                                      static const uint64_t UPDATE_INTERVAL = 10000;
                                      static const uint8_t FORCE_UPDATE_N_READS = 10;
                                      
                                      /**************************************************/
                                      /****************** VARIABLES *********************/
                                      /**************************************************/
                                      float lastTemp;
                                      float lastHum;
                                      float temperature;
                                      float humidity;
                                      uint8_t nNoUpdatesTemp;
                                      uint8_t nNoUpdatesHum;
                                      
                                      /**************************************************/
                                      /****************** MESSAGES **********************/
                                      /**************************************************/
                                      
                                      MyMessage msgHum(CHILD_ID_HUM, V_HUM);
                                      MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
                                      
                                      DHT dht;
                                      
                                      void presentation() 
                                      { 
                                      present(CHILD_ID_HUM, S_HUM);
                                      present(CHILD_ID_TEMP, S_TEMP);
                                      }
                                      
                                      
                                      void setup()
                                      {
                                      delay(2000); //Wait 2 seconds before starting sequence
                                      
                                      if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) 
                                      {
                                      Serial.println("Warning: UPDATE_INTERVAL is smaller than supported by the sensor!");
                                      }
                                      
                                      sleep(dht.getMinimumSamplingPeriod()); 
                                      dht.setup(DHT_DATA_PIN);
                                      }
                                      
                                      void loop() 
                                      { 
                                      sendTemperatureHumiditySensor(); 
                                      wait(UPDATE_INTERVAL);
                                      }
                                      
                                      /**************************************************/
                                      /**************** AUX. FUNCTIONS ******************/
                                      /**************************************************/
                                      
                                      void sendTemperatureHumiditySensor()
                                      {
                                      dht.readSensor(true);
                                      temperature = dht.getTemperature();
                                      humidity = dht.getHumidity();
                                      
                                      if (isnan(temperature)) 
                                      {
                                      Serial.println("Failed reading temperature from DHT!");
                                      } else if (temperature != lastTemp || nNoUpdatesTemp == FORCE_UPDATE_N_READS) 
                                      {
                                      lastTemp = temperature;
                                      nNoUpdatesTemp = 0;
                                      temperature += SENSOR_TEMP_OFFSET;
                                      send(msgTemp.set(temperature, 1));
                                      
                                      #ifdef MY_DEBUG
                                      Serial.print("T: ");
                                      Serial.println(temperature);
                                      #endif
                                      } else 
                                      {
                                      nNoUpdatesTemp++;
                                      }
                                      
                                      if (isnan(humidity)) 
                                      {
                                      Serial.println("Failed reading humidity from DHT");
                                      } else if (humidity != lastHum || nNoUpdatesHum == FORCE_UPDATE_N_READS)
                                      {
                                      lastHum = humidity;
                                      nNoUpdatesHum = 0;
                                      send(msgHum.set(humidity, 1));
                                      
                                      #ifdef MY_DEBUG
                                      Serial.print("H: ");
                                      Serial.println(humidity);
                                      #endif
                                      } else 
                                      {
                                      nNoUpdatesHum++;
                                      } 
                                      }
                                      

                                      I am able to see the debug output from the sensors

                                      N 1 Reply Last reply
                                      0
                                      • H haloway13

                                        @ncollins
                                        Fixed the child ID. Good catch. No change.

                                        Here is the sketch

                                        #include <DHT.h>
                                        
                                        #define MY_DEBUG 1
                                        #define MY_RADIO_NRF24
                                        #define MY_NODE_ID 1
                                        
                                        #define CHILD_ID_TEMP 0
                                        #define CHILD_ID_HUM 1
                                        #define DHT_DATA_PIN 3
                                        #define SENSOR_TEMP_OFFSET 0
                                        
                                        #include <MySensors.h>
                                        
                                        /**************************************************/
                                        /****************** CONSTANTS *********************/
                                        /**************************************************/
                                        
                                        static const uint64_t UPDATE_INTERVAL = 10000;
                                        static const uint8_t FORCE_UPDATE_N_READS = 10;
                                        
                                        /**************************************************/
                                        /****************** VARIABLES *********************/
                                        /**************************************************/
                                        float lastTemp;
                                        float lastHum;
                                        float temperature;
                                        float humidity;
                                        uint8_t nNoUpdatesTemp;
                                        uint8_t nNoUpdatesHum;
                                        
                                        /**************************************************/
                                        /****************** MESSAGES **********************/
                                        /**************************************************/
                                        
                                        MyMessage msgHum(CHILD_ID_HUM, V_HUM);
                                        MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
                                        
                                        DHT dht;
                                        
                                        void presentation() 
                                        { 
                                        present(CHILD_ID_HUM, S_HUM);
                                        present(CHILD_ID_TEMP, S_TEMP);
                                        }
                                        
                                        
                                        void setup()
                                        {
                                        delay(2000); //Wait 2 seconds before starting sequence
                                        
                                        if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) 
                                        {
                                        Serial.println("Warning: UPDATE_INTERVAL is smaller than supported by the sensor!");
                                        }
                                        
                                        sleep(dht.getMinimumSamplingPeriod()); 
                                        dht.setup(DHT_DATA_PIN);
                                        }
                                        
                                        void loop() 
                                        { 
                                        sendTemperatureHumiditySensor(); 
                                        wait(UPDATE_INTERVAL);
                                        }
                                        
                                        /**************************************************/
                                        /**************** AUX. FUNCTIONS ******************/
                                        /**************************************************/
                                        
                                        void sendTemperatureHumiditySensor()
                                        {
                                        dht.readSensor(true);
                                        temperature = dht.getTemperature();
                                        humidity = dht.getHumidity();
                                        
                                        if (isnan(temperature)) 
                                        {
                                        Serial.println("Failed reading temperature from DHT!");
                                        } else if (temperature != lastTemp || nNoUpdatesTemp == FORCE_UPDATE_N_READS) 
                                        {
                                        lastTemp = temperature;
                                        nNoUpdatesTemp = 0;
                                        temperature += SENSOR_TEMP_OFFSET;
                                        send(msgTemp.set(temperature, 1));
                                        
                                        #ifdef MY_DEBUG
                                        Serial.print("T: ");
                                        Serial.println(temperature);
                                        #endif
                                        } else 
                                        {
                                        nNoUpdatesTemp++;
                                        }
                                        
                                        if (isnan(humidity)) 
                                        {
                                        Serial.println("Failed reading humidity from DHT");
                                        } else if (humidity != lastHum || nNoUpdatesHum == FORCE_UPDATE_N_READS)
                                        {
                                        lastHum = humidity;
                                        nNoUpdatesHum = 0;
                                        send(msgHum.set(humidity, 1));
                                        
                                        #ifdef MY_DEBUG
                                        Serial.print("H: ");
                                        Serial.println(humidity);
                                        #endif
                                        } else 
                                        {
                                        nNoUpdatesHum++;
                                        } 
                                        }
                                        

                                        I am able to see the debug output from the sensors

                                        N Offline
                                        N Offline
                                        ncollins
                                        wrote on last edited by
                                        #73

                                        @haloway13 I mean, last suggestion is restarting your openhab instance. If that doesn't work, please post your openhab log.

                                        H 2 Replies Last reply
                                        0
                                        • N ncollins

                                          @haloway13 I mean, last suggestion is restarting your openhab instance. If that doesn't work, please post your openhab log.

                                          H Offline
                                          H Offline
                                          haloway13
                                          wrote on last edited by
                                          #74

                                          @ncollins
                                          My sdcard corrupted, had to restart from scratch. Hopefully, I can get back to the same point tonight.

                                          Thanks!

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          21

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular