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. Troubleshooting
  3. S_RAIN

S_RAIN

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 3 Posters 6.6k Views 1 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.
  • B Offline
    B Offline
    BulldogLowell
    Contest Winner
    wrote on last edited by BulldogLowell
    #1

    I cannot get this to present a sensor without disrupting the UI

    gw.sendSensorPresentation(1, S_RAIN);
    

    Anyone used this one yet?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      You are the pioneer!

      What do you mean by disrupting UI?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BulldogLowell
        Contest Winner
        wrote on last edited by
        #3

        it glitches out the UI and I can't seem to get it working.

        if I uncomment out the S_RAIN I get the attached.

        Comment it out, and the rest present fine

        #include <Sleep_n0m1.h>
        #include <SPI.h>
        #include <EEPROM.h>  
        #include <DallasTemperature.h>
        #include <OneWire.h>
        #include <RF24.h>
        #include <Sensor.h>  
        
        #define ONE_WIRE_BUS 3 // Pin where dallase sensor is connected 
        #define MAX_ATTACHED_DS18B20 16
        unsigned long SLEEP_TIME = 30; // Sleep time between reads (in seconds)
        
        OneWire oneWire(ONE_WIRE_BUS);
        DallasTemperature sensors(&oneWire);
        Sensor gw;
        Sleep sleep;
        float lastTemperature[MAX_ATTACHED_DS18B20];
        int numSensors=0;
        boolean metric; 
        float rainLevel = 0.25;
        float tempSensor = 72.5;
        float pressure = 10000;
        float humidity = 50;
        
        void setup()  
        { 
          sensors.begin();
          gw.begin(); 
          gw.sendSketchInfo("Rain Guage", "0.9a"); 
          gw.sendSensorPresentation(0, S_TEMP);
          //gw.sendSensorPresentation(1, S_RAIN);
          gw.sendSensorPresentation(2, S_BARO);
          gw.sendSensorPresentation(3, S_HUM);
          gw.sendSensorPresentation(4, S_MOTION);
          metric = gw.isMetricSystem();
          
          delay(2000);
          gw.sendVariable(0, V_TEMP, tempSensor,1);
          //gw.sendVariable(1, V_RAIN, ".25");
          gw.sendVariable(2, V_PRESSURE, "11000");
          gw.sendVariable(3, V_HUM, "45");
          gw.sendVariable(4, V_TRIPPED, 1);
          
        }
        
        void loop()     
        { 
        }
        

        Screen Shot 2014-06-07 at 11.52.50 AM.png

        Y 1 Reply Last reply
        0
        • B BulldogLowell

          it glitches out the UI and I can't seem to get it working.

          if I uncomment out the S_RAIN I get the attached.

          Comment it out, and the rest present fine

          #include <Sleep_n0m1.h>
          #include <SPI.h>
          #include <EEPROM.h>  
          #include <DallasTemperature.h>
          #include <OneWire.h>
          #include <RF24.h>
          #include <Sensor.h>  
          
          #define ONE_WIRE_BUS 3 // Pin where dallase sensor is connected 
          #define MAX_ATTACHED_DS18B20 16
          unsigned long SLEEP_TIME = 30; // Sleep time between reads (in seconds)
          
          OneWire oneWire(ONE_WIRE_BUS);
          DallasTemperature sensors(&oneWire);
          Sensor gw;
          Sleep sleep;
          float lastTemperature[MAX_ATTACHED_DS18B20];
          int numSensors=0;
          boolean metric; 
          float rainLevel = 0.25;
          float tempSensor = 72.5;
          float pressure = 10000;
          float humidity = 50;
          
          void setup()  
          { 
            sensors.begin();
            gw.begin(); 
            gw.sendSketchInfo("Rain Guage", "0.9a"); 
            gw.sendSensorPresentation(0, S_TEMP);
            //gw.sendSensorPresentation(1, S_RAIN);
            gw.sendSensorPresentation(2, S_BARO);
            gw.sendSensorPresentation(3, S_HUM);
            gw.sendSensorPresentation(4, S_MOTION);
            metric = gw.isMetricSystem();
            
            delay(2000);
            gw.sendVariable(0, V_TEMP, tempSensor,1);
            //gw.sendVariable(1, V_RAIN, ".25");
            gw.sendVariable(2, V_PRESSURE, "11000");
            gw.sendVariable(3, V_HUM, "45");
            gw.sendVariable(4, V_TRIPPED, 1);
            
          }
          
          void loop()     
          { 
          }
          

          Screen Shot 2014-06-07 at 11.52.50 AM.png

          Y Offline
          Y Offline
          Yveaux
          Mod
          wrote on last edited by
          #4

          @BulldogLowell I don't have any Vera experience, but could it have something to do with the value you sent for V_RAIN? Maybe try 0.25 or an integer value and see what happens.

          http://yveaux.blogspot.nl

          B 1 Reply Last reply
          0
          • Y Yveaux

            @BulldogLowell I don't have any Vera experience, but could it have something to do with the value you sent for V_RAIN? Maybe try 0.25 or an integer value and see what happens.

            B Offline
            B Offline
            BulldogLowell
            Contest Winner
            wrote on last edited by
            #5

            @Yveaux

            thanks, it doesn't present right even of I don't send it a value (i.e. comment out the gwsendVariable)

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hek
              Admin
              wrote on last edited by
              #6

              You are the first to use these devices. Fragments of the MySensors Versa plugin came from from the RFXtrx-plugin (especially the list of devices).

              What happens if you upload the device-files from here?
              http://code.mios.com/trac/mios_rfxtrx/browser/trunk

              B 1 Reply Last reply
              0
              • H hek

                You are the first to use these devices. Fragments of the MySensors Versa plugin came from from the RFXtrx-plugin (especially the list of devices).

                What happens if you upload the device-files from here?
                http://code.mios.com/trac/mios_rfxtrx/browser/trunk

                B Offline
                B Offline
                BulldogLowell
                Contest Winner
                wrote on last edited by
                #7

                @hek said:

                You are the first to use these devices. Fragments of the MySensors Versa plugin came from from the RFXtrx-plugin (especially the list of devices).

                What happens if you upload the device-files from here?
                http://code.mios.com/trac/mios_rfxtrx/browser/trunk

                that makes sense, you need the device vera-side.

                I tried that and it did the same thing.

                Where is the connection between the device(vera) and the S_RAIN variable in the sketch? Is it in the library files? at the gateway?

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hek
                  Admin
                  wrote on last edited by
                  #8

                  The connection is actually made in MySenosrs Vera plugin file:
                  https://github.com/mysensors/Vera/blob/master/L_Arduino.lua#L81

                  And this describes how it should be displayed:
                  http://code.mios.com/trac/mios_rfxtrx/browser/trunk/D_RainSensor1.json

                  B 1 Reply Last reply
                  0
                  • H hek

                    The connection is actually made in MySenosrs Vera plugin file:
                    https://github.com/mysensors/Vera/blob/master/L_Arduino.lua#L81

                    And this describes how it should be displayed:
                    http://code.mios.com/trac/mios_rfxtrx/browser/trunk/D_RainSensor1.json

                    B Offline
                    B Offline
                    BulldogLowell
                    Contest Winner
                    wrote on last edited by
                    #9

                    @hek

                    perhaps there is a problem with the json or xml file on lolodomo's last edit?

                    I can check with him in the vera forum...

                    B 1 Reply Last reply
                    0
                    • B BulldogLowell

                      @hek

                      perhaps there is a problem with the json or xml file on lolodomo's last edit?

                      I can check with him in the vera forum...

                      B Offline
                      B Offline
                      BulldogLowell
                      Contest Winner
                      wrote on last edited by
                      #10

                      @BulldogLowell said:

                      @hek

                      perhaps there is a problem with the json or xml file on lolodomo's last edit?

                      I can check with him in the vera forum...

                      I tried other sensor types which I had not had on Vera before and cannot seem to get any of them to work/display (e.g. S_WIND).

                      I must be missing a file vera-side, no?

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hek
                        Admin
                        wrote on last edited by
                        #11

                        Could be. Anything in vera log?

                        B 1 Reply Last reply
                        0
                        • H hek

                          Could be. Anything in vera log?

                          B Offline
                          B Offline
                          BulldogLowell
                          Contest Winner
                          wrote on last edited by
                          #12

                          @hek

                          Can you create a RAIN device?

                          the log is here. Note that Lua restarts over and over.

                          I confirmed with lolodomo that I need all three files D_RainSensor1.xml D_RainSensor1.json and S_RainSensor1.xml, which I installed.

                          19655 root 0 Z [GetNetworkState]
                          19674 root 1676 R ps axf
                          03 06/08/14 7:37:00.955 LuaUPNP: starting bLogUPnP 0 <0x2ac9f000>
                          02 06/08/14 7:37:00.975 JobHandler_LuaUPnP::Run: pid 14768 didn't exit <0x2ac9f000>
                          02 06/08/14 7:37:01.168 UserData::LoadUserData previous: 0 from 1.5.622 <0x2ac9f000>
                          09 06/08/14 7:37:01.169 UserData::ParseRooms 1 Exterior <0x2ac9f000>
                          09 06/08/14 7:37:01.169 UserData::ParseRooms 2 Living Room <0x2ac9f000>
                          09 06/08/14 7:37:01.169 UserData::ParseRooms 3 Family Room <0x2ac9f000>
                          09 06/08/14 7:37:01.170 UserData::ParseRooms 4 PlayRoom <0x2ac9f000>
                          09 06/08/14 7:37:01.170 UserData::ParseRooms 5 Dining Room <0x2ac9f000>
                          09 06/08/14 7:37:01.170 UserData::ParseRooms 6 Hallway <0x2ac9f000>
                          03 06/08/14 7:37:01.247 UserData::LoadUserData BuildVersion: 1.5.622 SvnVersion: 7546 Model: 33 MiCasaVerde VeraLite flush: 0 changed: 0 resync: 9227 syncdevice:0 <0x2ac9f000>
                          01 06/08/14 7:37:01.582 Device_LuaUPnP::LoadDeviceDoc ixmlParseBufferEx /etc/cmh-ludl//D_RainSensor1.xml size 15875 ret 106 <0x2ac9f000>
                          01 06/08/14 7:37:01.583 JobHandler_LuaUPnP::CreateDevice_LuaUPnP failed to load 79/D_RainSensor1.xml so device 16 is offline <0x2ac9f000>

                          01 06/08/14 7:37:02.010 Device_LuaUPnP::CreateServices Aborting device 16 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.010 JobHandler_LuaUPnP::CreateAllServices failed to create 16 <0x2ac9f000>
                          01 06/08/14 7:37:02.055 Device_LuaUPnP::CreateServices Aborting device 48 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.056 JobHandler_LuaUPnP::CreateAllServices failed to create 48 <0x2ac9f000>
                          01 06/08/14 7:37:02.056 Device_LuaUPnP::CreateServices Aborting device 49 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.056 JobHandler_LuaUPnP::CreateAllServices failed to create 49 <0x2ac9f000>
                          01 06/08/14 7:37:02.056 Device_LuaUPnP::CreateServices Aborting device 50 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.056 JobHandler_LuaUPnP::CreateAllServices failed to create 50 <0x2ac9f000>
                          01 06/08/14 7:37:02.057 Device_LuaUPnP::CreateServices Aborting device 51 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.057 JobHandler_LuaUPnP::CreateAllServices failed to create 51 <0x2ac9f000>
                          01 06/08/14 7:37:02.057 Device_LuaUPnP::CreateServices Aborting device 52 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.057 JobHandler_LuaUPnP::CreateAllServices failed to create 52 <0x2ac9f000>
                          01 06/08/14 7:37:02.057 Device_LuaUPnP::CreateServices Aborting device 53 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.058 JobHandler_LuaUPnP::CreateAllServices failed to create 53 <0x2ac9f000>
                          01 06/08/14 7:37:02.058 Device_LuaUPnP::CreateServices Aborting device 54 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.058 JobHandler_LuaUPnP::CreateAllServices failed to create 54 <0x2ac9f000>
                          01 06/08/14 7:37:02.058 Device_LuaUPnP::CreateServices Aborting device 55 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.059 JobHandler_LuaUPnP::CreateAllServices failed to create 55 <0x2ac9f000>
                          01 06/08/14 7:37:02.059 Device_LuaUPnP::CreateServices Aborting device 56 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.059 JobHandler_LuaUPnP::CreateAllServices failed to create 56 <0x2ac9f000>
                          01 06/08/14 7:37:02.144 Device_LuaUPnP::CreateServices Aborting device 64 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.144 JobHandler_LuaUPnP::CreateAllServices failed to create 64 <0x2ac9f000>
                          01 06/08/14 7:37:02.144 Device_LuaUPnP::CreateServices Aborting device 67 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.144 JobHandler_LuaUPnP::CreateAllServices failed to create 67 <0x2ac9f000>
                          01 06/08/14 7:37:02.145 Device_LuaUPnP::CreateServices Aborting device 68 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.145 JobHandler_LuaUPnP::CreateAllServices failed to create 68 <0x2ac9f000>
                          01 06/08/14 7:37:02.145 Device_LuaUPnP::CreateServices Aborting device 69 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.145 JobHandler_LuaUPnP::CreateAllServices failed to create 69 <0x2ac9f000>
                          01 06/08/14 7:37:02.152 Device_LuaUPnP::CreateServices Aborting device 74 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.152 JobHandler_LuaUPnP::CreateAllServices failed to create 74 <0x2ac9f000>
                          01 06/08/14 7:37:02.152 Device_LuaUPnP::CreateServices Aborting device 75 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.152 JobHandler_LuaUPnP::CreateAllServices failed to create 75 <0x2ac9f000>
                          01 06/08/14 7:37:02.152 Device_LuaUPnP::CreateServices Aborting device 76 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.153 JobHandler_LuaUPnP::CreateAllServices failed to create 76 <0x2ac9f000>
                          01 06/08/14 7:37:02.153 Device_LuaUPnP::CreateServices Aborting device 77 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.153 JobHandler_LuaUPnP::CreateAllServices failed to create 77 <0x2ac9f000>
                          01 06/08/14 7:37:02.153 Device_LuaUPnP::CreateServices Aborting device 78 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.154 JobHandler_LuaUPnP::CreateAllServices failed to create 78 <0x2ac9f000>
                          01 06/08/14 7:37:02.154 Device_LuaUPnP::CreateServices Aborting device 79 because the topmost device has no interface <0x2ac9f000>
                          01 06/08/14 7:37:02.154 JobHandler_LuaUPnP::CreateAllServices failed to create 79 <0x2ac9f000>
                          02 06/08/14 7:37:02.182 Device_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:ZWaveDevice1 <0x2ac9f000>
                          02 06/08/14 7:37:02.184 Device_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:ZWaveDevice1 <0x2ac9f000>
                          02 06/08/14 7:37:02.186 Device_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:ZWaveDevice1 <0x2ac9f000>
                          02 06/08/14 7:37:02.188 Device_Service::MatchupUpnpServices no upnp service for urn:micasaverde-com:serviceId:ZWaveDevice1 <0x2ac9f000>
                          02 06/08/14 7:37:02.198 Device_Service::MatchupUpnpServices no upnp service for urn:upnp-org:serviceID:VContainer1 <0x2ac9f000>

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            BulldogLowell
                            Contest Winner
                            wrote on last edited by
                            #13

                            @hek

                            I think it would be most helpful if you could confirm you are able to create a S_RAIN device.

                            RainGuage.ino

                            1 Reply Last reply
                            0
                            • H Offline
                              H Offline
                              hek
                              Admin
                              wrote on last edited by
                              #14

                              Screen Shot 2014-06-08 at 17.25.34.png

                              It pops up for me... (just tried adding a device manually)

                              Did you download the device.files as a zip.file (you'll find the download-link at the bottom of the page) ? Looks like the rain-xml file is corrupt.. it can happen if you download them one-by-one.

                              B 1 Reply Last reply
                              0
                              • H hek

                                Screen Shot 2014-06-08 at 17.25.34.png

                                It pops up for me... (just tried adding a device manually)

                                Did you download the device.files as a zip.file (you'll find the download-link at the bottom of the page) ? Looks like the rain-xml file is corrupt.. it can happen if you download them one-by-one.

                                B Offline
                                B Offline
                                BulldogLowell
                                Contest Winner
                                wrote on last edited by
                                #15

                                @hek

                                THANKS!!!

                                it was that simple....

                                1 Reply Last reply
                                0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                7

                                Online

                                12.0k

                                Users

                                11.2k

                                Topics

                                113.4k

                                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