S_RAIN


  • Contest Winner

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

    gw.sendSensorPresentation(1, S_RAIN);
    

    Anyone used this one yet?


  • Admin

    You are the pioneer!

    What do you mean by disrupting UI?


  • Contest Winner

    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


  • Mod

    @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.


  • Contest Winner

    @Yveaux

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


  • Admin

    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


  • Contest Winner

    @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?


  • Admin

    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


  • Contest Winner

    @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...


  • Contest Winner

    @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?


  • Admin

    Could be. Anything in vera log?


  • Contest Winner

    @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>


  • Contest Winner

    @hek

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

    RainGuage.ino


  • Admin

    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.


  • Contest Winner

    @hek

    THANKS!!!

    it was that simple....


Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 3
  • 1
  • 2
  • 2

20
Online

11.2k
Users

11.1k
Topics

112.5k
Posts