Skip to content
  • 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. General Discussion
  3. Complete Beginner with MySensors - questions about relays, MQTT and OpenHAB
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Complete Beginner with MySensors - questions about relays, MQTT and OpenHAB

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 2.6k Views 1 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.
  • HenryWhiteH Offline
    HenryWhiteH Offline
    HenryWhite
    wrote on last edited by
    #1

    Hey guys,

    I'm from germany and started one year ago to automate my house with OpenHAB. One focus I set was to get everything done as cheap as possible.
    Currently I have the following things (among others) connected through OpenHAB on a Raspberry Pi:

    • Ambilight
    • XBMC (Kodi)
    • 433Mhz Wall sockets
    • 433Mhz Garage Door "Hack" (old remote control + relay connected to RPi)
    • 868Mhz temperature/ humidity sensors
    • radiator thermostats
    • (RGB) LED Strips
    • Homeserver (WOL)
    • PC (WOL)

    But now I discovered MySensors and this website seems to be what I have looking for lately! Not only are there nice tutorials, the smart home solutions presented here are also very cheap to realize).
    Especially I want to get rid of 433Mhz connections, because they are unreliable and don't work everytime (more than that, I even can't switch on multiple 433Mhz Wall sockets at the same time)

    I just ordered some Arduino Pro Minis, Motion sensors and relays, so here is my question:

    Let's say I want to hook up a LED Strip to a relay and control this relay by radio with OpenHAB.
    Then I would need to:

    1. Hook up the relay to an Arduino with connected NRF24L01+ 2.4GHz Wireless Transceiver
    2. Build an MQTT gateway with another arduino
    3. Use this tutorial to connect it to my OpenHAB Server --------> Can OpenHAB only display the status values or can it actively send commands to the MQTT gateway? (sending commands would be necessary if I want to control the relay through OpenHAB)

    Is this correct?

    Thank you :)

    DwaltD 1 Reply Last reply
    0
    • T Offline
      T Offline
      tomkxy
      wrote on last edited by
      #2

      @HenryWhite said:

      Can OpenHAB only display the status values or can it actively send commands to the MQTT gateway?

      Yes, you can send commands via MQTT. Have a look at the OpenHab MQTT binding doc. https://github.com/openhab/openhab/wiki/MQTT-Binding

      1 Reply Last reply
      1
      • HenryWhiteH HenryWhite

        Hey guys,

        I'm from germany and started one year ago to automate my house with OpenHAB. One focus I set was to get everything done as cheap as possible.
        Currently I have the following things (among others) connected through OpenHAB on a Raspberry Pi:

        • Ambilight
        • XBMC (Kodi)
        • 433Mhz Wall sockets
        • 433Mhz Garage Door "Hack" (old remote control + relay connected to RPi)
        • 868Mhz temperature/ humidity sensors
        • radiator thermostats
        • (RGB) LED Strips
        • Homeserver (WOL)
        • PC (WOL)

        But now I discovered MySensors and this website seems to be what I have looking for lately! Not only are there nice tutorials, the smart home solutions presented here are also very cheap to realize).
        Especially I want to get rid of 433Mhz connections, because they are unreliable and don't work everytime (more than that, I even can't switch on multiple 433Mhz Wall sockets at the same time)

        I just ordered some Arduino Pro Minis, Motion sensors and relays, so here is my question:

        Let's say I want to hook up a LED Strip to a relay and control this relay by radio with OpenHAB.
        Then I would need to:

        1. Hook up the relay to an Arduino with connected NRF24L01+ 2.4GHz Wireless Transceiver
        2. Build an MQTT gateway with another arduino
        3. Use this tutorial to connect it to my OpenHAB Server --------> Can OpenHAB only display the status values or can it actively send commands to the MQTT gateway? (sending commands would be necessary if I want to control the relay through OpenHAB)

        Is this correct?

        Thank you :)

        DwaltD Offline
        DwaltD Offline
        Dwalt
        wrote on last edited by
        #3

        @HenryWhite You do not need to use MQTT for your gateway, you can use the serial or ethernet gateways as well. You may find them easier to get started with MySensors.

        Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

        1 Reply Last reply
        1
        • HenryWhiteH Offline
          HenryWhiteH Offline
          HenryWhite
          wrote on last edited by
          #4

          @tomkxy @Dwalt thank you for your answers!

          I read that it's better to use the MQTT than the serial gateway - is that the case? and when yes, why?

          thanks!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          10

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 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
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular