Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
S

SiLeX

@SiLeX
About
Posts
28
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Looking for reliable PIR human detection sensors
    S SiLeX

    Oh, I didn't know they perform so "bad" in real-life applications. I would love to stay informed so it would be awesome if you could post your success-story here if you got it :) Very interesting topic indeed.

    Good luck!

    Hardware

  • Looking for reliable PIR human detection sensors
    S SiLeX

    I understand. There is also a relatively new infrared array sensor, that has a much higher resolution than the default PIR sensors and will be able to detect temperature differences over 64 separate fields and thus human presence.

    Here is a link to a typically slightly more expensive but easy-to-prototype breakout board from Sparkfun with the Grid-Eye: https://www.sparkfun.com/products/14607

    Might be worth a shot. I am planning to use this for detecting presence without the need for the occupants to be in motion regularly (office spaces, living rooms, etc).

    Grid-eye information: https://www.mouser.de/new/panasonic/panasonic-grid-eye-infrared-array-sensors/

    Hardware

  • Looking for reliable PIR human detection sensors
    S SiLeX

    If you are going to try a z-wave multisensor, you should look into getting a Fibaro FGMS-001 (https://www.fibaro.com/en/products/motion-sensor/). I tried the Aeotec and the Fibaro and the settings of the Fibaro are way richer. There are 3 settings to tune the PIR detection so that might be interesting to you. Also I never had to change batteries in 2 years.

    Hardware

  • Managing the color of multiple RGB LED nodes
    S SiLeX

    You can link multiple things (or thing channels) to the same item in openHAB. Simply create one single ColorItem and separate all channels with commas.

    Working example:

    Color aacc_color "Mysensors LED Lights" (lights) {channel="mysensors:rgbLight:bridge:drawer_lights:rgb,mysensors:rgbLight:bridge:desk_lights:rgb"}
    
    OpenHAB

  • Vs2015+Visual Micro + MySensors
    S SiLeX

    I can absolutely confirm this with VS2015, Visual Micro and MySensors 2.1.1. This is clearly a kind of merging, that is done by Visual Micro.

    All includes have to be made BEFORE the first line of code is executed. The initialization of your SENSOR_ANALOG_PINS array is such a line of code.

    Just posting it to keep it visible and well-scored at search engines, as this is SOLVED and works fine. Thank you!

    Development

  • Call to begin function hangs arduino
    S SiLeX

    I can confirm that the Arduino hangs at the init, if it cannot communicate with the nRF24L01+.

    Often had that "issue" when I accidentally disconnected the MOSI cable and the communcation was broken. There seems to be no timeout though. If you enable the MySensors debugging, you will see radio init... on your serial line.

    I now use this behaviour as a kind of self-test. In the setup() of my sketches, I turn on an LED, do the radio init and turn it off afterwards. If it stays on, I know there is something wrong with the radio. Without even connecting a single serial cable.

    Maybe you can use it this way, too.

    Just to clarify: The hang will not happen if you have a bad radio range. It will only happen if the local communcation through SPI fails.

    Troubleshooting hang arduino nrf24l01+

  • MySensor collides with LowPower's SLEEP_ enum
    S SiLeX

    @Lemme said:

    Wondering if it is still limited to 8 seconds. Or if I have to do some sort of loop/counting to make it sleep for several minutes or more

    If you need longer intervals, you should use SLEEP_FOREVER and attach a Timer interrupt beforehand. Pseudocode would look like this:

    loop(){
    ...
    attachInterrupt(Timer1, 600000, dummy_function) // wake up every 10 minutes
    gw.powerDown(SLEEP_FOREVER, ADC_OFF, BOD_OFF)
    detachInterrupt(Timer1) // disable so we don't interrupt ourselves
    
    .... do things, send data, and so on ......
    
    }
    
    void dummy_function(){
    // this does nothing, but interrupt need something to call, so we make a dummy function
    // this will return immediately to the loop() again
    }
    

    This is best-practise for things that are not real-time-based (like encoder wheels). Using the normal loop makes it possible to use all the millis() and other time-based functions you wouldn't be able to use withing interrupt calls.

    By the way - in YOUR case, when you don't want to receive anything on the sensor node while sleeping, using the MySensors Sleep function is perfectly fine. This thread focuses on using it with other interrupts than Timers.

    Bug Reports lowpower

  • openHAB 2.0 binding
    S SiLeX

    @TimO said:

    Something I plan to do, is adding the ACK functionality to the binding, so if no ACK is received the command is repeated for 5 times or so.

    +1 for the ack functionality. In my opinion this is a Transport-Layer functionality and should be built into the gateway (Arduino or whatever) itself. But the main developer doesn't like the idea because he is fearful that the serial buffer (or even an arduino queue system) will be unable queue enough messages while resends happen.

    On the other hand: we have plenty of RAM on our openhab hosts, so your idea seems like it will solve the problem completely, because we could even react on continous fails with putting the device offline (or whatever the openhab2 terms are for this) :grin:

    OpenHAB

  • [Tutorial] openHAB with serial gateway
    S SiLeX

    @nikos1671 In case of unhandled messages (when there is no openhab item assigned to this nodeID;childID;-combination in your sensorToItemsMap), they will just be ignored (and print the data field).
    This happens here in the code: https://gist.github.com/gersilex/13f39b3419427b35636a#file-default-rules-L211

    This will look like this:

    3;255;4;0;0;FFFFFFFFFFFFFFFF0300
    No item matches nodeId=3, childId=255. Data received: FFFFFFFFFFFFFFFF0300
    

    However, this was never tested with debugging enabled on the Gateway. This is why I asked you to disable debugging and recompile/reupload the code to your gateway arduino without the DEBUG flag inside MyConfig.h.

    There is a know problem which is not catched currently:

    • Data can only be decoded, if the String has exactly 6 fields, seperated by a semicolon.

    Please go and try to disable the DEBUG on your gateway arduino.

    OpenHAB

  • [Tutorial] openHAB with serial gateway
    S SiLeX

    Hey guys, on my Raspberry Pi 2 the first rule execution takes about 15 seconds. If you have changed the rules file, the xtent logic has to be re-compiled to java code again. But after the first rule execution it takes only about 10-50ms for execution.

    Also, @nikos1671 I would turn off the DEBUG mode on your gateway. Receiving data works and this is what you would debug. You see incoming data without debug, too so you can securely get rid of it :grin:

    OpenHAB

  • Strange behaviour on RGB Led and Arduino Pro Mini 3.3V
    S SiLeX

    I don't know this specific model, but I can recommend you to use TTL (logic level) types, which are to be used with 5V logic. I use the IRLZ34N with my 5V Arduino UNO and 12V common-Anode RGB Strip of 10 Meters without any issues ever since.

    Always go and try to study the data sheet. You don't need to understand the graphs, but you really should understand the voltages between gate and source and how they work together.

    Hardware

  • lights Ladders
    S SiLeX

    If you want to have them turn on and off one after the other (like in the video), you would have to use a dimmable shift register / io expander and feed in PWM for every single light (or stair).

    It might be easier to use addressable LEDs. I only know the RGB LEDs, but they are also available in white: https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=ws2812b+pixel

    This way you only need one line of cabling and can put power and data in from one end of the cabling. Of course, they can also be dimmed and everything you can imagine. Libraries for common languages and Arduino are available (for example @ adafruit).

    Troubleshooting

  • Controlling central heating, TV, lights and boiler over the internet
    S SiLeX

    what about https://forum.arduino.cc/index.php?topic=232248.0 ?

    My Project

  • [Tutorial] openHAB with serial gateway
    S SiLeX

    I also would like to share my working default.rules + examples with you. Hope it can help someone.

    https://gist.github.com/gersilex/13f39b3419427b35636a

    OpenHAB

  • MyNetSensors - Web Controller
    S SiLeX

    Very impressive! I will definately give this a try. Though it may not fit as a central automation system for me, the Observe Nodes and the automatic discovery and history graphs look promising! :)

    Thank you for this!

    edit: too bad this is written in C# and Windows-exclusive

    Controllers mynetsensors controller

  • German speaking members
    S SiLeX

    :sunglasses: :+1:

    General Discussion

  • openHAB 2.0 binding
    S SiLeX

    @TimO said:

    Search for "org.openhab.binding.mysensors" and mark it

    Unfortunately I cannot find this in the list. I already added your fork as upstream master and pulled it. Anything else to change in there?snapshot1.png

    edit: solved by throwing away the openhab2 dev repo and cloning @TimO 's repo richt after installing the OpenHAB IDE. Alternatively you can create a new workspace and import/clone @TimO 's repo from there.

    Run a product stays empty, interesting files are in addons/binding/org.openhab.binding.mysensors/ESH-INF/thing/

    OpenHAB

  • MySensor collides with LowPower's SLEEP_ enum
    S SiLeX

    @rvendrame said:

    Adding my two cents, if you keep radio always on and only sleep arduino, at the end of day you didn't save too much, as the radio is usually the most power consuming in the equation...

    Thanks for you answer. I am receiving IR commands over MySensors and need to react on them (with IRLib) in realtime. This is a big, 5V Arduino Uno. Interestingly it saves a lot of power if I PowerDown the Arduino. I did this with the RF24Network library in the past and it saved a lot.

    Maybe the temporary way could be waking up and requesting every 2 seconds or so. But I would really like to use the LowPower lib again.

    Bug Reports lowpower

  • Serial Gateway 1.5 - LEDs not working any more
    S SiLeX

    @Meister_Petz Did you uncomment #WITH_LEDS_BLINKING in the Arduino/libraries/MySensors/MyConfig.h (here) ?

    You could also try to uncomment the INVERSE definition (here). This will light up all LEDs, and turn the off when something is happenind. At least for debugging this could be useful.

    If you using mysensors from the development branch, watch out, because the #define names have changed (here).

    Development

  • openHAB 2.0 binding
    S SiLeX

    Hi @TimO . Great work so far. I'd like to join in and extend your module with a lot more S_ and V_ types. Your Github repo code was updated 3 months ago. Do you want to push your commits so I can fork it?

    Also another question: Do I need something special or is the default OpenHAB 2 IDE as described on the OpenHAB2 page enough to start?

    OpenHAB
  • Login

  • Don't have an account? Register

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