Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. darknicht66
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by darknicht66

    • RE: V_UNIT_PREFIX with SensorBME280.h possible?

      This worked perfectly. Using the development branch for my NodeManager library and changing my 'void before()' to the following code presented the proper unit_of_measurement to my Home Assistant controller for the pressure sensor. Thanks for the assistance.

      void before() {
      
      /**********************************
       * Configure your sensors
       **********************************/
      
        // send unit prefixes to controller (i.e. V, A, hPa, %, etc.)
        nodeManager.setSendUnitPrefix(true);
      
        // let controller know ambient pressure sensor reports in hPa
        ambient.children.get(3)->setUnitPrefix("hPa");
      
        // report ambient measurements every 15 minutes
        ambient.setReportIntervalMinutes(15);
      
        // report battery level every 60 minutes
        battery.setReportIntervalMinutes(60);
      
        // report radio signal level every 10 minutes
        signal.setReportIntervalMinutes(10);
      
        // only a pseudo SR_TX_RSSI and SR_UPLINK_QUALITY are available for NRF24
        // radio. All other methods return as INVALID.
        signal.setSignalCommand(SR_UPLINK_QUALITY);
        
        // call NodeManager before routine
        nodeManager.before();
      }
      
      posted in NodeManager
      darknicht66
      darknicht66
    • RE: V_UNIT_PREFIX with SensorBME280.h possible?

      @BearWithBeard Awesome! That's exactly what I was looking for. It looks like it'll be in v1.9 so I'll switch over to the dev branch later today and give it a try. Looks simple enough.
      I have no idea why I didn't see that PR when I searched the repo, but many thanks for pointing me in the right direction.

      posted in NodeManager
      darknicht66
      darknicht66