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. Controllers
  3. OpenHAB
  4. Help needed to beginner

Help needed to beginner

Scheduled Pinned Locked Moved OpenHAB
8 Posts 4 Posters 3.0k Views 4 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.
  • T Offline
    T Offline
    TommiP
    wrote on last edited by
    #1

    Re: openHAB 2.0 binding

    Hi
    I have openHAB 2 latest snapshot installed on Raspberry Pi 3 model B. I have installed MySensors Binding for OpenHAB 2.x as described in here:
    https://github.com/tobof/openhab2-addons/wiki/Installation
    MySensors binding can be found from openHAB PaperUI.
    My Problem is that I can't get gateway working. I have connected NRF24L01+ and installed gateway as described in here:
    https://www.mysensors.org/build/raspberry

    My questions are:

    1. should I leave gateway to ethernet or change it to serial?
    2. which one should I choose in openHAB binding, serial or ethernet gateway?
    3. should I run some of these commands during gateway installation:

    -"By default, the gateway is built for ethernet and it listens on port 5003:
    ./configure --my-gateway=ethernet --my-port=5003

    -To set the gateway as a client that connects to a controller, use:
    ./configure --my-gateway=ethernet --my-controller-url-address=YOUR-CONTROLLER-ADDRESS
    or
    ./configure --my-gateway=ethernet --my-controller-ip-address=YOUR-CONTROLLER-IP

    Br
    Tommi

    keldandorinK 1 Reply Last reply
    0
    • T TommiP

      Re: openHAB 2.0 binding

      Hi
      I have openHAB 2 latest snapshot installed on Raspberry Pi 3 model B. I have installed MySensors Binding for OpenHAB 2.x as described in here:
      https://github.com/tobof/openhab2-addons/wiki/Installation
      MySensors binding can be found from openHAB PaperUI.
      My Problem is that I can't get gateway working. I have connected NRF24L01+ and installed gateway as described in here:
      https://www.mysensors.org/build/raspberry

      My questions are:

      1. should I leave gateway to ethernet or change it to serial?
      2. which one should I choose in openHAB binding, serial or ethernet gateway?
      3. should I run some of these commands during gateway installation:

      -"By default, the gateway is built for ethernet and it listens on port 5003:
      ./configure --my-gateway=ethernet --my-port=5003

      -To set the gateway as a client that connects to a controller, use:
      ./configure --my-gateway=ethernet --my-controller-url-address=YOUR-CONTROLLER-ADDRESS
      or
      ./configure --my-gateway=ethernet --my-controller-ip-address=YOUR-CONTROLLER-IP

      Br
      Tommi

      keldandorinK Offline
      keldandorinK Offline
      keldandorin
      wrote on last edited by
      #2

      @TommiP Got the same config Rpi3 model B with open hab 2. I use this config and it can connect to gateway on same box. Ehternet is whats supported with OpenHaB

      ./configure --my-gateway=ethernet --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18 --my-transport=nrf24 --my-rf24-irq-pin=15
      If you run it in debug mode what is the output then?

      I dont get my nodes to connect to Gateway atm but everything else looks like it works.
      /Håkan

      T 1 Reply Last reply
      1
      • keldandorinK keldandorin

        @TommiP Got the same config Rpi3 model B with open hab 2. I use this config and it can connect to gateway on same box. Ehternet is whats supported with OpenHaB

        ./configure --my-gateway=ethernet --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18 --my-transport=nrf24 --my-rf24-irq-pin=15
        If you run it in debug mode what is the output then?

        I dont get my nodes to connect to Gateway atm but everything else looks like it works.
        /Håkan

        T Offline
        T Offline
        TommiP
        wrote on last edited by
        #3

        @keldandorin
        If you mean by debug this:
        pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d
        it gives endlessly this:
        mysgw: accept: Bad file descriptor

        I think this problem has something to do with Rpi3 and GPIO uart/serial problem described in here?:
        http://spellfoundry.com/2016/05/29/configuring-gpio-serial-port-raspbian-jessie-including-pi-3/
        and here?:
        http://raspberrypi.stackexchange.com/questions/45570/how-do-i-make-serial-work-on-the-raspberry-pi3
        Br
        Tommi

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          Gpio serial problem should not have anything to do with that if you are using ethernet gateway. I'm on rpi3 and I followed the guide and it worked fine.

          T 1 Reply Last reply
          0
          • gohanG gohan

            Gpio serial problem should not have anything to do with that if you are using ethernet gateway. I'm on rpi3 and I followed the guide and it worked fine.

            T Offline
            T Offline
            TommiP
            wrote on last edited by
            #5

            @gohan

            Ok, good to know, Thanks for information gohan.
            When you installed gateway, did you run these commands?:
            ./configure --my-gateway=ethernet --my-controller-url-address=YOUR-CONTROLLER-ADDRESS
            or
            ./configure --my-gateway=ethernet --my-controller-ip-address=YOUR-CONTROLLER-IP

            Br
            Tommi

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #6

              I don't think I specified those ip or URL addresses, I need to check in my notes

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TommiP
                wrote on last edited by
                #7

                Ok, now I got gateway working and openHAB 2 latest snapshot reading temperature sensor. Only thing did not work automatically was Thing auto discovery in openHAB. I needed manually add things ( MySensors Ethernet Gateway and Temperature Sensor).
                Temperature sensor Node ID and Child ID needed to be checked from log and manually put in Thing settings.
                Ethernet Gateway needed also IP 127.0.0.1 manually put in.

                This is what I made:

                • install fresh openHABian to Rpi3
                • update openhab to latest snapshot
                • install MySensors gateway, stop installation commands after:
                  To install run:
                  sudo make install
                • install MySensors openhab 2 binding
                • manually added things (with values) in openhab

                Br
                Tommi

                ben999B 1 Reply Last reply
                0
                • T TommiP

                  Ok, now I got gateway working and openHAB 2 latest snapshot reading temperature sensor. Only thing did not work automatically was Thing auto discovery in openHAB. I needed manually add things ( MySensors Ethernet Gateway and Temperature Sensor).
                  Temperature sensor Node ID and Child ID needed to be checked from log and manually put in Thing settings.
                  Ethernet Gateway needed also IP 127.0.0.1 manually put in.

                  This is what I made:

                  • install fresh openHABian to Rpi3
                  • update openhab to latest snapshot
                  • install MySensors gateway, stop installation commands after:
                    To install run:
                    sudo make install
                  • install MySensors openhab 2 binding
                  • manually added things (with values) in openhab

                  Br
                  Tommi

                  ben999B Offline
                  ben999B Offline
                  ben999
                  wrote on last edited by
                  #8

                  @TommiP
                  From my experience the node has to be "rebooted" while openhab2 is discovery mode for new devices in that binding...
                  Just press "rest" button on your arduino
                  Works every time!

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


                  20

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