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

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Home Automation - multi-sensor nodes

Home Automation - multi-sensor nodes

Scheduled Pinned Locked Moved My Project
8 Posts 5 Posters 13.4k Views 9 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mihai
    wrote on last edited by
    #1

    My Home Automation project use My Sensors 1.5 and Home-Assistant, communicating via MQTT.
    I plan to install in each room several sensors (Gas/Smoke, PIR, Water leak, Temperature, Humidity) and Relays (2 to 4, local control also using IR remote).
    While the project is still beta, I would like to share with you what I have achieved until now, mainly the code for gateway and nodes. The code is here: https://github.com/Mihai258/HomeAssistant-MySensors-MQTT , it contains the standard gateway from MySensor site and modified nodes to use one or several sensors, a lot of combinations are presented. A configuration file for Home-Assistant is also presented, it helps to understand how to manage the messages from MySensors.
    The gateway contains Arduino UNO + Ethernet shield + NRF24, the nodes contains Arduino Nano + NRF24 + sensors.
    I have tested my nodes and they works fine on the table. I will come back with more information and details, but it will take some time to get all components and to build the whole system. I also plan to move to MySensors 1.6 (my tests are on-going here).

    1 Reply Last reply
    1
    • M Offline
      M Offline
      maxtox
      wrote on last edited by
      #2

      please check that out:

      http://forum.mysensors.org/topic/2754/home-automation-node-all-in-one-possible-even-for-noobs-mqtt-node-red-iobroker

      tell me if you want to jump in and we make together a solutuion for comunity!

      Arduino Mega 2560 with iobroker.net (MQTT, node-red, etc..)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mihai
        wrote on last edited by
        #3

        I have updated my project to use MySensors 2.0.0 beta from development branch with the following main changes:

        • MQTT broker is external, you may use mosquitto for example;
        • the Gateway allow sensors; examples included with several sensors on the gateway
        • Arduino Mega may be used for the Gateway and/or nodes; in the Gateway sketch I have mention the connections for NRF24
        • multi-sensor nodes examples.
          I have tested all of them and they are worked.
          The project is presented here: https://github.com/Mihai258/MySensors2-HomeAssistant-MQTT

        @maxtox: my expertise level in IoT is not so high for your project, I am still learning in this area.

        Luke CorkillL 1 Reply Last reply
        1
        • M Mihai

          I have updated my project to use MySensors 2.0.0 beta from development branch with the following main changes:

          • MQTT broker is external, you may use mosquitto for example;
          • the Gateway allow sensors; examples included with several sensors on the gateway
          • Arduino Mega may be used for the Gateway and/or nodes; in the Gateway sketch I have mention the connections for NRF24
          • multi-sensor nodes examples.
            I have tested all of them and they are worked.
            The project is presented here: https://github.com/Mihai258/MySensors2-HomeAssistant-MQTT

          @maxtox: my expertise level in IoT is not so high for your project, I am still learning in this area.

          Luke CorkillL Offline
          Luke CorkillL Offline
          Luke Corkill
          wrote on last edited by
          #4

          @Mihai - thanks for these; nice clear examples of multiple sensors and handling incoming messages

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mihai
            wrote on last edited by
            #5

            My project is in running phase, I posted detailed description of functions, code and pictures on Openhardware site here: https://www.openhardware.io/view/55.

            1 Reply Last reply
            2
            • foad62F Offline
              foad62F Offline
              foad62
              wrote on last edited by
              #6

              Hi,
              I followed your GitHub to set MQTT broker (MySensors 2) but I couldn't succeed. MySensors MQTT Gateway Terminal is saying:
              Attempting MQTT connection...

              I also couldn't undestand the role of mosquitto here because it is not mentioned at the Home Assistant website too!
              Thank you

              M 1 Reply Last reply
              0
              • foad62F foad62

                Hi,
                I followed your GitHub to set MQTT broker (MySensors 2) but I couldn't succeed. MySensors MQTT Gateway Terminal is saying:
                Attempting MQTT connection...

                I also couldn't undestand the role of mosquitto here because it is not mentioned at the Home Assistant website too!
                Thank you

                M Offline
                M Offline
                Mihai
                wrote on last edited by
                #7

                @foad62
                Sorry for late reply... If you use MQTT Gateway you need an MQTT broker. I was using mosquitto as a broker. At HA site they mention it at MQTT component page: https://home-assistant.io/components/mqtt/ but now they also have one internal broker available, so they are many available possibilities.

                1 Reply Last reply
                0
                • Mr6510M Offline
                  Mr6510M Offline
                  Mr6510
                  wrote on last edited by
                  #8

                  @mihai
                  Thanks Mihai, I have been struggling with getting my first basic Home Assistant + MySensors via MQTT working. Your examples got it all going for me. Thanks again for taking the effort to post.

                  1 Reply Last reply
                  1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  69

                  Online

                  12.0k

                  Users

                  11.2k

                  Topics

                  113.4k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

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