Navigation

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

    Posts made by Daniel Oliveira

    • RE: MH-Z19 CO2 sensor

      Hello,

      I finally got this sensor to work but instead I use this lib: https://github.com/nara256/mhz19_uart
      Another very useful source of information is this: https://revspace.nl/MHZ19#command_0x62_.28device_name_.2F_id.29

      Take note that is the MH-Z19B the methods isWarming() and getStatus() do not work.

      Can you please share the values that you are getting? I'm getting around 1500ppm and it is alarming by these website standards:
      https://www.engineeringtoolbox.com/co2-comfort-level-d_1024.html
      https://www.kane.co.uk/knowledge-centre/what-are-safe-levels-of-co-and-co2-in-rooms

      I didn't have the opportunity yet to get the sensor outdoors.

      Thank you in advance

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: MH-Z19 CO2 sensor

      @mfalkvidd said in MH-Z19 CO2 sensor:

      @daniel-oliveira isn't this sufficient? If not, what is missing?

       *  MH-Z19 CO2 sensor
       *  It communicates with your board over serial at 9600 speed.
      ---
      SoftwareSerial mySerial(10, 11);                  // RX, TX . You can choose other pins if you prefer.
      

      Missed that one, got confused due to the multiple possible ways to connect this sensor. (UART, PWM, etc)

      So TX, RX, GND and Vin sould be enough?

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: MH-Z19 CO2 sensor

      Hi!

      Thank you for sharing, can you please point me out how do I wire this thing up? 🙂

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: 💬 PiDome

      Is this project dead? Can't reach homepage

      posted in Announcements
      Daniel Oliveira
      Daniel Oliveira
    • RE: Prevent Relay from triggering on power loss or broker reboot

      Hi,

      I'm not an expert and honestly I didn't read all the comments, but to avoid the relay to change status on reboots would not be a simpler solution to add a "flip-flop" mechanism that will "save" the last sate for some minutes?

      Best regards

      posted in Troubleshooting
      Daniel Oliveira
      Daniel Oliveira
    • RE: 💬 MDMSNode "Lighting"

      Hi,

      Can you please give a reference for the MDMS series devices? I'm not aware of it neither was able to find any reference in the forum. But I'm curious.

      posted in OpenHardware.io
      Daniel Oliveira
      Daniel Oliveira
    • [WIP] Best practices to power your nodes

      Hello all,

      I think that good quality power source is a very important aspect to have a stable MySensors network or any other projects.
      In this forum there are a lot of people facing problems that are solved by improving how they power their projects, but despite that I think that all related information is scattered in the forum and not always easy to find or to relate.

      So, why not bring this amazing community together and point here some good practices on how to power our nodes? 🙂
      I would like to start this by addressing first two topics, "approved" power adaptors and bypass capacitors.

      Power adaptors:

      • Cellphone chargers
      • HLK PM01 (toAddLink)
      • ToBeCompleted

      Bypass Capacitors:
      (What is a bypass capacitor: http://www.learningaboutelectronics.com/Articles/What-is-a-bypass-capacitor.html)

      • NRF24L01: To discuss in this thread
      • ESP8266: 470uF as close as possible to Vin and GND pins

      Please add your opinions and knowledge about this topic, my goal is to keep this post up to date with shared information.

      For example, what are the values that you recommend for the NRF24L01 and why? I saw people mentioning 4.5uF, 10uF and 47uF. Personally I'm using the latter and I have no issues.

      Thank you all.

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: WS2811 RGB strip lights up in groups of three

      Well... I'm sorry for you, but at least now everyone that reads this thread will be aware.

      Cheers

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: 💬 AC-DC double solid state relay module

      Can someone please point me out the software used to design the PCB?
      If I got some time I would like to try out the improvements that I've mentioned before.
      It makes more or less 10 years the last time that I've did some PCB design with Eagle, nostalgia.... 🙂

      posted in OpenHardware.io
      Daniel Oliveira
      Daniel Oliveira
    • RE: WS2811 RGB strip lights up in groups of three

      Just found this in the product description : "LED Type: 1 WS2811 IC control 3 LED Chip,"

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: WS2811 RGB strip lights up in groups of three

      Hi,

      Looking at the product picture indeed there is only one WS2811 IC per each 3 LEDs. So... I'm afraid the behaviour that you describe is that LED strip can do...

      I have around here some WS2801 LED strips and there's one IC per LED.

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: 💬 AC-DC double solid state relay module

      I would like to suggest to move the termal fuse and the varistor.

      I would move the temp fuse to where the SB fuse is, the latter to where the varistor is. And finally the varistor to where the "My Sensors Board" inscription is.

      This would remove the mains trace from the middle of the PCB away from the ds18b20 and the connector for the switches.

      It would also allow to move the NRF24 and the switched connector closer to the HLK and thus further from the mains connector.

      Best regards

      posted in OpenHardware.io
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      Hi!

      I accomplish to do what I wanted thanks to the help of you all, so I'm sharing the results 🙂

      I ended up with this very simple MySensorGeneric.ino that is able to manage a DHT and a BH1750

      /**
      * Name:		MySensorGeneric.ino
      * Created:	20-Aug-16 22:47:51
      * Author:	Daniel
      *
      *******************************
      *
      * REVISION HISTORY
      * Version 0.1 - Development
      *
      */
      
      #include "MySensorConfig.h"
      #include <MySensors.h>
      
      #include "MySensorWrapperDHT.h"
      #include "MySensorWrapperBH1750.h"
      
      #define CHILD_ID_LIGHT 2
      #define CHILD_ID_TEMP  1
      #define CHILD_ID_HUM   0
      #define HUMIDITY_SENSOR_DIGITAL_PIN 3
      
      MySensorWrapperBH1750 SensorBH1750(CHILD_ID_LIGHT);
      MySensorWrapperDHT    SensorDHT(CHILD_ID_TEMP, CHILD_ID_HUM, HUMIDITY_SENSOR_DIGITAL_PIN);
      
      void setup()
      {
        SensorBH1750.Setup();
        SensorDHT.Setup();
      }
      
      void presentation() {
        sendSketchInfo("My Generic Sensor", "0.11");
        SensorBH1750.Present();
        SensorDHT.Present();
      }
      
      void loop()
      {
        SensorBH1750.UpdateSensorValue();
        SensorDHT.UpdateSensorValue();
        wait(SLEEP_TIME);
      }
      

      I've created a class to manage the BH1750:
      MySensorWrapperBH1750.h

      // MySensorWrapperBH1750.h
      
      #ifndef _MYSENSORWRAPPERBH1750_h
      #define _MYSENSORWRAPPERBH1750_h
      
      //Need to add to project Version.h and MyEepromAdresses.h
      #include "MySensorsCore.h"
      
      #include <BH1750.h>
      
      class MySensorWrapperBH1750
      {
      public:
        MySensorWrapperBH1750(uint8_t sensor_id);
        ~MySensorWrapperBH1750();
        void Setup();
        void Present();
        void UpdateSensorValue();  
      
      private:
        uint8_t _sensor_id;
        uint16_t _lastValue;
        BH1750 _sensor;
        MyMessage _msg;
      };
      
      #endif
      
      
      

      MySensorWrapperBH1750.cpp

      /**
      * Name:		MySensorWrapperBH1750
      * Created:	20-Aug-16 22:47:51
      * Author:	Daniel
      * Version 0.1 - Draft
      *
      *******************************
      *
      * MySensors Wrapper for BH1750 sensor.
      * Wiring (I2C):
      * Sensor -> Arduino
      *  GND   -> GND
      *  ADD   -> NC
      *  SDA   -> A4
      *  SCL   -> A5
      *  VCC   -> +5V
      *
      */
      
      
      #include "MySensorWrapperBH1750.h"
      
      MySensorWrapperBH1750::MySensorWrapperBH1750(uint8_t sensor_id)
      {
        _sensor_id = sensor_id;
        MyMessage _msg(_sensor_id, V_LEVEL);
      }
      
      MySensorWrapperBH1750::~MySensorWrapperBH1750()
      {
      }
      
      void MySensorWrapperBH1750::Setup()
      {
        // TODO: Set initialization mode
        // Default mode:
        // Start measurement at 1lx resolution. Measurement time is approx 120ms.
        // #define BH1750_CONTINUOUS_HIGH_RES_MODE  0x10
        // Start measurement at 1lx resolution. Measurement time is approx 120ms.
        // Device is automatically set to Power Down after measurement.
        // #define BH1750_ONE_TIME_HIGH_RES_MODE  0x20
      
        _sensor.begin();
      }
      
      void MySensorWrapperBH1750::Present()
      {
        present(_sensor_id, S_LIGHT_LEVEL);
      }
      
      void MySensorWrapperBH1750::UpdateSensorValue()
      {
        // Fetch light in Lux from BH1750 sensor
        uint16_t newValue = _sensor.readLightLevel();// Get Lux value
        if (isnan(newValue)) {
          #ifdef MY_DEBUG
              Serial.println("Failed reading Light from BH1750");
          #endif
        }
        else if (newValue != _lastValue) {
          #ifdef MY_DEBUG
            Serial.print("Lux: ");
            Serial.println(newValue);
          #endif
          send(_msg.set(newValue));
          _lastValue = newValue;
        }
      }
      

      And for the DHT I've created the following class:
      MySensorWrapperDHT.h

      // MySensorWrapperDHT.h
      
      #ifndef _MYSENSORWRAPPERDHT_h
      #define _MYSENSORWRAPPERDHT_h
      
      //Need to add to project Version.h and MyEepromAdresses.h
      #include "MySensorsCore.h"
      
      #include "DHT.h"
      
      class MySensorWrapperDHT
      {
      public:
        MySensorWrapperDHT(uint8_t sensor_temp_id, uint8_t sensor_humd_id, uint8_t sensor_pin = 3);
        ~MySensorWrapperDHT();
        void Setup();
        void Present();
        void UpdateSensorValue();
      
      private:
        uint8_t _sensorTempId;
        uint8_t _sensorHumdId;
        uint8_t _sensorPin;
        DHT _sensor;
        MyMessage _msgTemp;
        MyMessage _msgHumd;
        float _lastTempValue;
        float _lastHumdValue;
      };
      
      #endif
      
      

      MySensorWrapperDHT.cpp

      /**
      * Name:		MySensorWrapperDHT
      * Created:	20-Aug-16 22:47:51
      * Author:	Daniel
      * Version 0.1 - Draft
      *
      *******************************
      *
      * MySensors Wrapper for DHT sensor.
      * Wiring ():
      * Sensor -> Arduino
      *  GND   -> GND
      *  OUT   -> D3
      *  VCC   -> +5V
      *
      * NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1
      * to 3.3V instead of 5V!
      * Connect pin 2 of the sensor to whatever your DHTPIN is
      * Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor
      * https://github.com/adafruit/DHT-sensor-library/blob/master/examples/DHTtester/DHTtester.ino
      */
      
      #include "MySensorWrapperDHT.h"
      
      MySensorWrapperDHT::MySensorWrapperDHT(uint8_t sensor_temp_id, uint8_t sensor_humd_id, uint8_t sensor_pin)
      {
        _sensorTempId = sensor_temp_id;
        _sensorHumdId = sensor_humd_id;
        _sensorPin = sensor_pin;
        MyMessage _msgTemp(_sensorTempId, V_TEMP);
        MyMessage _msgHumd(_sensorHumdId, V_HUM);
      }
      
      MySensorWrapperDHT::~MySensorWrapperDHT()
      {
      }
      
      void MySensorWrapperDHT::Setup()
      {
        _sensor.setup(_sensorPin, DHT::DHT22);
      }
      
      void MySensorWrapperDHT::Present()
      {
        present(_sensorTempId, S_TEMP);
        present(_sensorHumdId, S_HUM);
      }
      
      void MySensorWrapperDHT::UpdateSensorValue()
      {
        // TODO: really needed?
        wait(_sensor.getMinimumSamplingPeriod());
        
        // Reading temperature or humidity takes about 250 milliseconds!
        // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
        float currentTempValue = _sensor.getTemperature();
        float currentHumdValue = _sensor.getHumidity();
      
        // Check if any reads failed and exit early (to try again).
        if (isnan(currentTempValue) || isnan(currentHumdValue) ){
          Serial.println("Failed to read from DHT sensor!");
        }
        else {
          // Update temperature from DHT sensor
          if (currentTempValue != _lastTempValue) {
            _lastTempValue = currentTempValue;
            send(_msgTemp.set(currentTempValue, true));
            #ifdef MY_DEBUG
              Serial.print("Temp: ");
              Serial.println(currentTempValue);
            #endif
          }
          // Update humidity from DHT sensor
          if (currentHumdValue != _lastHumdValue) {
            _lastHumdValue = currentHumdValue;
            send(_msgHumd.set(currentHumdValue, 1));
            #ifdef MY_DEBUG
              Serial.print("Hum: ");
              Serial.println(currentHumdValue);
            #endif
          }
        }
      }
      

      And to my surprise the footprint after compiling is even smaller, 18,374 bytes (59%) of program storage space and 913 bytes (44%) of dynamic memory with a single .ino versus 17,748 bytes (58%) of program storage space and 857 bytes (42%) of dynamic memory the above project in VisualMicro. Both results with MY_DEBUG defined.

      Next step is to create classes to manage switches, relays and LEDs.

      Once again thank you all for the help and fell free to share your opinions about the way I'm trying to do things.

      Best regards

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      @hek said:

      You can only include MySensors.h once from your sketch. It drags in .cpp files.

      So if you need MySensors things in your class, just include the stuff you need. I.e. MyMessage.h.

      Hi @hek

      As usual you are a live saviour, in this case MySensor projects saviour 🙂

      Because I want to access present() and send() functions I had to include the MySensorsCore.h and then add to the project (source files) the Version.h and the MyEepromAdresses.h to be able to compile.

      I'll do some tests and report back.

      Cheers

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      @ericvdb said:

      @Daniel-Oliveira That seems to me an issue with the build process.
      I think you better point this out on the VisualMicro Forum

      Hi,

      Thank you for the tip, and I bring news.

      Indeed I open a thread and after trying the suggested (that in fact was already suggested here) I found that I?m able to do what I want with another library, for example Bounce2.

      If I add #include "Bounce.h" to both my .ino file and to my MySensorWrapperBH1750.h it works flawlessly.
      In the other hand if I include have the MySensorWrapperBH1750.h like this:

      #define MY_BAUD_RATE 9600
      #define MY_RADIO_NRF24
      #define MY_DEBUG
      
      #include <MySensors.h>
      // and then my class
      

      And I include ONLY the MySensorWrapperBH1750.h in my .ino file I get the same error.
      What I understand from here is that even including MySensors library only once some how it is included twice when compiling.
      Does MySonsors lack somehow a "multiple inclusion protection"?

      Regards,

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      @Daniel-Oliveira said:

      Hi @tekka , @ericvdb and @Stuart-Middleton ,

      As VisualMicro users can you kindly take a look as this thread?

      Thank you in advance

      Bump 🙂

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      Hi @tekka , @ericvdb and @Stuart-Middleton ,

      As VisualMicro users can you kindly take a look as this thread?

      Thank you in advance

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: Free MySensors 2.0 workshop, Friday 9 September in Amersfoort (The Netherlands)

      Making a video of that workshop available as an introduction material for the MySensors website would be a 2nd best thing 🙂

      posted in General Discussion
      Daniel Oliveira
      Daniel Oliveira
    • RE: Node is not using repeater to talk to gateway

      Hi @karl261,

      It's a long shot but can you double check your power sources? I had some weird issues like those in the past because of bad quality power sources.

      I recommend adding a 47uF electrolytic capacitor as close as possible to the NRF24 GND and VCC pins, as a 470uF between the GND and the Vin pins of the arduino.

      And keep the external power source on even when connecting the USB cable to read the debug messages.

      Hope you solve this issue soon

      posted in Troubleshooting
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      @Nca78 said:

      Hello,

      I think your problem is you are including MySensors library before the configuration is visible to the controller. The error you have means it has started to compile the MySensors.h before it checked the MySensorConfig.h and saw the #define MY_RADIO_NRF24

      You should try to remove the #ifndef _MYSENSORCONFIG_h from the MySensorConfig.h file and put it in each file where you need to include MySensors.h, and inside this condition include both MySensorConfig.h and MySensors.h :

      #ifndef _MYSENSORCONFIG_h
       #include "MySensorConfig.h"
       #include <MySensors.h>
      #endif
      

      and your "MySensorConfig.h becomes :

      // MySensorConfig.h
      
      #define _MYSENSORCONFIG_h
      
      #define MY_BAUD_RATE 9600
      #define MY_RADIO_NRF24
      
      #define SLEEP_TIME 5000
      

      Hi and thank you for the help.

      Things apparently improved but still not there.

      Should I put the include of the MySensorConfig.h and MySensors.h as you mentioned also in the .ino file?
      And when a I have a class adding it to the header file is enough or should I also add it to the .cpp?

      Anyway I have problems in the linking stage apparently, do you have a clue?

      Compiling 'MySensorGeneric' for 'Arduino Nano w/ ATmega328'
      Build folder: file:///C:/Users/Daniel/AppData/Local/Temp/VMicroBuilds/MySensorGeneric/nano_atmega328
      Summary: Header=1 Prototypes=4 Imports=1
      Additional Defines: MY_DEBUG;
      Architecture Tools: C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/
      Sketchbook: file:\\\C:\Users\Daniel\Documents\Arduino
      Sketch Include Paths
      Include Path 'C:\Users\Daniel\Documents\Arduino\projects\MySensorGeneric'
      Core Include Paths
      Include Path 'C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino'
      Include Path 'C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs'
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src\SPI.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" "C:\Users\Daniel\Documents\Arduino\libraries\BH1750\BH1750.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src\Wire.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src\utility\twi.c" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\Documents\Arduino\libraries\BH1750\BH1750.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
       
      Building core ...
       
      Building libraries ...
      Using library BH1750 version 0.0.0 in folder C:\Users\Daniel\Documents\Arduino\libraries\BH1750
      Using previously compiled file: C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\BH1750\BH1750.cpp.o
      Using library MySensors version 2.0.1-beta in folder C:\Users\Daniel\Documents\Arduino\libraries\MySensors
      Using library SPI version 1.0 in folder C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI
      Using library Wire version 1.0 in folder C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire
       
      Building project code ...
      Using previously compiled file: C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp.o
      Using previously compiled file: C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorWrapperBH1750.cpp.o
       
      Linking it all together ...
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328/MySensorGeneric.ino.elf" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp.o" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\Wire\Wire.cpp.o" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\Wire\utility\twi.c.o" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\SPI\SPI.cpp.o" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\BH1750\BH1750.cpp.o" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorWrapperBH1750.cpp.o" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328/core.a" "-LC:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328" -lm
       
      MySensorWrapperBH1750.cpp.o (symbol from plugin)*: In function wakeUp1()
      (.text+0x0)*: multiple definition of wakeUp1()
      MySensorGeneric.cpp.o (symbol from plugin)*: (.text+0x0): first defined here
       
      MySensorWrapperBH1750.cpp.o (symbol from plugin)*: In function wakeUp1()
      (.text+0x0)*: multiple definition of _wakeUp1Interrupt
      MySensorGeneric.cpp.o (symbol from plugin)*: (.text+0x0): first defined here
       
      // and similiar erros another 100 times
       
      collect2.exe*: error: ld returned 1 exit status
      
      Error compiling for board Arduino Nano w/ ATmega328
      

      Thank you all for the help

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: Humidity+Relay with button node

      Hi @thecko,

      To answer you, yes it is totally possible. But to be able to help you more can you please share your sketch instead? The one that you added the relay code, with that we can help you find what is wrong.

      Regards

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      @TheoL said:

      @Daniel-Oliveira Make sure that you have all the defines in your main sketch before including <MySensors.h>. And also include your own libraries as the last ones. So #include <MySensorWrapperBH1750.h> should be your last include in your main sketch.

      I think that will work.

      Thank you once more for the help, but that is exactly what I have, and still no luck 😞

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      @TheoL said:

      @Daniel-Oliveira I think I've just included <MySensors.h> in the past. And that was all I needed to be able to acces the MySensors methods. Not sure if it still works in MySensors 2.0.

      Thank you for the quick reply,

      If I add #include <MySensors.h> the to the MySensorWrapperBH1750.h file apparently VisualMicro tries to insert/compile MySensors a second time and I get this error:

      MySensors.h: 253:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless
         #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless
      Error compiling project sources
      

      Here the complete output:

      Compiling 'MySensorGeneric' for 'Arduino Nano w/ ATmega328'
      Build folder: file:///C:/Users/Daniel/AppData/Local/Temp/VMicroBuilds/MySensorGeneric/nano_atmega328
      Summary: Header=1 Prototypes=4 Imports=1
      Additional Defines: MY_DEBUG;
      Architecture Tools: C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/
      Sketchbook: file:\\\C:\Users\Daniel\Documents\Arduino
      Sketch Include Paths
      Include Path 'C:\Users\Daniel\Documents\Arduino\projects\MySensorGeneric'
      Core Include Paths
      Include Path 'C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino'
      Include Path 'C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs'
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src\SPI.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" "C:\Users\Daniel\Documents\Arduino\libraries\BH1750\BH1750.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src\Wire.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src\utility\twi.c" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750\utility" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\Documents\Arduino\libraries\BH1750\BH1750.cpp" -o "nul"
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "nul"
       
      Building core ...
       
      Building libraries ...
      Using library BH1750 version 0.0.0 in folder C:\Users\Daniel\Documents\Arduino\libraries\BH1750
      Using previously compiled file: C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\BH1750\BH1750.cpp.o
      Using library MySensors version 2.0.1-beta in folder C:\Users\Daniel\Documents\Arduino\libraries\MySensors
      Using library SPI version 1.0 in folder C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI
      Using library Wire version 1.0 in folder C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire
       
      Building project code ...
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ywun0ect.dgd\Micro Platforms\default\debuggers" -I"C:\Users\Daniel\Documents\Arduino\libraries" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp" -o "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorGeneric.cpp.o" -DMY_DEBUG
      "C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=106010 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\cores\arduino" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\variants\eightanaloginputs" -I"C:\Users\Daniel\Documents\Arduino\libraries\MySensors" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\SPI\src" -I"C:\Users\Daniel\Documents\Arduino\libraries\BH1750" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries\Wire\src" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Users\Daniel\AppData\Local\arduino15\packages\arduino\hardware\avr\1.6.13\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ywun0ect.dgd\Micro Platforms\default\debuggers" -I"C:\Users\Daniel\Documents\Arduino\libraries" "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorWrapperBH1750.cpp" -o "C:\Users\Daniel\AppData\Local\Temp\VMicroBuilds\MySensorGeneric\nano_atmega328\MySensorWrapperBH1750.cpp.o" -DMY_DEBUG
       
      MySensorWrapperBH1750.h:14: In file included from
      MySensorWrapperBH1750.cpp:20: from
       
      MySensors.h: 253:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless
         #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless
      Error compiling project sources
      

      Regards

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: ESP8266 OTA (SOLVED)

      Hello all,

      Just to share my experience with OTA for the ESP8266 and VisualMicro for future reference, I think that there is no need to create a new topic as the search button works pretty well 🙂

      I've followed the toturials:
      http://esp8266.github.io/Arduino/versions/2.2.0-rc1/doc/ota_updates/readme.html
      http://www.visualmicro.com/page/esp8266.aspx

      Setting the IP of the ESP8266 works pretty well but I was not able to make the bonjour service to work maybe because of windows 10 ou Kaspersky firewall.

      The Issue that I've faced was after uploading the sketch, the ESP8266 did just stuck at boot or entered a bootloop and I've got this message "rst cause:4, boot mode:(3,6)"

      If you're facing the same or a similar issue I recommend checking your power source, I've added a 470uF capacitor between Vin and GND and start using a proper power supply even when connected to USB and the problem is gone.

      Source: https://github.com/esp8266/Arduino/issues/1328

      posted in Troubleshooting
      Daniel Oliveira
      Daniel Oliveira
    • [solved] MySensorWrapper - Wrapping sensor libraries for MySensors 2.0.x - need help

      Hello all,

      I'm trying to write a some classes to help me wrapping some sensors in a user friendly way.
      The goal is to keep the .ino file as simple as possible so I can easily manage different sketches with different hardware configuration.
      And also to avoid updating all my sketches each time I want to update a single parameter or a sensor configuration.

      To achieve that I'm using VisualMicro as IDE and I've created a header file where a put all the #defines that are common to all my sketches and class files where I have my wrapper.

      The problem is that I don't know what I need to do to have access to MySensors methods like present or the to MyMessage object from the wrapper. So I would like to have your help on that 🙂
      My C++ skils for the moment are limited and I don't even know if that is possible.

      So here is my .ino file (MySensorGeneric.ino):

      /**
      * Name:		MySensorGeneric.ino
      * Created:	20-Aug-16 22:47:51
      * Author:	Daniel
      *
      *******************************
      *
      * REVISION HISTORY
      * Version 0.1 - Development
      *
      */
      
      #include "MySensorConfig.h"
      #include <MySensors.h>
      #include "MySensorWrapperBH1750.h"
      
      #define CHILD_ID_LIGHT 2
      
      MySensorWrapperBH1750 lightSensor(CHILD_ID_LIGHT);
      
      void setup()
      {
        lightSensor.Setup();
      }
      
      void presentation() {
        sendSketchInfo("Light Lux Sensor", "0.11");
        
        lightSensor.Present();
      }
      
      void loop()
      {
        lightSensor.UpdateSensorValue();
        sleep(SLEEP_TIME);
      }
      

      Here the header file with the #defines to share between sketches (MySensorConfig.h):

      // MySensorConfig.h
      
      #ifndef _MYSENSORCONFIG_h
      #define _MYSENSORCONFIG_h
      
      #define MY_BAUD_RATE 9600
      #define MY_RADIO_NRF24
      
      #define SLEEP_TIME 5000
      
      #endif
      

      And finally my wrapper class files (MySensorWrapperBH1750.h and MySensorWrapperBH1750.cpp):

      // MySensorWrapperBH1750.h
      
      #ifndef _MYSENSORWRAPPERBH1750_h
      #define _MYSENSORWRAPPERBH1750_h
      
      #include <BH1750.h>
      
      #if defined(ARDUINO) && ARDUINO >= 100
      	#include "arduino.h"
      #else
      	#include "WProgram.h"
      #endif
      
      class MySensorWrapperBH1750
      {
      public:
        MySensorWrapperBH1750(uint8_t sensor_id);
        ~MySensorWrapperBH1750();
        void Setup();
        void Present();
        void UpdateSensorValue();  
      
      private:
        uint8_t _sensor_id;
        uint16_t _lastValue;
        BH1750 _sensor;
        MyMessage _msg;
      };
      
      #endif
      
      /**
      * Name:		MySensorWrapperBH1750
      * Created:	20-Aug-16 22:47:51
      * Author:	Daniel
      * Version 0.1 - Draft
      *
      *******************************
      *
      * MySensors Wrapper for BH1750 sensor.
      * Wiring (I2C):
      * Sensor -> Arduino
      *  GND   -> GND
      *  ADD   -> NC
      *  SDA   -> A4
      *  SCL   -> A5
      *  VCC   -> +5V
      *
      */
      
      #include "MySensorWrapperBH1750.h"
      
      MySensorWrapperBH1750::MySensorWrapperBH1750(uint8_t sensor_id)
      {
        _sensor_id = sensor_id;
        MyMessage _msg(_sensor_id, V_LEVEL);
      }
      
      MySensorWrapperBH1750::~MySensorWrapperBH1750()
      {
      }
      
      void MySensorWrapperBH1750::Setup()
      {
        // TODO: Set initialization mode
        // Default mode:
        // Start measurement at 1lx resolution. Measurement time is approx 120ms.
        // #define BH1750_CONTINUOUS_HIGH_RES_MODE  0x10
        // Start measurement at 1lx resolution. Measurement time is approx 120ms.
        // Device is automatically set to Power Down after measurement.
        // #define BH1750_ONE_TIME_HIGH_RES_MODE  0x20
        _sensor.begin();
      }
      
      void MySensorWrapperBH1750::Present()
      {
        present(_sensor_id, S_LIGHT_LEVEL);
      }
      
      void MySensorWrapperBH1750::UpdateSensorValue()
      {
        // Fetch light in Lux from BH1750 sensor
        uint16_t newValue = _sensor.readLightLevel();// Get Lux value
        if (isnan(newValue)) {
          #ifdef MY_DEBUG
              Serial.println("Failed reading Light from BH1750");
          #endif
        }
        else if (newValue != _lastValue) {
          #ifdef MY_DEBUG
            Serial.print("Lux: ");
            Serial.println(newValue);
          #endif
          send(_msg.set(newValue));
          _lastValue = newValue;
        }
      }
      

      I've attached the VisualMicro project is you're interested:
      MySensorGeneric.zip

      Sorry for the long post and the noob questions.

      Thank you all for the help

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: Alternative to ArduinoIDE

      @drock1985 said:

      This is a good thread; been recently contemplating changing IDE's myself.

      Visual Studio seems to be the most complete - I think I will give this one a try. Anyone have any tips for how to use this coming from the Arduino IDE (with no previous programming experience?)

      Thanks,

      Hi,

      Being using it from some hours and indeed it seems to be a great alternative, it even has a dark skin 😄
      You can use it to program in a more pure C++ way (my goal here), but it also support projects with .ino files so you can use your existing ArduinoIDE projects.

      To get used to Visual Studio/Micro I'm following their User guide, you can find it HERE

      Feel free to continue sharing your experiences

      posted in General Discussion
      Daniel Oliveira
      Daniel Oliveira
    • RE: Alternative to ArduinoIDE

      Thanks to all of you for your feedback,

      I'll give it a try to Visual Micro, I?m also curious about PlatformIO with eclipse as editor.
      I'll keep ou posted on the results for future reference.

      Regards

      posted in General Discussion
      Daniel Oliveira
      Daniel Oliveira
    • RE: Best IDE to use for MySensors projects

      Hello,

      @smilvert I would like to know if you succeed using PlatformIO.

      Thank you

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: Alternative to ArduinoIDE

      @hek said:

      Old thread, but something might still apply:
      https://forum.mysensors.org/topic/1369/best-ide-to-use-for-mysensors-projects

      Thanks @hek,

      I was writing at same time you replied, I'll take a look.

      posted in General Discussion
      Daniel Oliveira
      Daniel Oliveira
    • RE: Alternative to ArduinoIDE

      Hello @hek, @tekka, @Anticimex and @Yveaux ,

      I'm sorry to bothering you, but I would appreciate a feedback from you 🙂

      I have professional experience as software tester/developer but from a completely different world, nevertheless I would like to go back to my roots (electronics) and start participating more actively in this great community.

      So I would like to have your feedback on your development environment, software used etc. Something that you can recommend? I honestly would love an IDE like eclipse.

      Do you have experience with anything other than ArduinoIDE like THIS plugin for Visual Studio and Atmel Studio, THISeclipse plugin, the recent PlatformIO or other?

      Thank you all in advance,

      posted in General Discussion
      Daniel Oliveira
      Daniel Oliveira
    • Alternative to ArduinoIDE

      Hi everyone!

      I would like o know if any of you use an IDE to develop MySensors projects and libraries, I find ArduinoIDE atrocious.
      Actually I think that it does not even deserve the name of IDE because does not even highlight all occurrences of a selected work.

      I've tried sloeber: http://eclipse.baeyens.it/index.shtml but I'm not able to make it to compile the MySensors library 2.0.0 due to the extensive use of #defines and #ifndef, etc.

      Does anybody use anything else that can recommend?

      Thank you all in advance,
      Daniel

      posted in General Discussion
      Daniel Oliveira
      Daniel Oliveira
    • RE: 💬 AC-DC double solid state relay module

      @Nca78 Thank you for the reply,

      There is a way to overcame that? Like add a max retry of sorts? My concern is that if by some reason the gateway fails and the node reboots I will not be able use the switch.

      Or does MySensors have another fail safe mechanism that I'm not aware?

      posted in OpenHardware.io
      Daniel Oliveira
      Daniel Oliveira
    • RE: 💬 AC-DC double solid state relay module

      Hi everyone,

      First I would like to thank the OP for sharing this great project 🙂

      Then I would like to ask what would happen if the node cannot connect to the gateway on startup? It would still be possible to use the switch?

      Thank you,

      posted in OpenHardware.io
      Daniel Oliveira
      Daniel Oliveira
    • RE: MySensors 2.0.0 Released

      Hi all,

      I'm sorry if this was already answered.

      But how should we manage libraries that were included in the MySensors 1.5.x and are no more in the 2.0.x?
      For example DHT and BH1750.

      Thank you in advance,
      Daniel

      posted in Announcements
      Daniel Oliveira
      Daniel Oliveira
    • RE: 110v-230v AC to Mysensors PCB board

      Hi @vampircik,

      Can you please share roughly how much it costed you to build that node?

      Thanks

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: [Tutorial] Raspberry Pi NRF24l01 direct connection

      Hi @hek

      I know that a lot if going on regarding the MySensors 1.6 but I would like to know the plans for the repo mysensors/Raspberry?

      Is there any plans to keep developing it of merging it with the main libraries?

      I would like to be able to run the latest version on my Pi and I'm more than willing to help making it possible 🙂

      Cheers

      posted in Controllers
      Daniel Oliveira
      Daniel Oliveira
    • RE: openHAB 2.0 binding

      Hi @TimO

      I have a ESP8266 as Ethernet GW and a Nano with a S_HUM, S_TEMP and a S_LIGHT_LEVEL.
      I follow as described steps and the S_TEMP sensor is updated almost immediately, the S_HUM takes some minutes and the S_LIGHT_LEVEL is never updated.

      Can you take a look please?

      Launching the openHAB runtime...
      Listening for transport dt_socket at address: 8001
      2015-09-26 11:42:26 [DEBUG] [s.m.i.r.i.ItemRuntimeActivator:23   ] - Registered 'item' configuration parser
      2015-09-26 11:42:26 [INFO ] [uartz.impl.StdSchedulerFactory:1184 ] - Using default implementation for ThreadExecutor
      2015-09-26 11:42:26 [INFO ] [rtz.core.SchedulerSignalerImpl:61   ] - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
      2015-09-26 11:42:26 [INFO ] [rg.quartz.core.QuartzScheduler:240  ] - Quartz Scheduler v.2.2.1 created.
      2015-09-26 11:42:26 [INFO ] [org.quartz.simpl.RAMJobStore  :155  ] - RAMJobStore initialized.
      2015-09-26 11:42:26 [INFO ] [rg.quartz.core.QuartzScheduler:305  ] - Scheduler meta-data: Quartz Scheduler (v2.2.1) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'
        Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
        NOT STARTED.
        Currently in standby mode.
        Number of jobs executed: 0
        Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
        Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
      
      2015-09-26 11:42:26 [INFO ] [uartz.impl.StdSchedulerFactory:1339 ] - Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './runtime/etc/quartz.properties'
      2015-09-26 11:42:26 [INFO ] [uartz.impl.StdSchedulerFactory:1343 ] - Quartz scheduler version: 2.2.1
      2015-09-26 11:42:26 [DEBUG] [.i.PersistenceRuntimeActivator:23   ] - Registered 'persistence' configuration parser
      2015-09-26 11:42:26 [DEBUG] [s.m.r.r.i.RuleRuntimeActivator:35   ] - Registered 'rule' configuration parser
      2015-09-26 11:42:26 [DEBUG] [m.s.r.i.ScriptRuntimeActivator:22   ] - Registered 'script' configuration parser
      2015-09-26 11:42:26 [DEBUG] [.s.r.i.SitemapRuntimeActivator:23   ] - Registered 'sitemap' configuration parser
      2015-09-26 11:42:26 [DEBUG] [.m.t.r.i.ThingRuntimeActivator:23   ] - Registered 'thing' configuration parser
      osgi> 2015-09-26 11:42:27 [WARN ] [.j.s.handler.RequestLogHandler:137  ] - !RequestLog
      2015-09-26 11:42:27 [DEBUG] [.c.d.internal.ConfigDispatcher:222  ] - Processing config file 'services.cfg'
      2015-09-26 11:42:27 [DEBUG] [.c.d.internal.ConfigDispatcher:222  ] - Processing config file 'runtime.cfg'
      2015-09-26 11:42:28 [DEBUG] [.s.core.internal.CoreActivator:30   ] - Core bundle has been started.
      2015-09-26 11:42:28 [DEBUG] [.e.s.c.a.i.AutoUpdateActivator:29   ] - AutoUpdate binding has been started.
      2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/binding/binding.xml' in module 'org.openhab.binding.mysensors'...
      2015-09-26 11:42:28 [DEBUG] [o.e.s.c.s.i.SchedulerActivator:34   ] - Scheduler has been started.
      2015-09-26 11:42:28 [INFO ] [rg.quartz.core.QuartzScheduler:575  ] - Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.
      2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:159  ] - Create an empty XmlDocumentProvider for the module 'org.openhab.binding.mysensors'.
      2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/thing/channels.xml' in module 'org.openhab.binding.mysensors'...
      2015-09-26 11:42:28 [DEBUG] [.c.t.i.TransformationActivator:34   ] - Transformation Service has been started.
      2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:159  ] - Create an empty XmlDocumentProvider for the module 'org.openhab.binding.mysensors'.
      2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/thing/thing-types.xml' in module 'org.openhab.binding.mysensors'...
      2015-09-26 11:42:28 [DEBUG] [.e.s.i.m.i.MultimediaActivator:32   ] - Multimedia I/O bundle has been started.
      2015-09-26 11:42:28 [DEBUG] [c.x.o.XmlDocumentBundleTracker:118  ] - Reading the XML document '/ESH-INF/thing/bridges.xml' in module 'org.openhab.binding.mysensors'...
      2015-09-26 11:42:28 [DEBUG] [io.rest.internal.RESTActivator:32   ] - REST API has been started.
      2015-09-26 11:42:28 [DEBUG] [s.i.t.m.internal.MDNSActivator:27   ] - mDNS service has been started.
      2015-09-26 11:42:28 [DEBUG] [.i.t.m.internal.MDNSClientImpl:37   ] - mDNS service has been started
      2015-09-26 11:42:28 [DEBUG] [i.t.m.internal.MDNSServiceImpl:85   ] - Registering new service _openhab-server._tcp.local. at port 8080
      2015-09-26 11:42:28 [DEBUG] [i.t.m.internal.MDNSServiceImpl:85   ] - Registering new service _openhab-server-ssl._tcp.local. at port 8443
      2015-09-26 11:42:28 [DEBUG] [.i.r.sse.internal.SseActivator:46   ] - SSE API - SseFeature registered.
      2015-09-26 11:42:28 [DEBUG] [.i.r.sse.internal.SseActivator:55   ] - SSE API has been started.
      2015-09-26 11:42:28 [DEBUG] [.io.transport.mqtt.MqttService:118  ] - Starting MQTT Service...
      2015-09-26 11:42:28 [DEBUG] [.s.s.mapdb.MapDbStorageService:50   ] - Opened MapDB file at 'D:\Downloads\openhab2\.\userdata\mapdb\storage.mapdb'.
      2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.items.ManagedItemProvider' has been added.
      2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.thing.ManagedThingProvider' has been added.
      2015-09-26 11:42:28 [DEBUG] [.core.common.ThreadPoolManager:141  ] - Created scheduled thread pool 'discovery' of size 3
      2015-09-26 11:42:28 [DEBUG] [.c.thing.internal.ThingManager:549  ] - Thing handler factory 'MySensorsHandlerFactory' added
      2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.thing.link.ManagedItemChannelLinkProvider' has been added.
      2015-09-26 11:42:28 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.core.thing.link.ManagedItemThingLinkProvider' has been added.
      2015-09-26 11:42:28 [DEBUG] [ui.internal.chart.ChartServlet:122  ] - Starting up chart servlet at /chart
      2015-09-26 11:42:28 [DEBUG] [u.i.chart.DefaultChartProvider:97   ] - Starting up default chart provider.
      2015-09-26 11:42:28 [DEBUG] [o.e.s.u.c.i.servlet.CmdServlet:56   ] - Starting up CMD servlet at /classicui/CMD
      2015-09-26 11:42:28 [DEBUG] [s.ui.icon.internal.IconServlet:76   ] - Starting up icon servlet at /icon
      2015-09-26 11:42:28 [INFO ] [ui.internal.servlet.PaperUIApp:31   ] - Started Paper UI at /ui
      2015-09-26 11:42:29 [DEBUG] [e.s.i.t.upnp.UpnpIOServiceImpl:152  ] - Starting UPnP IO service...
      2015-09-26 11:42:29 [INFO ] [.u.d.internal.DashboardService:55   ] - Started dashboard at /start
      2015-09-26 11:42:29 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.model.item.internal.GenericItemProvider' has been added.
      2015-09-26 11:42:29 [INFO ] [rg.quartz.core.QuartzScheduler:2311 ] - JobFactory set to: org.eclipse.smarthome.model.rule.runtime.internal.engine.GuiceAwareJobFactory@1762bd77
      2015-09-26 11:42:29 [DEBUG] [.m.r.r.i.engine.RuleEngineImpl:96   ] - Started rule engine
      2015-09-26 11:42:29 [INFO ] [.s.u.c.i.servlet.WebAppServlet:85   ] - Started Classic UI at /classicui/app
      2015-09-26 11:42:29 [DEBUG] [e.s.m.t.i.GenericThingProvider:696  ] - ThingHandlerFactory added org.openhab.binding.mysensors.internal.MySensorsHandlerFactory@25ceff93
      2015-09-26 11:42:29 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.model.thing.internal.GenericThingProvider' has been added.
      2015-09-26 11:42:29 [DEBUG] [.c.c.registry.AbstractRegistry:190  ] - Provider 'org.eclipse.smarthome.model.thing.internal.GenericItemChannelLinkProvider' has been added.
      2015-09-26 11:42:29 [DEBUG] [ui.internal.proxy.ProxyServlet:94   ] - Starting up proxy servlet at /proxy
      2015-09-26 11:42:29 [INFO ] [.o.core.internal.CoreActivator:41   ] - openHAB runtime has been started (v2.0.0, build 201509240103).
      2015-09-26 11:42:29 [DEBUG] [.o.core.internal.CoreActivator:47   ] - Startup took 6896 ms
      2015-09-26 11:42:36 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
      2015-09-26 11:42:49 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element home_group_daef4dc3 to ManagedItemProvider.
      2015-09-26 11:42:49 [DEBUG] [.core.common.ThreadPoolManager:171  ] - Created thread pool 'safeCall' with size 3-10
      2015-09-26 11:42:49 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'home_group_daef4dc3' has been added.
      2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:bridge-eth:c27764bd' is tracked by ThingManager.
      2015-09-26 11:43:31 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:bridge-eth:c27764bd' has been added.
      2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:bridge-eth:c27764bd' at 'org.openhab.binding.mysensors.intern
      erFactory@25ceff93'.
      2015-09-26 11:43:31 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:bridge-eth:c27764bd' updated: INITIALIZING
      2015-09-26 11:43:31 [DEBUG] [.core.common.ThreadPoolManager:141  ] - Created scheduled thread pool 'thingHandler' of size 3
      2015-09-26 11:43:31 [DEBUG] [o.b.m.h.MySensorsBridgeHandler:58   ] - Initialization of the MySensors Bridge
      2015-09-26 11:43:31 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 192.168.0.17 to field 'ipAddress' in configuration class org.openhab.binding.mysensors.conf
      eConfiguration
      2015-09-26 11:43:31 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 5003 to field 'tcpPort' in configuration class org.openhab.binding.mysensors.config.MySenso
      tion
      2015-09-26 11:43:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:40   ] - Connecting to bridge ...
      2015-09-26 11:43:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:56   ] - Connection to ethernet gateway successful!
      2015-09-26 11:43:31 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:bridge-eth:c27764bd' updated: ONLINE
      2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:bridge-eth:c27764bd' added.
      2015-09-26 11:43:31 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:bridge-eth:c27764bd'.
      2015-09-26 11:43:31 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:bridge-eth:c27764bd to ManagedThingProvider.
      2015-09-26 11:43:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 0;0;3;0;14;Gateway startup complete.
      2015-09-26 11:43:32 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_bridge_eth_c27764bd to ManagedItemProvider.
      2015-09-26 11:43:32 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_bridge_eth_c27764bd' has been added.
      2015-09-26 11:43:32 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_bridge_eth_c27764bd' to thing 'mysensors:bridge-eth:c27764bd'.
      2015-09-26 11:43:32 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_bridge_eth_c27764bd -> mysensors:bridge-eth:c27764bd to ManagedItemThingLinkProvider.
      2015-09-26 11:43:32 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
      nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
      vel]' on 'MySensorsDiscoveryService'...
      2015-09-26 11:44:02 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
      2015-09-26 11:44:14 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;38
      2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:humidity:7d1da077' is tracked by ThingManager.
      2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:humidity:7d1da077' at 'org.openhab.binding.mysensors.internal
      Factory@25ceff93'.
      2015-09-26 11:44:16 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:humidity:7d1da077' has been added.
      2015-09-26 11:44:16 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:humidity:7d1da077' updated: INITIALIZING
      2015-09-26 11:44:16 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:humidity:7d1da077' updated: ONLINE
      2015-09-26 11:44:16 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'nodeId' in configuration class org.openhab.binding.mysensors.config.MySensorsSe
      
      2015-09-26 11:44:16 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 0 to field 'childId' in configuration class org.openhab.binding.mysensors.config.MySensorsS
      n
      2015-09-26 11:44:16 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:humidity:7d1da077' updated: ONLINE
      2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:humidity:7d1da077' added.
      2015-09-26 11:44:16 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:humidity:7d1da077'.
      2015-09-26 11:44:16 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:humidity:7d1da077 to ManagedThingProvider.
      2015-09-26 11:44:16 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_humidity_7d1da077' has been added.
      2015-09-26 11:44:16 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077 to ManagedItemProvider.
      2015-09-26 11:44:16 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_humidity_7d1da077' to thing 'mysensors:humidity:7d1da077'.
      2015-09-26 11:44:16 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077 -> mysensors:humidity:7d1da077 to ManagedItemThingLinkProvider.
      2015-09-26 11:44:17 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077_hum to ManagedItemProvider.
      2015-09-26 11:44:17 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_humidity_7d1da077_hum' has been added.
      2015-09-26 11:44:17 [DEBUG] [.c.t.internal.ThingLinkManager:317  ] - Adding linked item 'mysensors_humidity_7d1da077_hum' to channel 'mysensors:humidity:7d1da077:hum'.
      2015-09-26 11:44:17 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_humidity_7d1da077_hum -> mysensors:humidity:7d1da077:hum to ManagedItemChannelLinkProv
      2015-09-26 11:44:17 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
      nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
      vel]' on 'MySensorsDiscoveryService'...
      2015-09-26 11:44:27 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
      2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:light-level:9e706943' is tracked by ThingManager.
      2015-09-26 11:44:48 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:light-level:9e706943' has been added.
      2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:light-level:9e706943' at 'org.openhab.binding.mysensors.inter
      lerFactory@25ceff93'.
      2015-09-26 11:44:48 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'nodeId' in configuration class org.openhab.binding.mysensors.config.MySensorsSe
      
      2015-09-26 11:44:48 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 2 to field 'childId' in configuration class org.openhab.binding.mysensors.config.MySensorsS
      n
      2015-09-26 11:44:48 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:light-level:9e706943' updated: INITIALIZING
      2015-09-26 11:44:48 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:light-level:9e706943' updated: ONLINE
      2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:light-level:9e706943' added.
      2015-09-26 11:44:48 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:light-level:9e706943'.
      2015-09-26 11:44:48 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:light-level:9e706943' updated: ONLINE
      2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:light-level:9e706943 to ManagedThingProvider.
      2015-09-26 11:44:48 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_light_level_9e706943' has been added.
      2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943 to ManagedItemProvider.
      2015-09-26 11:44:48 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_light_level_9e706943' to thing 'mysensors:light-level:9e706943'.
      2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943 -> mysensors:light-level:9e706943 to ManagedItemThingLinkProvider
      2015-09-26 11:44:48 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_light_level_9e706943_light_level' has been added.
      2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943_light_level to ManagedItemProvider.
      2015-09-26 11:44:48 [DEBUG] [.c.t.internal.ThingLinkManager:317  ] - Adding linked item 'mysensors_light_level_9e706943_light_level' to channel 'mysensors:light-level:9e706943:light-l
      2015-09-26 11:44:48 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_light_level_9e706943_light_level -> mysensors:light-level:9e706943:light-level to Mana
      kProvider.
      2015-09-26 11:44:48 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
      nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
      vel]' on 'MySensorsDiscoveryService'...
      2015-09-26 11:45:05 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
      2015-09-26 11:45:06 [INFO ] [marthome.event.ThingAddedEvent:43   ] - Thing 'mysensors:temperature:4a73d1fa' has been added.
      2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:363  ] - Thing 'mysensors:temperature:4a73d1fa' is tracked by ThingManager.
      2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:487  ] - Calling registerHandler handler for thing 'mysensors:temperature:4a73d1fa' at 'org.openhab.binding.mysensors.inter
      lerFactory@25ceff93'.
      2015-09-26 11:45:06 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:temperature:4a73d1fa' updated: INITIALIZING
      2015-09-26 11:45:06 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'nodeId' in configuration class org.openhab.binding.mysensors.config.MySensorsSe
      
      2015-09-26 11:45:06 [DEBUG] [.e.s.config.core.Configuration:89   ] - Setting value (String) 1 to field 'childId' in configuration class org.openhab.binding.mysensors.config.MySensorsS
      n
      2015-09-26 11:45:06 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:temperature:4a73d1fa' updated: ONLINE
      2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:84   ] - Thing handler for thing 'mysensors:temperature:4a73d1fa' added.
      2015-09-26 11:45:06 [INFO ] [ome.event.ThingStatusInfoEvent:43   ] - mysensors:temperature:4a73d1fa' updated: ONLINE
      2015-09-26 11:45:06 [DEBUG] [.c.thing.internal.ThingManager:252  ] - Assigning handler for thing 'mysensors:temperature:4a73d1fa'.
      2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors:temperature:4a73d1fa to ManagedThingProvider.
      2015-09-26 11:45:06 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_temperature_4a73d1fa' has been added.
      2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa to ManagedItemProvider.
      2015-09-26 11:45:06 [DEBUG] [.c.t.internal.ThingLinkManager:328  ] - Assigning linked group item 'mysensors_temperature_4a73d1fa' to thing 'mysensors:temperature:4a73d1fa'.
      2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa -> mysensors:temperature:4a73d1fa to ManagedItemThingLinkProvider
      2015-09-26 11:45:06 [INFO ] [smarthome.event.ItemAddedEvent:43   ] - Item 'mysensors_temperature_4a73d1fa_temp' has been added.
      2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa_temp to ManagedItemProvider.
      2015-09-26 11:45:06 [DEBUG] [.c.t.internal.ThingLinkManager:317  ] - Adding linked item 'mysensors_temperature_4a73d1fa_temp' to channel 'mysensors:temperature:4a73d1fa:temp'.
      2015-09-26 11:45:06 [DEBUG] [.c.c.r.AbstractManagedProvider:62   ] - Added new element mysensors_temperature_4a73d1fa_temp -> mysensors:temperature:4a73d1fa:temp to ManagedItemChannel
      2015-09-26 11:45:06 [DEBUG] [i.DiscoveryServiceRegistryImpl:333  ] - Triggering scan for thing types '[mysensors:humidity, mysensors:temperature, mysensors:light, mysensors:volt, myse
      nsors:baro, mysensors:door, mysensors:motion, mysensors:smoke, mysensors:dimmer, mysensors:cover, mysensors:wind, mysensors:rain, mysensors:uv, mysensors:weight, mysensors:distance, m
      vel]' on 'MySensorsDiscoveryService'...
      2015-09-26 11:45:14 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
      2015-09-26 11:45:40 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
      2015-09-26 11:46:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 0;0;3;0;14;Gateway startup complete.
      2015-09-26 11:46:09 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
      2015-09-26 11:46:21 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;38
      2015-09-26 11:46:27 [DEBUG] [io.rest.core.item.ItemResource:127  ] - Received HTTP GET request at 'items'
      2015-09-26 11:48:03 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
      2015-09-26 11:48:03 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
      2015-09-26 11:48:03 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;37
      2015-09-26 11:49:32 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
      2015-09-26 11:49:45 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.1
      2015-09-26 11:49:45 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.1
      2015-09-26 11:49:45 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
      2015-09-26 11:49:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
      2015-09-26 11:50:10 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
      2015-09-26 11:50:23 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;45
      2015-09-26 11:50:23 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 45
      2015-09-26 11:50:23 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
      2015-09-26 11:50:36 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
      2015-09-26 11:51:01 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;36
      2015-09-26 11:51:14 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
      2015-09-26 11:52:05 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
      2015-09-26 11:52:30 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
      2015-09-26 11:53:08 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 7
      2015-09-26 11:53:21 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
      2015-09-26 11:53:21 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
      2015-09-26 11:53:21 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;33
      2015-09-26 11:53:33 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 6
      2015-09-26 11:53:46 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;33
      2015-09-26 11:53:59 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
      2015-09-26 11:56:06 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 5
      2015-09-26 11:56:19 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;23.8
      2015-09-26 11:56:19 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 23.8
      2015-09-26 11:56:19 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;69
      2015-09-26 11:56:19 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 69
      2015-09-26 11:56:19 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 3
      2015-09-26 11:56:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.5
      2015-09-26 11:56:31 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.5
      2015-09-26 11:56:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;81
      2015-09-26 11:56:31 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 81
      2015-09-26 11:56:31 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;32
      2015-09-26 11:56:44 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
      2015-09-26 11:56:44 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
      2015-09-26 11:56:44 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;77
      2015-09-26 11:56:44 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 77
      2015-09-26 11:56:44 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2; 8
      2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.4
      2015-09-26 11:56:57 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.4
      2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;65
      2015-09-26 11:56:57 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 65
      2015-09-26 11:56:57 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;34
      2015-09-26 11:57:10 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;57
      2015-09-26 11:57:10 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 57
      2015-09-26 11:57:22 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;53
      2015-09-26 11:57:22 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 53
      2015-09-26 11:57:22 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;35
      2015-09-26 11:57:35 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;50
      2015-09-26 11:57:35 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 50
      2015-09-26 11:57:35 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;19
      2015-09-26 11:57:48 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;49
      2015-09-26 11:57:48 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 49
      2015-09-26 11:57:48 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;30
      2015-09-26 11:58:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.3
      2015-09-26 11:58:00 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.3
      2015-09-26 11:58:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;48
      2015-09-26 11:58:00 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 48
      2015-09-26 11:58:00 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;26
      2015-09-26 11:58:13 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;47
      2015-09-26 11:58:13 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 47
      2015-09-26 11:58:26 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;29
      2015-09-26 11:58:39 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;0;1;0;1;46
      2015-09-26 11:58:39 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_humidity_7d1da077_hum updated to 46
      2015-09-26 11:58:39 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;27
      2015-09-26 11:58:51 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.2
      2015-09-26 11:59:09 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;1;1;0;0;22.3
      2015-09-26 11:59:09 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.2
      2015-09-26 11:59:09 [INFO ] [smarthome.event.ItemStateEvent:43   ] - mysensors_temperature_4a73d1fa_temp updated to 22.3
      2015-09-26 11:59:17 [DEBUG] [b.m.p.ip.MySensorsIpConnection:72   ] - 1;2;1;0;2;32
      

      Thank you

      posted in OpenHAB
      Daniel Oliveira
      Daniel Oliveira
    • RE: MySensors network stress test

      Hi @AWI ,

      Thank you for sharing, I'm trying the code right now, but I'm not understanding from where can I get the number of packets per second.

      BTW I'm trying with
      SLEEP_PERIOD = 10 and loopDelay = 100, what do you recommend?

      posted in Controllers
      Daniel Oliveira
      Daniel Oliveira
    • RE: gw.send seems to cause interrupts on pin 3 [SOLVED]

      @mfalkvidd using a clamp meter inside your apartment is not an alternative? Not as much precise I agree, but you already have the per hour information from the provider maybe you can use some clamp sensors to better find the sours of the consumptions.

      posted in Troubleshooting
      Daniel Oliveira
      Daniel Oliveira
    • RE: Presence detection

      Hi,

      Just a small input (I didn't read the article yet) but would not RFID or NFC be an option? At least an alternative for the IR in the door's frame?
      In some Hospitals it exists a RFID system to detect where a newborn or a child is, with a RFID bracelet and sensors in the doors.

      At the end I think that all the solutions are essentially a question of having sensors in entry/exit points and using algorithms.

      Cheers

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: ESP8266 WiFi gateway port for MySensors

      Hi @Yveaux ,

      I finally received my NodeMCU (but from http://doit.am/) did you had to flash any firmware (like the NodeMCU one) in order to be able to use it from Arduino IDE or it is just flash the .ino and it's ready to go?

      Regards

      posted in Development
      Daniel Oliveira
      Daniel Oliveira
    • RE: New Project with MySensor network and autonomous nodes

      Hi @hek, @John and all

      I have a question, does the MySensors and/or the PiDome properly handle an use case where all sensor nodes are started at the same time? e.g. after a power failure?

      In an example where I have many, let's say, temperature sensors and in all of them I define the exact same SLEEP_TIME, if all of those sensors boot at the same time will they send the info to the GW at the same time? Does this cause any problem?

      I'm asking this because I'm thinking if it would be useful/needed a mechanism where I get some values from the GW (or the GW pushes to the sensors), like sleeping times, thresholds and so on to avoid re-flashing all the sensors each time I want to fine tune some parameters.

      Thank you,

      posted in My Project
      Daniel Oliveira
      Daniel Oliveira
    • RE: Roller Shutter

      Hi @scalz

      A question, there is a reason to do not use an encoder instead of the acs712 and the stop buttons to know the position of the shutter?

      Cheers

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: My Ugly ESP GW Prototype

      Hi @hek and everyone,

      I'm starting to get really interested in knowing more about these ESP8266 litle things but after some "googling" I still didn't figured out one thing. I already saw some projects to use an ESP alone as a GW (with a RF24 module attached) but is it not possible to have a MySensor's network of only ESPs?

      One ESP as GE and multiple others as sensor nodes? Why?

      Thank you all in advance,
      Daniel

      posted in My Project
      Daniel Oliveira
      Daniel Oliveira
    • RE: We are mostly using fake nRF24L01+'s, but worse fakes are emerging.

      @NeverDie said:

      @sundberg84 said:

      Explaining to a electronic newbie, how do I test them?
      All i can do now is prette much see if they work or not within my house.

      I would be good if someone could create a little how-to so all can participate in these test.

      Regards
      Andreas

      So far, I've mainly compared packet loss rates (as well as packet roundtrip times) for different types of modules. I think both are important, but if I had to pick just one or the other, I would pick packet loss rates.

      I'm defining packet loss rate as: (# lost packets) divided by (total packets sent)

      Anyone have ideas/opinions/thoughts/suggestions/recommendations as to whether there are better discriminating metrics to measure?

      In terms of test setup, it would be ideal if the two arduinos running the test were screwed down to their test locations so that they couldn't be budged, so that almost the only thing that can change when testing different NRF modules is which NRF module is plugged into it. That way the antenna orientation will hopefully be effectively the same, or at least as close to that as we can hope to get without using an anachoic chamber--something which probably no one here would have access to.

      Hi @NeverDie,

      As mentioned in another thread I'm (slowly) re-writing the RFToy code to use the MySensor lybrary instead. By doing so I believe that we can do a direct relation between MySencor configs and performance. (It will take a while as I'm waiting for the sensors to test the code)

      Anyway I would like to make some question to better understand the tests being made and the scenarios.
      Here it goes:

      • Does the RFToy code have the ACK messages activated?
      • It is possible to detect when an ACK is received? (RFToy or MySensor libraries)
      • How was defined the timeout of 8 micro seconds?

      At the moment my concerns with the current code are:

      • The value used for timeout (above mentioned 8ms)
      • The measure of the RTT (Round trip time), by it's definition if the ACK messages are used the RTT should be the time difference between the first bit of the message sent and the first bit of the received ACK message
      • The payload used being the max allowed of 32bit for one packet, does it not overflow? does this cause problems? (need to test)
      • Is useless to compare if the received message is equal to the message sent as this (most probably) is handled by hardware (CRC check?)
      • Is there a way to be sure that there is enough time for the receiver node to switch between modes (receiving/transmitting)?

      Sorry for the long post and for the possible inaccuracy of my statements but this is my first contact with arduino so far, so I just hope to help and to learn with it.

      Regards

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: Which are the *best* NRF24L01+ modules?

      Hi everyone!

      I bought some NRF24L01+ that have the Range Extension chip RFaxis RFX2401C

      I'm curious to see how they perform 🙂

      And for that I'm thinking in rewriting the RFToy Sender/Receiver examples with the MySensor libraries.
      This will allow me to learn about the MySensor libraries and also to test the "performance" of the RF modules with different configurations.

      What do you think? Let me know if you're interested in such code.

      Regards

      posted in Hardware
      Daniel Oliveira
      Daniel Oliveira
    • RE: New Project with MySensor network and autonomous nodes

      Thank you @John 🙂

      I'll take this info and dig up in the forum and I'll came back if have more question.
      Also I plan to document all the steps as I'm starting from scratch, so it may help another newbie in thee future.

      Good to know that the migration to 1.5 is already under way, I'll start doing the component list and ordering them.

      Cheers!

      posted in My Project
      Daniel Oliveira
      Daniel Oliveira
    • New Project with MySensor network and autonomous nodes

      Hi everyone!

      I'm Daniel, I'm Portuguese currently living in Switzerland and I'm a software developer with good knowledge in electronics.

      I'm starting now a new project and I'm counting on all of you to help me 🙂 and of course that I would be a pleasure to help anyone or contribute to this project.
      So the project will consist in building a "Home automation" system to my apartment with some particularities, one of those is the UI and usability so I'll use PiDome as a controller, maybe openHAB2 in the future.

      I need your help exactly in the particularities that I mentioned before as what I want to do I'm sure that is possible but I didn't find any example or existing project, so I would like to have all the opinions and advices that I can get.

      I'm thinking in having a RPi with PiDome and a ~7" touch-screen as a central console (maybe a very cheap tablet will also do) and a arduino MySensor network with an arduino as a MQTT Gateway (are there better solutions?)
      For the sensors I'm planing to have DT22, PIR, light sensor, actuators and light switches, and my requirements are the ones that I'll list below:
      1- Each arduino needs to be autonomous, e.g. connect a switch to it that if pressed will turn on/off the light connected to it without the need to communicate to the PiDome to avoid lag and improve robustness. (I saw HERE that someone is already struggling with a similar idea)
      2- Be able to know the state (on/off) of the beforehand mentioned ligh, and switch it on/off from PiDome.
      3- Being able to use the PIR sensor to turn on/off some "presence lights", and enable/disable this behaviour at any time from PiDome.

      Everything else that I'm planing is already well documented.

      So do you think that is possible? Do you know where to start or can point me in the right direction?

      Finally I would like to have some opinions, do you recommend to use the Arduino Nano or the Pro Mini?

      Thank you all in advance, and don't hesitate to contact me,
      Daniel

      posted in My Project
      Daniel Oliveira
      Daniel Oliveira