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. OpenHardware.io
  3. 💬 NodeManager

💬 NodeManager

Scheduled Pinned Locked Moved OpenHardware.io
contest2017arduinonewbiemysensorsbattery sensor
196 Posts 42 Posters 67.4k Views 41 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.
  • U user2684

    @dakipro in addition to what @Sergio-Rius already pointed out correctly, consider when multiple child IDs are created, you would need to call those functions on EACH id. Have a look at https://github.com/mysensors/NodeManager/issues/176 for more details. Thanks

    Sergio RiusS Offline
    Sergio RiusS Offline
    Sergio Rius
    wrote on last edited by
    #87

    @user2684 on #176 issue... and the sample I pasted before... then we have to configure Samples, SamplesInterval, TackLastValue and ForceUpdate for Temp and Hum separately?
    It doesn't make sense to me.

    U 1 Reply Last reply
    0
    • Sergio RiusS Sergio Rius

      @user2684 on #176 issue... and the sample I pasted before... then we have to configure Samples, SamplesInterval, TackLastValue and ForceUpdate for Temp and Hum separately?
      It doesn't make sense to me.

      U Offline
      U Offline
      user2684
      Contest Winner
      wrote on last edited by
      #88

      @Sergio-Rius yes, this is the case, since two different and completely independent child IDs are created, you need to call the methods on both. This is true for any sensor creating multiple IDs. And you're right, it doesn't make sense to me either, it is something I've realized recently. I'm tracking it down with https://github.com/mysensors/NodeManager/issues/198 but I do not expect this to be an easy fix. Thanks

      1 Reply Last reply
      1
      • V Offline
        V Offline
        vikasjee
        wrote on last edited by
        #89

        Hi, what's your calendar for v 1.6.0. I was looking forward to IO-Expander MCP23017 and TTP226/9 support in this release...

        U 1 Reply Last reply
        0
        • V vikasjee

          Hi, what's your calendar for v 1.6.0. I was looking forward to IO-Expander MCP23017 and TTP226/9 support in this release...

          U Offline
          U Offline
          user2684
          Contest Winner
          wrote on last edited by
          #90

          @vikasjee this was the plan, you're right, but I had to postpone a good number of requests supposed to be part of v1.6 since I wanted to allow this https://forum.mysensors.org/topic/6980/browser-based-firmware-generator which is dependent on NodeManager to come to life asap. So unfortunately I had to move those enhancement requiring some effort to v1.7 even if I already acquired the hardware. Sorry for that

          V 1 Reply Last reply
          0
          • U user2684

            @vikasjee this was the plan, you're right, but I had to postpone a good number of requests supposed to be part of v1.6 since I wanted to allow this https://forum.mysensors.org/topic/6980/browser-based-firmware-generator which is dependent on NodeManager to come to life asap. So unfortunately I had to move those enhancement requiring some effort to v1.7 even if I already acquired the hardware. Sorry for that

            V Offline
            V Offline
            vikasjee
            wrote on last edited by
            #91

            @user2684 No issues! When are you planning for 1.7.0? Looking forward to an early release especially the IO-Expander MCP23017 support...

            U 1 Reply Last reply
            0
            • V vikasjee

              @user2684 No issues! When are you planning for 1.7.0? Looking forward to an early release especially the IO-Expander MCP23017 support...

              U Offline
              U Offline
              user2684
              Contest Winner
              wrote on last edited by
              #92

              @vikasjee v1.7 will be somewhere after summer since v1.6 should be out by the end of this month I guess. But I can promise to start looking into IO-Expander MCP23017 support as the first thing as v1.7 development will start so to make it available first thing into the development branch :)

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MCF
                wrote on last edited by
                #93

                Hi, is it possible to add neopixel in the next version? thank you for your work

                U 1 Reply Last reply
                0
                • A Offline
                  A Offline
                  ArduiSens
                  wrote on last edited by
                  #94

                  Hello, is there an option to use the (fantastic) Node Manager in a RS485 wired set-up?

                  MySensors 2.3.2; contr:Domoticz; layer: RS485, nRF24; gw: Ethernet, Serial

                  U 1 Reply Last reply
                  0
                  • M MCF

                    Hi, is it possible to add neopixel in the next version? thank you for your work

                    U Offline
                    U Offline
                    user2684
                    Contest Winner
                    wrote on last edited by
                    #95

                    @MCF I've added https://github.com/mysensors/NodeManager/issues/203 to track this request. Feel free to add any relevant comment or code samples to the issue. Thanks!

                    1 Reply Last reply
                    0
                    • A ArduiSens

                      Hello, is there an option to use the (fantastic) Node Manager in a RS485 wired set-up?

                      U Offline
                      U Offline
                      user2684
                      Contest Winner
                      wrote on last edited by
                      #96

                      @ArduiSens RS485 should be already there in the development version (https://github.com/mysensors/NodeManager/tree/development). Nothing special, I've just added to config.h some sample directives, commented out by default. Let me know in case this approach can be improved. Thanks!

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        ArduiSens
                        wrote on last edited by
                        #97

                        @user2684, found the RS485 settings (thanks), but having problems with disabling the BATTERY_MANAGER option.
                        We don't need this option in a RS485 serial wired network (or RS485 serial gateway).

                        config.h:
                        #define BATTERY_MANAGER 0

                        gives following compiling errors:
                        sketch\NodeManager.cpp: In member function 'void NodeManager::process(Request&)':
                        NodeManager.cpp:3722: error: 'setBatteryReportSeconds' was not declared in this scope
                        case 40: setBatteryReportSeconds(request.getValueInt()); break;
                        NodeManager.cpp:3723: error: 'setBatteryReportHours' was not declared in this scope
                        case 41: setBatteryReportHours(request.getValueInt()); break;
                        NodeManager.cpp:3724: error: 'setBatteryReportDays' was not declared in this scope
                        case 42: setBatteryReportDays(request.getValueInt()); break;

                        exit status 1
                        'setBatteryReportSeconds' was not declared in this scope

                        MySensors 2.3.2; contr:Domoticz; layer: RS485, nRF24; gw: Ethernet, Serial

                        U 1 Reply Last reply
                        0
                        • A ArduiSens

                          @user2684, found the RS485 settings (thanks), but having problems with disabling the BATTERY_MANAGER option.
                          We don't need this option in a RS485 serial wired network (or RS485 serial gateway).

                          config.h:
                          #define BATTERY_MANAGER 0

                          gives following compiling errors:
                          sketch\NodeManager.cpp: In member function 'void NodeManager::process(Request&)':
                          NodeManager.cpp:3722: error: 'setBatteryReportSeconds' was not declared in this scope
                          case 40: setBatteryReportSeconds(request.getValueInt()); break;
                          NodeManager.cpp:3723: error: 'setBatteryReportHours' was not declared in this scope
                          case 41: setBatteryReportHours(request.getValueInt()); break;
                          NodeManager.cpp:3724: error: 'setBatteryReportDays' was not declared in this scope
                          case 42: setBatteryReportDays(request.getValueInt()); break;

                          exit status 1
                          'setBatteryReportSeconds' was not declared in this scope

                          U Offline
                          U Offline
                          user2684
                          Contest Winner
                          wrote on last edited by
                          #98

                          @ArduiSens thanks, good catch, this looks like a mistake on my side, keep on eye on https://github.com/mysensors/NodeManager/issues/206 for a fix which should come shortly.

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            ArduiSens
                            wrote on last edited by
                            #99

                            @user2684, why does NodeManager take so many sketch memory?
                            e.g.
                            (#define BATTERY_MANAGER 1; #define DEBUG 1; #define MODULE_DS18B20 1)
                            sketch NodeManager RS485 config for DS18B20 --> 28730 bytes (93%) of program storage space. Maximum is 30720 bytes.

                            own sketch for RS485 SR04T --> 17078 bytes (55%) of program storage space. Maximum is 30720 bytes.

                            OK, DS18B20 and SR04T are not the same but DS18B20 is less complex, so 38% more memory is pretty much.
                            Do I miss something?

                            MySensors 2.3.2; contr:Domoticz; layer: RS485, nRF24; gw: Ethernet, Serial

                            Sergio RiusS U 2 Replies Last reply
                            0
                            • A ArduiSens

                              @user2684, why does NodeManager take so many sketch memory?
                              e.g.
                              (#define BATTERY_MANAGER 1; #define DEBUG 1; #define MODULE_DS18B20 1)
                              sketch NodeManager RS485 config for DS18B20 --> 28730 bytes (93%) of program storage space. Maximum is 30720 bytes.

                              own sketch for RS485 SR04T --> 17078 bytes (55%) of program storage space. Maximum is 30720 bytes.

                              OK, DS18B20 and SR04T are not the same but DS18B20 is less complex, so 38% more memory is pretty much.
                              Do I miss something?

                              Sergio RiusS Offline
                              Sergio RiusS Offline
                              Sergio Rius
                              wrote on last edited by
                              #100

                              @ArduiSens for curiosity, what board are those numbers from?

                              NodeManager is a young project. You can expect changes and optimizations in the future. And also you can do suggestions and pull requests.

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                ArduiSens
                                wrote on last edited by
                                #101

                                @Sergio, I know and it's OK. I'm just playing (trying to convert my RS485 projects).
                                In the cases above I'm using Nano boards.

                                MySensors 2.3.2; contr:Domoticz; layer: RS485, nRF24; gw: Ethernet, Serial

                                1 Reply Last reply
                                0
                                • A ArduiSens

                                  @user2684, why does NodeManager take so many sketch memory?
                                  e.g.
                                  (#define BATTERY_MANAGER 1; #define DEBUG 1; #define MODULE_DS18B20 1)
                                  sketch NodeManager RS485 config for DS18B20 --> 28730 bytes (93%) of program storage space. Maximum is 30720 bytes.

                                  own sketch for RS485 SR04T --> 17078 bytes (55%) of program storage space. Maximum is 30720 bytes.

                                  OK, DS18B20 and SR04T are not the same but DS18B20 is less complex, so 38% more memory is pretty much.
                                  Do I miss something?

                                  U Offline
                                  U Offline
                                  user2684
                                  Contest Winner
                                  wrote on last edited by
                                  #102

                                  @ArduiSens that's true, many optimizations can be done to save additional storage. With v1.5.1 a design issue eating up 20% of the storage has been fixed but many things for sure can be improved. As for the current version, try lowering down MAX_SENSORS (which by default allocates the pointers for 10 child IDs) and set DEBUG to 0 after your tests. The latter especially should give you another 20% of storage back (static strings of the debug output are consuming most of this storage). Thanks

                                  1 Reply Last reply
                                  0
                                  • D Offline
                                    D Offline
                                    dakipro
                                    wrote on last edited by
                                    #103

                                    How to add i2c sensor?
                                    I see that there is a git issue asking about si7021 which I would also like to use as well, but has someone perhaps connected it already by creating a custom sensor?
                                    How difficult would it be?
                                    Thanks!

                                    C: OpenHAB2 with node-red on linux laptop
                                    GW: Arduino Nano - W5100 Ethernet, Nrf24l01+ 2,4Ghz mqtt
                                    GW: Arduino Mega, RFLink 433Mhz

                                    U 1 Reply Last reply
                                    0
                                    • D dakipro

                                      How to add i2c sensor?
                                      I see that there is a git issue asking about si7021 which I would also like to use as well, but has someone perhaps connected it already by creating a custom sensor?
                                      How difficult would it be?
                                      Thanks!

                                      U Offline
                                      U Offline
                                      user2684
                                      Contest Winner
                                      wrote on last edited by
                                      #104

                                      Hi @dakipro, I've just commented on github for the Si7021. Regarding the custom sensor, have a look at this https://github.com/mysensors/NodeManager#creating-a-custom-sensor (or the same section on the development branch documentation if you are using it). As far as you create an (inline) class inheriting from Sensor or its subclasses and implement the methods listed in the documentation you can invoke registerSensor() providing the instance of your class and NodeManager will take care of it. Just take inspiration from an existing sensor if you want to do so, it should save you some time. Thanks

                                      1 Reply Last reply
                                      1
                                      • U Offline
                                        U Offline
                                        user2684
                                        Contest Winner
                                        wrote on last edited by
                                        #105

                                        Hello All,

                                        NodeManager v1.6 is finally available! Download and upgrade instructions can be found as always on https://github.com/mysensors/NodeManager

                                        First of all I want to thank everybody contributing to the project, especially those who have submitted pull requests to the repository.

                                        In v1.6 we have 36 out-of-the-box sensors as well as a good number fixes and enhancements. The most notable are for sure the capability to customize any sensor remotely through a brand new remote API and a more flexible and effective way to configure reporting intervals and sleep cycles:

                                        • Introduced new remote API to allow calling almost ALL NodeManager's and its sensors' functions remotely
                                        • Reporting interval configuration is now indipendent from the sleep cycle
                                        • Reporting interval can be customized per-sensor
                                        • All intervals (measure/battery reports) are now time-based
                                        • Added support for BMP280 temperature and pressure sensor
                                        • Added support for RS485 serial transport
                                        • Added support for TSL2561 light sensor
                                        • Added support for DHT21 temperature/humidity sensor
                                        • Added support for AM2320 temperature/humidity sensor
                                        • Added support for PT100 high temperature sensor
                                        • Added support for MH-Z19 CO2 sensor
                                        • Added support for analog rain and soil moisture sensors
                                        • Added support for generic dimmer sensor (PWM output)
                                        • Added support for power and water meter pulse sensors
                                        • Radio signal level (RSSI) is now reported automatically like the battery level
                                        • SensorRainGauge now supports sleep mode
                                        • SensorSwitch now supports awake mode
                                        • SensorLatchingRealy now handles automatically both on and off commands
                                        • SensorMQ now depends on its own module
                                        • Added safeguard (automatic off) to SensorDigitalOutput
                                        • Any sensor can now access all NodeManager's functions
                                        • DHT sensor now using MySensors' DHT library

                                        For those who have previously forked the repository, please ensure to merge the updated development branch first before submitting any new PR.

                                        Thanks!

                                        1 Reply Last reply
                                        2
                                        • V Offline
                                          V Offline
                                          vikasjee
                                          wrote on last edited by
                                          #106
                                          This post is deleted!
                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          7

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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