Navigation

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

    hyla

    @hyla

    4
    Reputation
    38
    Posts
    1000
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    hyla Follow

    Best posts made by hyla

    • RE: MySensors 2.3.1 released

      Hi,

      did some experiments: switched

      #define MY_RADIO_NRF24
      

      to

      #define MY_RADIO_RF24
      

      : no error. So my MySensors version seems to be okay.

      And then I changed the #warning in MyConfig.h into an #error and that actually did throw an error.

      So maybe it's got to do with warning levels? We are just not being displayed the warnings?
      And that's when I had a look at the settings for my Arduino IDE and found "none" for compiler warnings.
      And that was it 😉

      "Your monkey's got it right"
      🙂

      Christoph

      posted in Announcements
      hyla
      hyla
    • RE: Max. Number of Children?

      @gohan

      Yes, they are/were.
      Alas, case solved... I have lost a line of code somehow. Which in this case meant that
      presentation was done correctly but these "missing values" were never actually sent,
      thereby keepin Domoticz from accepting them (seems every parameter to be recognized
      must actually have been sent once).
      Anyway, sorry for bothering You and thanks again,

      Christoph

      posted in Domoticz
      hyla
      hyla

    Latest posts made by hyla

    • MT681 - Energy Meter

      Hi,

      my electricity supplier swapped meters: we've now got a MT681 and I was forced to get rid of my old sensor.
      So far things seem to work okay-ish, but there are a few things I don't quite understand...

      I've adapted the current "EnergyMeterPulseSensor" example.
      The optical sensor is connected to a ESP32 which is doubling as a Gateway.

      These are "MyMessages":

      MyMessage wattMsg(CHILD_ID, V_WATT);
      MyMessage kWhMsg(CHILD_ID, V_KWH);
      

      The Sketch Info:

      sendSketchInfo(F("Energy Meter"), F("1.1"));
      

      B.t.w.: what's the "F" for? That didn't use to be there ... 🙂
      I then present the device to Domoticz:

      present(CHILD_ID, S_POWER);
      

      And in the loop I send my data:

      send(kWhMsg.set(kWh, 4));             // Send kWh value to gw
      send(wattMsg.set(Watt,0));            // Send watt value to gw
      

      "Watt" being the current usage, "kWh" the total consumption that was registrated by my fancy MT681
      since we received it.
      In Domoticz I get just one device: Type "general", Subtype "kWh". In the log I get a "Power Usage" graph
      and a block graph telling me the "Energy usage" during one hour. Is there a way to display the current energy
      counter state as well. I seem to remember that it used to show up somewhere...

      In the hardware section my gateway/sensor node has 7 children with curious values:
      children.jpg
      How did that happen? I would expect to have three children there: S_Power, S_Custom and the S_Arduino_Node...

      S_Custom was an experiment to add a RSSI value (via "WiFi.RSSI()"). Didn't work though. I did get values for RSSI
      but couldn't figure out as what/how to send them to Domoticz. Any ideas here?

      Thanks everybody!
      Christoph

      posted in Domoticz
      hyla
      hyla
    • Use sensors with serial output

      Hi,

      I'd like to connect my Smart Meter to Domoticz. I thought about using an ESP32 as a gateway/sensor combination.
      So. The ESP32 would have to run a serial port somehow which would receive the serial data from the smart meter
      (just 9600 Baud) and at the same time act as a gateway in the Mysensors environment.
      Is anyone aware of an example for that? I don't think I have to reinvent any wheels here. Life's short 😉

      Christoph

      Edit: A MySensors node, connected to a nearby gateway would probably work just as well...

      posted in General Discussion
      hyla
      hyla
    • RE: MySensors 2.3.1 released

      Hi,

      did some experiments: switched

      #define MY_RADIO_NRF24
      

      to

      #define MY_RADIO_RF24
      

      : no error. So my MySensors version seems to be okay.

      And then I changed the #warning in MyConfig.h into an #error and that actually did throw an error.

      So maybe it's got to do with warning levels? We are just not being displayed the warnings?
      And that's when I had a look at the settings for my Arduino IDE and found "none" for compiler warnings.
      And that was it 😉

      "Your monkey's got it right"
      🙂

      Christoph

      posted in Announcements
      hyla
      hyla
    • RE: MySensors 2.3.1 released

      @skywatch said in MySensors 2.3.1 released:

      @mfalkvidd I am using arduino 1.8.7 on win10 and I do not see any message like you illustrated. I just tested it with the gateway sketch and it just compiles with no error or warning.

      With 'nrf' in the define the text is in black, removing the 'n' at the front and it turns light blue as a recognised entity. But either way it just compilies fine. I'm not complaining, just curious now 😉

      Hi,

      same thing here: Win10, Arduino 1.8.7, updated to Mysensors 2.3.1 and no warning:

      C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Christoph\AppData\Local\Arduino15\packages -hardware C:\Users\Christoph\Dropbox\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Christoph\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Christoph\Dropbox\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10807 -build-path C:\Users\CHRIST~1\AppData\Local\Temp\arduino_build_347589 -warnings=none -build-cache C:\Users\CHRIST~1\AppData\Local\Temp\arduino_cache_573993 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Christoph\Desktop\TestMe\TestMe.ino
      C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Christoph\AppData\Local\Arduino15\packages -hardware C:\Users\Christoph\Dropbox\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Christoph\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Christoph\Dropbox\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10807 -build-path C:\Users\CHRIST~1\AppData\Local\Temp\arduino_build_347589 -warnings=none -build-cache C:\Users\CHRIST~1\AppData\Local\Temp\arduino_cache_573993 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Christoph\Desktop\TestMe\TestMe.ino
      Using board 'pro' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
      Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
      Detecting libraries used...
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\sketch\\TestMe.ino.cpp" -o nul
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\Christoph\\Dropbox\\Arduino\\libraries\\MySensors" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\sketch\\TestMe.ino.cpp" -o nul
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\Christoph\\Dropbox\\Arduino\\libraries\\MySensors" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\sketch\\TestMe.ino.cpp" -o nul
      Using cached library dependencies for file: C:\Users\Christoph\Dropbox\Arduino\libraries\MySensors\MyASM.S
      Using cached library dependencies for file: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src\SPI.cpp
      Generating function prototypes...
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\Christoph\\Dropbox\\Arduino\\libraries\\MySensors" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\sketch\\TestMe.ino.cpp" -o "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\preproc\\ctags_target_for_gcc_minus_e.cpp"
      "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\preproc\\ctags_target_for_gcc_minus_e.cpp"
      Compiling sketch...
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\eightanaloginputs" "-IC:\\Users\\Christoph\\Dropbox\\Arduino\\libraries\\MySensors" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\sketch\\TestMe.ino.cpp" -o "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\sketch\\TestMe.ino.cpp.o"
      Compiling libraries...
      Compiling library "MySensors"
      Using previously compiled file: C:\Users\CHRIST~1\AppData\Local\Temp\arduino_build_347589\libraries\MySensors\MyASM.S.o
      Compiling library "SPI"
      Using previously compiled file: C:\Users\CHRIST~1\AppData\Local\Temp\arduino_build_347589\libraries\SPI\SPI.cpp.o
      Compiling core...
      Using precompiled core: C:\Users\CHRIST~1\AppData\Local\Temp\arduino_cache_573993\core\core_arduino_avr_pro_cpu_16MHzatmega328_0c812875ac70eb4a9b385d8fb077f54c.a
      Linking everything together...
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589/TestMe.ino.elf" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\sketch\\TestMe.ino.cpp.o" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\libraries\\MySensors\\MyASM.S.o" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589/..\\arduino_cache_573993\\core\\core_arduino_avr_pro_cpu_16MHzatmega328_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589" -lm
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589/TestMe.ino.elf" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589/TestMe.ino.eep"
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589/TestMe.ino.elf" "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589/TestMe.ino.hex"
      Using library MySensors at version 2.3.1 in folder: C:\Users\Christoph\Dropbox\Arduino\libraries\MySensors 
      Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI 
      "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\CHRIST~1\\AppData\\Local\\Temp\\arduino_build_347589/TestMe.ino.elf"
      Sketch uses 6096 bytes (19%) of program storage space. Maximum is 30720 bytes.
      Global variables use 322 bytes (15%) of dynamic memory, leaving 1726 bytes for local variables. Maximum is 2048 bytes.
      

      I do find the warning line in MySensors.h:

      // legacy - remove for 3.0.0
      /**
      * @def MY_RADIO_NRF24
      * @brief Define this to use a RF24-based radio transport for sensor network communication.
      * @deprecated This flag is deprecated and replaced by @ref MY_RADIO_RF24
      */
      #ifdef MY_RADIO_NRF24
      #warning MY_RADIO_NRF24 is deprecated, use MY_RADIO_RF24 instead.
      #undef MY_RADIO_NRF24
      #define MY_RADIO_RF24
      #endif
      

      I've got my sketches folder on Dropbox so there are potential traps there like additional copies of the MySensors folder and such but I can't find any.

      Christoph

      posted in Announcements
      hyla
      hyla
    • Heltec esp32 LoRa oled

      Hi,

      I'm using above module for a LoRa gateway. Works, too ...
      Now, I'd like to display the data the gateway received via LoRa on the OLED-display.

      I can show some text on the display but can anyone tell me how to get the actual data onto
      the display?

      Christoph

      posted in Hardware
      hyla
      hyla
    • RE: Get status of connection

      @gohan Hi. I'm actually using it as a sensor node, not as a gateway. I need the WiFi function anyway to connect the sensor to another network device (KEBA Wallbox 🙂 ) and in order not to make things too
      complicated I decided to connect this sensor to Domoticz as a gateway. I could also hook up an NRF module and use that but that would add complexity 😉

      Thing is, connecting a gateway to Domoticz can take a few minutes and sometimes it doesn't work at all.
      So in order to make sure I got the gateway reconnected properly after a nap I have to find out if and
      when reconnection happened. Is there any variable in the MySensors world that lets me find that out?

      Christoph

      posted in Development
      hyla
      hyla
    • Get status of connection

      Hi,

      is it possible to determine the status of a sensor connect?

      I would like to use an ESP8266 module as a gateway/sensor. In order to save air traffic and battery
      I would put the sensor to sleep for most of the time. But I cannot put it to sleep if it hasn't sent its values
      yet, worse: gateway or sensor node may not even have connected yet to my controller.

      So, can I somehow get these informations from MySensors by code? I know of course that informations
      about this are sent to the terminal when debugging mode is used. But I've got no idea how to get this
      data... some variable somewhere I can check? How would You do something like that?

      Thanks,
      Christoph

      posted in Development
      hyla
      hyla
    • RE: Max. Number of Children?

      @gohan

      Yes, they are/were.
      Alas, case solved... I have lost a line of code somehow. Which in this case meant that
      presentation was done correctly but these "missing values" were never actually sent,
      thereby keepin Domoticz from accepting them (seems every parameter to be recognized
      must actually have been sent once).
      Anyway, sorry for bothering You and thanks again,

      Christoph

      posted in Domoticz
      hyla
      hyla
    • RE: Max. Number of Children?

      Hi,

      of the 35 CHILD_IDs that are presented in my code's "void(presentation)" only 25 are actually recognized as new devices in Domoticz's Setup/Devices menu. Those 25 devices can be properly
      added and appear under the "Utility" tab which is okay for now. The rest never shows up. Which is a
      pity because those values are the most needed ones 😉

      If I take a look at the gateway in Setup/Hardware/(my gate)/Setup I am shown 27 entries one of which
      is the ID 255 (S_ARDUINO_NODE). One is another child ID (32) that was seen recently but strangely
      is not shown in the list of new found devices.

      Ideas, anyone?

      Thanks,
      Christoph

      posted in Domoticz
      hyla
      hyla
    • Max. Number of Children?

      Hi,

      does anybody here happen to know how many children per node are supported by Domoticz?
      I'm trying to get data from a KEBA wallbox into Domoticz. For that I am using an ESP8266 NodeMCU module which doubles as a gateway to Domoticz and a parser for the wallbox data which is sent by UDP.
      So far there are 33 children/values but during presentation only 25 of these are recognized by Domoticz.

      Is there a limit to the number of children per node? Or am I being stupid somehow?
      .And if there is indeed a limit: any easy work-around for this in MySensors?

      Thanks,
      Christoph

      posted in Domoticz
      hyla
      hyla