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. Domoticz
  4. devices not in devices list

devices not in devices list

Scheduled Pinned Locked Moved Domoticz
18 Posts 7 Posters 5.5k Views 7 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.
  • dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by
    #7

    Don't mean to hijack this thread, but I am thinking that my problem is similar which is why I am posting here as opposed to a new topic.

    So I have my new garage door sensor device and I was able to control it through the serial monitor. My problem now is with Domoticz. If I go to setup > hardware, I see my gateway.
    alt text

    If I then click the blue [Setup] button I see this:
    alt text

    From there if I click on the garage door node, it shows me the children of that node
    alt text

    But when I go to setup > Devices, the only thing that I see is the gateway.
    alt text

    I do not see the S_LIGHT/S_BINARY garage door device, nor the S_ARDUINO_NODE device. As you can see, the garage door device has been seen by Domoticz, but still nothing.

    Is there something I am missing?

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    AWIA 1 Reply Last reply
    0
    • dbemowskD dbemowsk

      Don't mean to hijack this thread, but I am thinking that my problem is similar which is why I am posting here as opposed to a new topic.

      So I have my new garage door sensor device and I was able to control it through the serial monitor. My problem now is with Domoticz. If I go to setup > hardware, I see my gateway.
      alt text

      If I then click the blue [Setup] button I see this:
      alt text

      From there if I click on the garage door node, it shows me the children of that node
      alt text

      But when I go to setup > Devices, the only thing that I see is the gateway.
      alt text

      I do not see the S_LIGHT/S_BINARY garage door device, nor the S_ARDUINO_NODE device. As you can see, the garage door device has been seen by Domoticz, but still nothing.

      Is there something I am missing?

      AWIA Offline
      AWIA Offline
      AWI
      Hero Member
      wrote on last edited by AWI
      #8

      @dbemowsk I don't see any issues. The "S_ARDUINO_NODE" entry will not show as a device. The device you see is your switch (S_LIGHT) as presented.

      1 Reply Last reply
      0
      • dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #9

        The problem is that when I go to my devices, I can click on the arrow icon on the right for my gateway which adds the device under the Switches tab giving me control of the device.
        alt text

        I have no way of adding the child node of the garage door to allow me to toggle it open and closed. Isn't the S_LIGHT/S_BINARY child of the garage door supposed to show up under devices?

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        AWIA DickD 2 Replies Last reply
        0
        • dbemowskD dbemowsk

          The problem is that when I go to my devices, I can click on the arrow icon on the right for my gateway which adds the device under the Switches tab giving me control of the device.
          alt text

          I have no way of adding the child node of the garage door to allow me to toggle it open and closed. Isn't the S_LIGHT/S_BINARY child of the garage door supposed to show up under devices?

          AWIA Offline
          AWIA Offline
          AWI
          Hero Member
          wrote on last edited by
          #10

          @dbemowsk I was expecting the device you show "MySensors Gateway" is the garagedoor. Or do you have other S_LIGHT/S_BINARY devices in your system?

          1 Reply Last reply
          0
          • dbemowskD dbemowsk

            The problem is that when I go to my devices, I can click on the arrow icon on the right for my gateway which adds the device under the Switches tab giving me control of the device.
            alt text

            I have no way of adding the child node of the garage door to allow me to toggle it open and closed. Isn't the S_LIGHT/S_BINARY child of the garage door supposed to show up under devices?

            DickD Offline
            DickD Offline
            Dick
            wrote on last edited by
            #11

            After the tip :+1: mfalkvidd""gave in this post about the GW msg, I checked my code and that solved the problem. I pt my working code in this post so you can compare the 2 versions and the changes. perhaps this could be solution for your proble.

            #include <SPI.h>
            #include <MySensor.h>
            #include <DHT.h>
            
            #define CHILD_ID_HUM1 0
            #define CHILD_ID_HUM2 1
            #define CHILD_ID_TEMP1 3
            #define CHILD_ID_TEMP2 4
            
            #define CHILD_ID_LIGHT 0
            #define LIGHT_SENSOR_ANALOG_PIN A0
            
            
            unsigned long SLEEP_TIME = 3000; // Sleep time between reads (in milliseconds)
            
            MySensor gw;
            DHT*  dht[2];
            byte sensorPin[2] = {3, 4};
            float lastTemp[2] = {0.0, 0.0};
            float lastHum[2] = {0.0, 0.0};
            
            boolean metric = true;
            MyMessage msgHum(CHILD_ID_HUM1, V_HUM);
            MyMessage msgTemp(CHILD_ID_TEMP1, V_TEMP);
            
            MyMessage msgHum1(CHILD_ID_HUM2, V_HUM);
            MyMessage msgTemp1(CHILD_ID_TEMP2, V_TEMP);
            
            MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL);
            int lastLightLevel;
            
            
            void setup()
            {
              gw.begin();
              
              // Send the sketch version information to the gateway and Controller
              gw.sendSketchInfo("Light Sensor", "1.0");
            
             
              
            
            
              for (int i = 0; i < 2; i++)
              {
                dht[i] = new DHT;
                dht[i]->setup(sensorPin[i]);
              }
            
              gw.sendSketchInfo("Humidity", "1.0");
            
              gw.present(CHILD_ID_HUM1, S_HUM);
              gw.present(CHILD_ID_HUM2, S_HUM);
              gw.present(CHILD_ID_TEMP1, S_TEMP);
              gw.present(CHILD_ID_TEMP1, S_TEMP);
              gw.present(CHILD_ID_LIGHT, S_LIGHT_LEVEL);
            
              metric = gw.getConfig().isMetric;
            }
            
            void loop()
            {
              for (int i = 0; i < 2; i++)
              {
                delay(dht[i]->getMinimumSamplingPeriod());
                float temperature = dht[i]->getTemperature();
                if (isnan(temperature))
                {
                  Serial.print(F("Failed reading temperature from DHT"));
                  Serial.println(i);
                }
                else if (temperature != lastTemp[i])
                {
                  lastTemp[i] = temperature;
                  if (!metric)
                  {
                    temperature = dht[i]->toFahrenheit(temperature);
                  }
                  gw.send(msgTemp.set(temperature, i));
                  Serial.print(F("T"));
                  Serial.print(i);
                  Serial.print(F("= "));
                  Serial.println(temperature);
                }
                float humidity = dht[i]->getHumidity();
                if (isnan(humidity)) 
                {
                  Serial.print("Failed reading humidity from DHT");
                  Serial.println(i);
                } 
                else if (humidity != lastHum[i]) 
                {
                  lastHum[i] = humidity;
                  gw.send(msgHum.set(humidity, 1));
                  Serial.print(F("H"));
                  Serial.print(i);
                  Serial.print(F("= "));
                  Serial.println(humidity);
                }
                
              int lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; 
              Serial.println(lightLevel);
              if (lightLevel != lastLightLevel) {
                   gw.send(msg.set(lightLevel));
            
                  lastLightLevel = lightLevel;
                  Serial.print("L=");
                  
                  Serial.println(lightLevel);
            
                  
              }
            
              }
                
              
              gw.sleep(SLEEP_TIME); //sleep a bit
            }
            
            
            
            D 1 Reply Last reply
            0
            • dbemowskD Offline
              dbemowskD Offline
              dbemowsk
              wrote on last edited by
              #12

              @awi the gateway device is my serial gateway. If you look at the screenshots I posted, there is a device called My garage Door which is an S_LIGHT/S_BINARY device. That is the one that is not showing up.

              Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
              Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

              D AWIA 2 Replies Last reply
              0
              • dbemowskD dbemowsk

                @awi the gateway device is my serial gateway. If you look at the screenshots I posted, there is a device called My garage Door which is an S_LIGHT/S_BINARY device. That is the one that is not showing up.

                D Offline
                D Offline
                drock1985
                wrote on last edited by
                #13

                @dbemowsk

                Can you post your sketch please?

                My Projects
                2 Door Chime Sensor
                Washing Machine Monitor

                1 Reply Last reply
                0
                • dbemowskD dbemowsk

                  @awi the gateway device is my serial gateway. If you look at the screenshots I posted, there is a device called My garage Door which is an S_LIGHT/S_BINARY device. That is the one that is not showing up.

                  AWIA Offline
                  AWIA Offline
                  AWI
                  Hero Member
                  wrote on last edited by
                  #14

                  @dbemowsk Maybe I am mistaken but your gateway should have node id "0" assigned. The node which shows up in the devices list is "1". I assume you have no S_Light devices attached to your gateway (hard to do in v1. 5) so this one has to be the garage door switch with the wrong name. (or at least confusing). You can easily give it another name.

                  I would suggest you just try it and watch the serial monitor of the node...

                  dbemowskD 1 Reply Last reply
                  0
                  • dbemowskD Offline
                    dbemowskD Offline
                    dbemowsk
                    wrote on last edited by
                    #15

                    @drock1985 if you look under the hardware forum, I have a post there for my garage door that has the current sketch I am using posted there.

                    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                    1 Reply Last reply
                    0
                    • AWIA AWI

                      @dbemowsk Maybe I am mistaken but your gateway should have node id "0" assigned. The node which shows up in the devices list is "1". I assume you have no S_Light devices attached to your gateway (hard to do in v1. 5) so this one has to be the garage door switch with the wrong name. (or at least confusing). You can easily give it another name.

                      I would suggest you just try it and watch the serial monitor of the node...

                      dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by dbemowsk
                      #16

                      @AWI said:

                      Maybe I am mistaken but your gateway should have node id "0" assigned. The node which shows up in the devices list is "1".

                      If you look closer, the serial gateway is not node 1. If you look at this screenshot, it doesn't say that it is node ID 1, it shows idx or index 1 which is probably an ID for the database. I don't know what the unit number is, but that could be the node ID which is 0.
                      alt text

                      The reason I say that the idx or index number is not the node ID is for two reasons. First, if you look at the first image below, this screenshot shows it as idx 3, and second, if you look at the next screenshot, which is the device list, it shows the list of nodes and children, the MyGarageDoor node, which I named "Garage door" for Domoticz is actually listed as NodeID 1.
                      alt text

                      alt text

                      @AWI said:

                      I assume you have no S_Light devices attached to your gateway (hard to do in v1. 5) so this one has to be the garage door switch with the wrong name. (or at least confusing).

                      The "Garage door" node shows 2 children. The first child of the "Garage door" node is of type S_LIGHT/S_BINARY. I have the sketch name as MyGarageDoor, but I was not sure how to name the child device. When I saw the Name field under children in Domoticz, I thought that was somehting that I would do in Dompticz, but I guess not. Do I do that somewhere in my sketch for the garage door?

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                      AWIA 1 Reply Last reply
                      0
                      • dbemowskD dbemowsk

                        @AWI said:

                        Maybe I am mistaken but your gateway should have node id "0" assigned. The node which shows up in the devices list is "1".

                        If you look closer, the serial gateway is not node 1. If you look at this screenshot, it doesn't say that it is node ID 1, it shows idx or index 1 which is probably an ID for the database. I don't know what the unit number is, but that could be the node ID which is 0.
                        alt text

                        The reason I say that the idx or index number is not the node ID is for two reasons. First, if you look at the first image below, this screenshot shows it as idx 3, and second, if you look at the next screenshot, which is the device list, it shows the list of nodes and children, the MyGarageDoor node, which I named "Garage door" for Domoticz is actually listed as NodeID 1.
                        alt text

                        alt text

                        @AWI said:

                        I assume you have no S_Light devices attached to your gateway (hard to do in v1. 5) so this one has to be the garage door switch with the wrong name. (or at least confusing).

                        The "Garage door" node shows 2 children. The first child of the "Garage door" node is of type S_LIGHT/S_BINARY. I have the sketch name as MyGarageDoor, but I was not sure how to name the child device. When I saw the Name field under children in Domoticz, I thought that was somehting that I would do in Dompticz, but I guess not. Do I do that somewhere in my sketch for the garage door?

                        AWIA Offline
                        AWIA Offline
                        AWI
                        Hero Member
                        wrote on last edited by AWI
                        #17

                        @dbemowsk I can understand your confusion...
                        The idx value in the hardware listing is the hardware idx. The 000001 value in the Devices listing is the node index and therefore not your gateway... The Unit is the sensor number in your node (i.e. the S_LIGHT sensor == 0)
                        Don't ask me to explain all the obscurities of domoticz......but just try (=experiment) to use the "MySensors Gateway" as the switch for the garage door....

                        1 Reply Last reply
                        0
                        • DickD Dick

                          After the tip :+1: mfalkvidd""gave in this post about the GW msg, I checked my code and that solved the problem. I pt my working code in this post so you can compare the 2 versions and the changes. perhaps this could be solution for your proble.

                          #include <SPI.h>
                          #include <MySensor.h>
                          #include <DHT.h>
                          
                          #define CHILD_ID_HUM1 0
                          #define CHILD_ID_HUM2 1
                          #define CHILD_ID_TEMP1 3
                          #define CHILD_ID_TEMP2 4
                          
                          #define CHILD_ID_LIGHT 0
                          #define LIGHT_SENSOR_ANALOG_PIN A0
                          
                          
                          unsigned long SLEEP_TIME = 3000; // Sleep time between reads (in milliseconds)
                          
                          MySensor gw;
                          DHT*  dht[2];
                          byte sensorPin[2] = {3, 4};
                          float lastTemp[2] = {0.0, 0.0};
                          float lastHum[2] = {0.0, 0.0};
                          
                          boolean metric = true;
                          MyMessage msgHum(CHILD_ID_HUM1, V_HUM);
                          MyMessage msgTemp(CHILD_ID_TEMP1, V_TEMP);
                          
                          MyMessage msgHum1(CHILD_ID_HUM2, V_HUM);
                          MyMessage msgTemp1(CHILD_ID_TEMP2, V_TEMP);
                          
                          MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL);
                          int lastLightLevel;
                          
                          
                          void setup()
                          {
                            gw.begin();
                            
                            // Send the sketch version information to the gateway and Controller
                            gw.sendSketchInfo("Light Sensor", "1.0");
                          
                           
                            
                          
                          
                            for (int i = 0; i < 2; i++)
                            {
                              dht[i] = new DHT;
                              dht[i]->setup(sensorPin[i]);
                            }
                          
                            gw.sendSketchInfo("Humidity", "1.0");
                          
                            gw.present(CHILD_ID_HUM1, S_HUM);
                            gw.present(CHILD_ID_HUM2, S_HUM);
                            gw.present(CHILD_ID_TEMP1, S_TEMP);
                            gw.present(CHILD_ID_TEMP1, S_TEMP);
                            gw.present(CHILD_ID_LIGHT, S_LIGHT_LEVEL);
                          
                            metric = gw.getConfig().isMetric;
                          }
                          
                          void loop()
                          {
                            for (int i = 0; i < 2; i++)
                            {
                              delay(dht[i]->getMinimumSamplingPeriod());
                              float temperature = dht[i]->getTemperature();
                              if (isnan(temperature))
                              {
                                Serial.print(F("Failed reading temperature from DHT"));
                                Serial.println(i);
                              }
                              else if (temperature != lastTemp[i])
                              {
                                lastTemp[i] = temperature;
                                if (!metric)
                                {
                                  temperature = dht[i]->toFahrenheit(temperature);
                                }
                                gw.send(msgTemp.set(temperature, i));
                                Serial.print(F("T"));
                                Serial.print(i);
                                Serial.print(F("= "));
                                Serial.println(temperature);
                              }
                              float humidity = dht[i]->getHumidity();
                              if (isnan(humidity)) 
                              {
                                Serial.print("Failed reading humidity from DHT");
                                Serial.println(i);
                              } 
                              else if (humidity != lastHum[i]) 
                              {
                                lastHum[i] = humidity;
                                gw.send(msgHum.set(humidity, 1));
                                Serial.print(F("H"));
                                Serial.print(i);
                                Serial.print(F("= "));
                                Serial.println(humidity);
                              }
                              
                            int lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; 
                            Serial.println(lightLevel);
                            if (lightLevel != lastLightLevel) {
                                 gw.send(msg.set(lightLevel));
                          
                                lastLightLevel = lightLevel;
                                Serial.print("L=");
                                
                                Serial.println(lightLevel);
                          
                                
                            }
                          
                            }
                              
                            
                            gw.sleep(SLEEP_TIME); //sleep a bit
                          }
                          
                          
                          
                          D Offline
                          D Offline
                          d-smes
                          wrote on last edited by
                          #18

                          @Dick said:

                          gw.present(CHILD_ID_TEMP1, S_TEMP);
                          gw.present(CHILD_ID_TEMP1, S_TEMP);

                          Try changing the second ID to CHILD_ID_TEMP2 (note the "2") and see if that works better.

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


                          28

                          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