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
E

Eduard Iten

@eiten
Unfollow Follow
About
Posts
115
Topics
12
Shares
0
Groups
0
Followers
1
Following
2

Posts

Recent Best Controversial

  • Pinging other MySensors fans
    E eiten
    General Discussion

    @nick-willis Thanks for the plots—I won't ask what kind of sensors you've got running in the bedroom and the toilet! :)

    Things look a bit better here in Switzerland—local shops like bastelgarage.ch usually have the CubeCells in stock for around CHF 22. That said, I have to admit I normally order them straight from China for $7–9.

    As I mentioned in my last post: if I were starting a brand-new project from scratch today, I'd probably take a close look at the STM32WL55 instead. The modules are pretty inexpensive—and if you want to stick with the Arduino ecosystem, there is official STM32duino support (including Sub-GHz / LoRaWAN libraries), though I have to admit I've never actually tried it myself, especially not together with MySensors (I run mine under Zephyr).

    If you're genuinely interested in trying out the CubeCells, I'm pretty sure I still have a few lying around—if you'd like, I can drop a board in the mail and send it up north to you.


  • Pinging other MySensors fans
    E eiten
    General Discussion

    @nagelc Glad to hear someone else is actually putting the SX126x libs to good use!

    As for OTA: it depends on which stack you're asking about. In Zephyr, I have OTA running smoothly across several transports—Thread (UDP), CAN, and even over LoRaWAN for a sensor 4 km away on the other side of the valley. Thanks to MCUboot, that works rock-solid.

    With MySensors on nRF52, however, OTA doesn't work out of the box—the stock OTA bootloaders (DualOptiboot and MYSBootloader) are AVR-only. Basically, you'd have two options there:

    1. Use a BLE bootloader (Nordic/Adafruit): You'd need to add a virtual switch or a physical button to write the magic byte into the GPREGRET register and reboot into DFU mode, since MySensors normally runs the radio in ESB (nRF24-compatible) mode rather than BLE.
    2. Custom flash-based OTA: Thanks to the 1 MB of flash on the nRF52840, you could theoretically write a custom bootloader that speaks the MySensors OTA protocol, or integrate MCUboot and adapt the MySensors OTA routines to write the incoming image into slot1 (plus adjust the application start offset and generate the MCUboot image header).

    The real question is whether that's worth the effort just to stay in the Arduino ecosystem. Porting to Zephyr might actually be the cleaner path: you get full RTOS capabilities out of the box, and thinking one step further, it also opens up the LoRa/LoRaWAN route—especially since STM32WL-based silicon (like the Wio-E5 mini or similar modules) is now readily available on affordable, "Arduino-like" dev boards with solid Zephyr support. That said, purely out of nostalgia, I have to admit I'm still a bit tempted to write a custom nRF52 bootloader for MySensors anyway, even if the limited range of nRF24 mode makes it hard to justify from a purely practical standpoint.


  • Pinging other MySensors fans
    E eiten
    General Discussion

    @Nick-Willis sagte:

    Most Arduinos run at 5v so require level shifting for the most part to work with the 3.3v radio. And because of memory requirements it is better to use a Mega not Uno and others unless you just need a single sensor (then I can use the 3.3v Mini and the nice base PCB I found on this forum somewhere).
    I did find an Arduino shield for Mega with the RFM69 radio on it. Perfect it is and makes the hardware simple but that shield is very hard to find and was expensive for what it was.

    Hey! That’s a super interesting setup you've got there—tracking NACK rates as actual sensors to benchmark reliability against Home Assistant's "Unavailable" times is peak home-automation nerdery. Love it!

    Have you ever tried the ASR650x-based boards, like the Heltec CubeCell series?

    They run natively at 3.3V and have the LoRa transceiver (SX1262) built right onto the module, so you completely skip the whole 5V level-shifting headache and wiring mess you get with standalone RFM69s. Plus, you get way more flash and RAM than an ATmega328P, along with ultra-low deep sleep current.

    Full disclosure: I haven't actively developed on them for the past two or three years, so I can't really vouch for the state of their current Arduino core support. However, I still have two CubeCells humming along reliably on my MySensors network today without any drama—so if you're looking for an easy, self-contained sub-GHz hardware option without soldering radio breakouts, they might still be worth a look!

    Cheers,

    Edi


  • Pinging other MySensors fans
    E eiten
    General Discussion

    Hey @mfalkvidd,

    Sorry for the massive delay in getting back to you! You know how it goes—day job, family, late summer madness... I promise to do better.

    Where do I even begin? It all kicked off when I managed to snag two nRF52840-DKs on the cheap. And as the saying goes: when you have a hammer, every problem starts looking like a nail. The nRF52 series is absolute magic when it comes to battery life, and in theory, they’re totally MySensors-compatible. I know the MySensors codebase pretty well, mostly from the LoRa side of things (I contributed the ASR and SX126x drivers back in the day, if memory serves), though I never really dived deep into the nRF24 side.

    Naturally, Zephyr RTOS is the obvious choice for the nRF52, and I’ve become a massive fan of it. Early on, I made a few half-hearted attempts to port MySensors over to Zephyr, but it never really panned out.

    So, I pivoted to Zigbee. However, once you leave the standard clusters behind (like basic temperature or humidity), things get pretty tedious on the controller/backend side. The Nordic Connect SDK also supports Matter over Thread, which runs into the exact same headache for custom payloads. That’s how I finally landed on pure OpenThread—which, remarkably, runs completely fine on the exact same Thread mesh network alongside Matter devices.

    Infrastructure

    Living in a sprawling, 350-year-old Appenzeller house with a huge garden, having multiple Border Routers is a massive upgrade over a single Zigbee coordinator. Packets always find a way home via one route or another.

    I currently have three Border Routers active:

    • Basement: An old slae.sh stick (retired from its former life as a Zigbee coordinator) running an OTBR inside an LXC container on my Proxmox cluster.
    • Roof / Outdoors: Two PoE Border Routers from AliExpress mounted under the bargeboards at opposite ends of the roof.

    Sensors & Actuators

    I’ve got a pretty wide zoo of nodes running now, including a few of rbaron’s b-parasites flashed with custom Thread firmware. Beyond those, I built a pool thermometer, a solar radiation sensor, a rain gauge, and several temp/pressure/humidity nodes.

    They are all built around the EByte E73-2G4M08S1C module and powered in one of two ways:

    1. Directly from a single CR123 (or its LiFePO4 equivalent) with zero voltage regulators.
    2. From 3x AA/AAA cells, adding just an inductor and a capacitor so I can utilize the nRF52’s built-in DC/DC converter.

    On the actuator side, I integrated our rainwater pump house and automated garden/raised-bed irrigation into Thread. Those nodes are beefier, powered either by a 24V PSU or an 8S LiFePO4 battery bank.

    Transport & The MySensors Comparison

    For transport, I usually stick to CoAP. It’s brilliant because downstream messages destined for Sleepy End Devices (SEDs) get buffered by their parent router and fired off the exact millisecond the node wakes up.

    For the pump house, though, I use raw UDP. Inside the pump house, the valves and sensors talk over a CAN bus, and skipping the CoAP overhead makes the latency of my Thread-to-CAN bridge much more predictable. Sadly, it's running without DTLS—I couldn't for the life of me get DTLS working properly in Python (though I verified with openssl that my hardware implementation on the node was solid).

    Compared to the MySensors build experience, the learning curve with Zephyr + OpenThread is definitely steeper—you're trading Arduino-style plug-and-play simplicity for a real-time OS, device trees, and Kconfig. It takes more upfront effort, especially wrap-your-head-around-IPv6 effort, but once it's running, the rock-solid stability, native IPv6 routing, and power profiling tools make it completely worth it.

    Most of my repos are still... uh, let's say "creatively organized." However, if you want to give it a spin, I’d be happy to throw together a clean sample project using CoAP on an nRF52840-DK alongside a matching Python script and push it to my Forgejo server.

    Side note: The most annoying boss fight in this entire setup was getting IPv6 multicast routing to behave properly between the Thread network, my server VLAN, and my IoT VLAN. If you ever go down this rabbit hole and hit a wall there, just ping me—I’m happy to share what worked!

    HTH,

    Edi


  • Pinging other MySensors fans
    E eiten
    General Discussion

    Me to. I have to admit, most of my new sensors use openthread, but I still got some MySensors running.


  • Long time test done with soil sensor!
    E eiten
    My Project

    Wow @Nicklas-Starkel congrats, that sounds great! And thanks for the feedback. Would you mind sharing your setup?
    Regards, Edi


  • Forum Search not working?
    E eiten
    Troubleshooting

    @kamilb85 said in Forum Search not working?:

    No, search is not working

    Confirmed, it's not working for me either...


  • 2x BME 280 on 2x arduino nano hangs in HomeAssistant
    E eiten
    Home Assistant

    Well, I can only imagine that they try to send at the same time. Did you try with slightly different interval times?


  • 2x BME 280 on 2x arduino nano hangs in HomeAssistant
    E eiten
    Home Assistant

    Hello @HJ_SK

    Could you please post the whole sketch in code tags or as an attachement?
    Does it work stable with just one sensor node?
    Could you #define MY_DEBUG, attach at least one sensor to a PC and post the log after they hang?

    Regards, Edi


  • Where to change settings?
    E eiten
    Home Assistant

    Hey @OldSurferDude
    I think we have a missunderstanding here. I have my gateways running on ESP32. When I add the integration I can enter the IP in this dialog:
    2024-07-25 21_05_25-Einstellungen – Home Assistant – Mozilla Firefox.png If you want to change the IP number of the gateway (or the MQTT topic or the serial port), there is no way to do this:
    2024-07-25 21_18_03-Einstellungen – Home Assistant – Mozilla Firefox.png


  • Suddenly a Sensor is Missing, not the whole Node. (RPI Eth Gateway, HA)
    E eiten
    Troubleshooting

    Sorry @se-O-matic , but I can't see any problem. Does the temperature recover with time? I only can imagine that you have a collision on air.


  • Suddenly a Sensor is Missing, not the whole Node. (RPI Eth Gateway, HA)
    E eiten
    Troubleshooting

    Hi @se-O-matic

    can you please post your source code of the node in question?
    You only restarted Home Assistant, not the nodes, correct?

    Thanks and regards, Edi


  • Where to change settings?
    E eiten
    Home Assistant

    Hey @OldSurferDude

    thanks for the info. But I want to know where I can change the IP of the MySensors-TCP-Gateway.

    Regards, Edi


  • MQTT GW on ESP8266 supporting SSL/TLS?
    E eiten
    Development mqtt gw esp8266

    @bgunnarb Thank you for your feedback. I'm very happy that I could help you. And thank you very much for the beer.


  • MQTT GW on ESP8266 supporting SSL/TLS?
    E eiten
    Development mqtt gw esp8266

    @bgunnarb are you on the master or de development branch? In the development brancht, TLS is implemented (check out this) :

    /*
     * Modified by Eric Grammatico <eric@grammatico.me>
     *
     * Added support to secured connexion to mqtt server thanks to WiFiClientSecure class.
     * Please see comments in code. You can look for WiFiClientSecure, MY_GATEWAY_ESP8266_SECURE,
     * MY_MQTT_CA_CERT, MY_MQTT_FINGERPRINT and MY_MQTT_CLIENT_CERT in the code below to see what has
     * changed. No new method, no new class to be used by my_sensors.
     *
     * The following constants have to be defined from the gateway code:
     * MY_GATEWAY_ESP8266_SECURE    in place of MY_GATEWAY_ESP8266 to go to secure connexions.
     * MY_MQTT_CA_CERTx            Up to three root Certificates Authorities could be defined
     *                              to validate the mqtt server' certificate. The most secure.
     * MY_MQTT_FINGERPRINT           Alternatively, the mqtt server' certificate finger print
     *                              could be used. Less secure and less convenient as you'll
     *                              have to update the fingerprint each time the mqtt server'
     *                              certificate is updated
     *                              If neither MY_MQTT_CA_CERT1 nor MY_MQTT_FINGERPRINT are
     *                              defined, insecure connexion will be established. The mqtt
     *                              server' certificate will not be validated.
     * MY_MQTT_CLIENT_CERT           The mqtt server may require client certificate for
     * MY_MQTT_CLIENT_KEY            authentication.
     *
     */
    

    Regards, Edi


  • GatawayESP8266 - Compile error
    E eiten
    General Discussion gatawayesp8266 compile error

    Hi everyone

    Which MySensors lib did you use? The 2.3.2 or the delevopment version? I tried to fix the errors, but they don't appear in the development branch. Only another error which i fixed.

    Regards, Edi


  • GatawayESP8266 - Compile error
    E eiten
    General Discussion gatawayesp8266 compile error

    @OldSurferDude said in GatawayESP8266 - Compile error:

    It appears that MySensors, too, is losing adherents.

    Sad but true, it seems. I'm fighting myself out of a depression, but when I'm a little better, I'll try to fix the ESP8266 support in MySensors.

    Regards, Edi


  • GatawayESP8266 - Compile error
    E eiten
    General Discussion gatawayesp8266 compile error

    hey @OldSurferDude as I wrote in https://forum.mysensors.org/topic/12217/gateways/2?_=1707229400694, it is limited to 2 controllers. The esp8266 can handle many nodes. I had one with 9 or 10 IIRC. Now I got a ESP32 handling 39 nodes without any proplems.


  • Gateways
    E eiten
    Development nano serial gateway tcp gateway mqtt gateway raspberry pi rpi esp8266

    @OldSurferDude well, the ESP8266 is limited to 4 TCP clients in arduino IDE. This can't be really increased. I did som experiments and you can set it up to 15, but after the 5th client on my web server, I got a freeze.

    Maybe you got something wrong. #define MY_GATEWAY_MAX_CLIENTS 2 defines how many controllers (eg Home Assistant) can connect to the gateway, not how many sensors/MySensors devices.

    And yes, you can have multiple TCP gateways in HomeAssistant. I got an NRF24, an RFM95 long range and a RFM95 short range gateway (all based on ESP32) on the same Home Assistant.

    Regards, Edi


  • single-click, double-click, long-press button possible with MySensors?
    E eiten
    General Discussion

    hey @dirkc, maybe you can trigger your interrupt to rising and falling edge and use millis() to see how long the press was?

  • Login

  • Don't have an account? Register

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