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
darknicht66D

darknicht66

@darknicht66
Unfollow Follow
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • V_UNIT_PREFIX with SensorBME280.h possible?
    darknicht66D darknicht66
    NodeManager

    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();
    }
    

  • V_UNIT_PREFIX with SensorBME280.h possible?
    darknicht66D darknicht66
    NodeManager

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

  • Login

  • Don't have an account? Register

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