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. OpenHAB 2.5 MySensors Serial Gateway - How to install

OpenHAB 2.5 MySensors Serial Gateway - How to install

Scheduled Pinned Locked Moved OpenHAB
23 Posts 10 Posters 13.6k Views 11 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.
  • F FlipFlap3

    Made a reïnstall again and found that something was incomplete and that it didn't work anymore with the stable branche.

    Missing in "initial config" is enabling SPI through raspi-config at the start

    At installing MySensors replace:
    git clone https://github.com/mysensors/MySensors.git --branch master
    with:
    git clone https://github.com/mysensors/MySensors.git --branch development

    echo 'deb http://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list
    Now needs to be:
    echo 'deb https://dl.bintray.com/openhab/apt-repo2 stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list

    sudo wget http://www.oberfoell.com/openhab2/org.openhab.binding.mysensors-2.2.0-SNAPSHOT.jar

    sudo chown openhab:openhab org.openhab.binding.mysensors-2.2.0-SNAPSHOT.jar

    Somehow this next one always times-out the first time. 2nd attempt does give me a connection after a while
    ssh -p 8101 openhab@localhost

    JicJ Offline
    JicJ Offline
    Jic
    wrote on last edited by
    #6

    @flipflap3

    I still have problem with with org.openhab.binding.mysensors-2.2.0-SNAPSHOT.jar and org.openhab.binding.mysensors-2.3.0-SNAPSHOT.jar
    I get always de Mysensors Serial Gateway offline with this error

    2018-03-01 21:36:47.880 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyMySensorsGateway [baudRate:115200]
    2018-03-01 21:36:47.890 [ERROR] [col.serial.MySensorsSerialConnection] - No such port: /dev/ttyMySensorsGateway
    gnu.io.NoSuchPortException: null
    	at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273) [25:com.neuronrobotics.nrjavaserial:3.12.0.OH]
    	at org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialConnection.establishConnection(MySensorsSerialConnection.java:51) [195:org.openhab.binding.mysensors:2.3.0.201802141500]
    	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.connect(MySensorsAbstractConnection.java:148) [195:org.openhab.binding.mysensors:2.3.0.201802141500]
    	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.run(MySensorsAbstractConnection.java:127) [195:org.openhab.binding.mysensors:2.3.0.201802141500]
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
    	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
    	at java.lang.Thread.run(Thread.java:745) [?:?]
    
    

    I back to org.openhab.binding.mysensors-2.1.0-SNAPSHOT.jar and now it's working again. Any ideas?

    Thanks

    F 1 Reply Last reply
    0
    • JicJ Jic

      @flipflap3

      I still have problem with with org.openhab.binding.mysensors-2.2.0-SNAPSHOT.jar and org.openhab.binding.mysensors-2.3.0-SNAPSHOT.jar
      I get always de Mysensors Serial Gateway offline with this error

      2018-03-01 21:36:47.880 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyMySensorsGateway [baudRate:115200]
      2018-03-01 21:36:47.890 [ERROR] [col.serial.MySensorsSerialConnection] - No such port: /dev/ttyMySensorsGateway
      gnu.io.NoSuchPortException: null
      	at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:273) [25:com.neuronrobotics.nrjavaserial:3.12.0.OH]
      	at org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialConnection.establishConnection(MySensorsSerialConnection.java:51) [195:org.openhab.binding.mysensors:2.3.0.201802141500]
      	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.connect(MySensorsAbstractConnection.java:148) [195:org.openhab.binding.mysensors:2.3.0.201802141500]
      	at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.run(MySensorsAbstractConnection.java:127) [195:org.openhab.binding.mysensors:2.3.0.201802141500]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
      	at java.lang.Thread.run(Thread.java:745) [?:?]
      
      

      I back to org.openhab.binding.mysensors-2.1.0-SNAPSHOT.jar and now it's working again. Any ideas?

      Thanks

      F Offline
      F Offline
      FlipFlap3
      wrote on last edited by
      #7

      @jic Nope sry, BUT.. I am going to do a fresh install again today. Will check if I can get it to work and make updates to this howto where needed.

      1 Reply Last reply
      1
      • F Offline
        F Offline
        FlipFlap3
        wrote on last edited by FlipFlap3
        #8

        2.3 snapshot doesn't work. 2.2 does

        Updated opening post for step by step instruction on installing openhab2.2 with mysensors 2.2 serial gateway binding. If you have any questions, just post them here.

        1 Reply Last reply
        0
        • JicJ Offline
          JicJ Offline
          Jic
          wrote on last edited by
          #9

          Seem it's working know.

          Thanks

          1 Reply Last reply
          0
          • F Offline
            F Offline
            FrozenYack
            wrote on last edited by FrozenYack
            #10

            I am trying to follow these instructions to set up OpenHab with the MySensors Serial Gateway, but ran into a problem when installing the Java (Third command.). Here is a copy of the command and error:

            pi@openhabpi:~ $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
            Executing: /tmp/apt-key-gpghome.3nAEDiCNLy/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
            gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
            gpg: connecting dirmngr at '/tmp/apt-key-gpghome.3nAEDiCNLy/S.dirmngr' failed: No such file or directory
            gpg: keyserver receive failed: No dirmngr

            Please let me know if I missed something.

            BTW, this is using the raspbian stretch lite version, dated 2018-03-13.

            Thank you!

            F 1 Reply Last reply
            0
            • G Offline
              G Offline
              GreyLinux
              wrote on last edited by
              #11

              @FlipFlap3
              Firstly well done for the brilliant instructions . I too have been attempting to use Openhab with my sensors over the last year and to be honest although I've had relative success, because of the limited amount of, up to date and accurate tutorials its been a steep slope to climb. Currently I have Openhabian installed on a Raspberry pi with a Gateway connected to the I/O pins of the Pi and a couple of temp sensors connected ( all be it with difficulty ). It's setup as an Ethernet Gateway but I did try once to setup it up as a serial gateway, unsuccessfully I might add. Out of interest if I did re- install using your setup instructions, Is a serial Gateway better or easier in any way ? it does seem like the most supported option of the 3 for most people on the forum .

              F 1 Reply Last reply
              0
              • F FrozenYack

                I am trying to follow these instructions to set up OpenHab with the MySensors Serial Gateway, but ran into a problem when installing the Java (Third command.). Here is a copy of the command and error:

                pi@openhabpi:~ $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
                Executing: /tmp/apt-key-gpghome.3nAEDiCNLy/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
                gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
                gpg: connecting dirmngr at '/tmp/apt-key-gpghome.3nAEDiCNLy/S.dirmngr' failed: No such file or directory
                gpg: keyserver receive failed: No dirmngr

                Please let me know if I missed something.

                BTW, this is using the raspbian stretch lite version, dated 2018-03-13.

                Thank you!

                F Offline
                F Offline
                FlipFlap3
                wrote on last edited by
                #12

                @frozenyack Sorry, I can't remember seeing an error like that before.

                1 Reply Last reply
                0
                • G GreyLinux

                  @FlipFlap3
                  Firstly well done for the brilliant instructions . I too have been attempting to use Openhab with my sensors over the last year and to be honest although I've had relative success, because of the limited amount of, up to date and accurate tutorials its been a steep slope to climb. Currently I have Openhabian installed on a Raspberry pi with a Gateway connected to the I/O pins of the Pi and a couple of temp sensors connected ( all be it with difficulty ). It's setup as an Ethernet Gateway but I did try once to setup it up as a serial gateway, unsuccessfully I might add. Out of interest if I did re- install using your setup instructions, Is a serial Gateway better or easier in any way ? it does seem like the most supported option of the 3 for most people on the forum .

                  F Offline
                  F Offline
                  FlipFlap3
                  wrote on last edited by
                  #13

                  @greymarvel said in OpenHAB 2.2 MySensors Serial Gateway - How to install:

                  @FlipFlap3
                  Firstly well done for the brilliant instructions . I too have been attempting to use Openhab with my sensors over the last year and to be honest although I've had relative success, because of the limited amount of, up to date and accurate tutorials its been a steep slope to climb. Currently I have Openhabian installed on a Raspberry pi with a Gateway connected to the I/O pins of the Pi and a couple of temp sensors connected ( all be it with difficulty ). It's setup as an Ethernet Gateway but I did try once to setup it up as a serial gateway, unsuccessfully I might add. Out of interest if I did re- install using your setup instructions, Is a serial Gateway better or easier in any way ? it does seem like the most supported option of the 3 for most people on the forum .

                  Thanks

                  Sorry for late response (busy with anual reporting lately).

                  I have tried MTTQ first myself, but I didn't get things working smoothly. 2nd attempt was with serial gateway. Even though I had some problems at first, I did manage to get it working. I had a hard time finding a good tutorial though, so I wrote down the steps I took carefully. Reason for me to put it here was to have a personal backup for my notes and if it would be helpful for anyone else that would be an awesome bonus ;-)

                  I didn't try ethernet gateway yet cause I am happy with the current setup.

                  1 Reply Last reply
                  0
                  • joaoabsJ Offline
                    joaoabsJ Offline
                    joaoabs
                    wrote on last edited by joaoabs
                    #14

                    Hi,

                    The mysgw seems to be creating a link to the wrong TTY.
                    When I connect the arduino gateway, I get the /dev/ttyUSB1 device.

                    Insert Code Herepi@nettemp:~/MySensors $ ls /dev/tty*
                    /dev/tty    /dev/tty15  /dev/tty22  /dev/tty3   /dev/tty37  /dev/tty44  /dev/tty51  /dev/tty59  /dev/tty9
                    /dev/tty0   /dev/tty16  /dev/tty23  /dev/tty30  /dev/tty38  /dev/tty45  /dev/tty52  /dev/tty6   /dev/ttyAMA0
                    /dev/tty1   /dev/tty17  /dev/tty24  /dev/tty31  /dev/tty39  /dev/tty46  /dev/tty53  /dev/tty60  /dev/ttyUSB0
                    /dev/tty10  /dev/tty18  /dev/tty25  /dev/tty32  /dev/tty4   /dev/tty47  /dev/tty54  /dev/tty61  /dev/ttyUSB1
                    /dev/tty11  /dev/tty19  /dev/tty26  /dev/tty33  /dev/tty40  /dev/tty48  /dev/tty55  /dev/tty62  /dev/ttyprintk
                    /dev/tty12  /dev/tty2   /dev/tty27  /dev/tty34  /dev/tty41  /dev/tty49  /dev/tty56  /dev/tty63
                    /dev/tty13  /dev/tty20  /dev/tty28  /dev/tty35  /dev/tty42  /dev/tty5   /dev/tty57  /dev/tty7
                    /dev/tty14  /dev/tty21  /dev/tty29  /dev/tty36  /dev/tty43  /dev/tty50  /dev/tty58  /dev/tty8
                    
                    

                    Then I start the mysgw and a new tty is created: "/dev/ttyMySensorsGateway", which looks nice. However, the mysgw returns lots of errors:

                    mysgw: Starting gateway...
                    mysgw: Protocol version - 2.2.0
                    mysgw: Serial port /dev/ttyMySensorsGateway (115200 baud) created
                    mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0
                    mysgw: TSF:LRT:OK
                    mysgw: TSM:INIT
                    mysgw: TSF:WUR:MS=0
                    mysgw: !TSM:INIT:TSP FAIL
                    mysgw: TSM:FAIL:CNT=1
                    mysgw: TSM:FAIL:DIS
                    mysgw: TSF:TDI:TSL
                    mysgw: TSM:INIT
                    mysgw: !TSM:INIT:TSP FAIL
                    mysgw: TSM:FAIL:CNT=2
                    mysgw: TSM:FAIL:DIS
                    mysgw: TSF:TDI:TSL
                    

                    Then I go check what is wrong an I see the pointer wasn't created towards "/dev/ttyUSB1", but "/dev/pts/1":

                    pi@nettemp:~/MySensors $ ls -larth /dev/ttyMySensorsGateway 
                    lrwxrwxrwx 1 root root 10 Apr 26 18:27 /dev/ttyMySensorsGateway -> /dev/pts/1
                    

                    Taking a look into the /dev/ttyUSB1 directly I can see it is fine, the problem is the GW software on the Raspberry PI that is pointing towards the wrong tty:

                    pi@nettemp:~ $ stty -F /dev/ttyUSB1 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
                    pi@nettemp:~ $ cat /dev/ttyUSB1 
                    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0
                    0;255;3;0;9;0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0
                    0;255;3;0;9;26 SGN:PER:OK
                    0;255;3;0;9;64 SGN:INI:BND OK
                    0;255;3;0;9;67 TSM:INIT
                    0;255;3;0;9;69 TSF:WUR:MS=0
                    0;255;3;0;9;77 TSM:INIT:TSP OK
                    0;255;3;0;9;79 TSM:INIT:GW MODE
                    0;255;3;0;9;82 TSM:READY:ID=0,PAR=0,DIS=0
                    0;255;3;0;9;87 MCO:REG:NOT NEEDED
                    0;255;3;0;14;Gateway startup complete.
                    0;255;0;0;18;2.2.0
                    0;255;3;0;9;91 MCO:BGN:STP
                    0;255;3;0;9;98 MCO:BGN:INIT OK,TSP=1
                    

                    Any idea of how to make this work?

                    Where can I see the alternatives for the "
                    ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my-rf24-channel=69 --my-transport=nrf24 --my-serial-groupname=tty --my-config-file=/etc/mysensors.dat" command?

                    Thanks,

                    F 1 Reply Last reply
                    1
                    • joaoabsJ joaoabs

                      Hi,

                      The mysgw seems to be creating a link to the wrong TTY.
                      When I connect the arduino gateway, I get the /dev/ttyUSB1 device.

                      Insert Code Herepi@nettemp:~/MySensors $ ls /dev/tty*
                      /dev/tty    /dev/tty15  /dev/tty22  /dev/tty3   /dev/tty37  /dev/tty44  /dev/tty51  /dev/tty59  /dev/tty9
                      /dev/tty0   /dev/tty16  /dev/tty23  /dev/tty30  /dev/tty38  /dev/tty45  /dev/tty52  /dev/tty6   /dev/ttyAMA0
                      /dev/tty1   /dev/tty17  /dev/tty24  /dev/tty31  /dev/tty39  /dev/tty46  /dev/tty53  /dev/tty60  /dev/ttyUSB0
                      /dev/tty10  /dev/tty18  /dev/tty25  /dev/tty32  /dev/tty4   /dev/tty47  /dev/tty54  /dev/tty61  /dev/ttyUSB1
                      /dev/tty11  /dev/tty19  /dev/tty26  /dev/tty33  /dev/tty40  /dev/tty48  /dev/tty55  /dev/tty62  /dev/ttyprintk
                      /dev/tty12  /dev/tty2   /dev/tty27  /dev/tty34  /dev/tty41  /dev/tty49  /dev/tty56  /dev/tty63
                      /dev/tty13  /dev/tty20  /dev/tty28  /dev/tty35  /dev/tty42  /dev/tty5   /dev/tty57  /dev/tty7
                      /dev/tty14  /dev/tty21  /dev/tty29  /dev/tty36  /dev/tty43  /dev/tty50  /dev/tty58  /dev/tty8
                      
                      

                      Then I start the mysgw and a new tty is created: "/dev/ttyMySensorsGateway", which looks nice. However, the mysgw returns lots of errors:

                      mysgw: Starting gateway...
                      mysgw: Protocol version - 2.2.0
                      mysgw: Serial port /dev/ttyMySensorsGateway (115200 baud) created
                      mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0
                      mysgw: TSF:LRT:OK
                      mysgw: TSM:INIT
                      mysgw: TSF:WUR:MS=0
                      mysgw: !TSM:INIT:TSP FAIL
                      mysgw: TSM:FAIL:CNT=1
                      mysgw: TSM:FAIL:DIS
                      mysgw: TSF:TDI:TSL
                      mysgw: TSM:INIT
                      mysgw: !TSM:INIT:TSP FAIL
                      mysgw: TSM:FAIL:CNT=2
                      mysgw: TSM:FAIL:DIS
                      mysgw: TSF:TDI:TSL
                      

                      Then I go check what is wrong an I see the pointer wasn't created towards "/dev/ttyUSB1", but "/dev/pts/1":

                      pi@nettemp:~/MySensors $ ls -larth /dev/ttyMySensorsGateway 
                      lrwxrwxrwx 1 root root 10 Apr 26 18:27 /dev/ttyMySensorsGateway -> /dev/pts/1
                      

                      Taking a look into the /dev/ttyUSB1 directly I can see it is fine, the problem is the GW software on the Raspberry PI that is pointing towards the wrong tty:

                      pi@nettemp:~ $ stty -F /dev/ttyUSB1 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
                      pi@nettemp:~ $ cat /dev/ttyUSB1 
                      0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0
                      0;255;3;0;9;0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGAS--,VER=2.2.0
                      0;255;3;0;9;26 SGN:PER:OK
                      0;255;3;0;9;64 SGN:INI:BND OK
                      0;255;3;0;9;67 TSM:INIT
                      0;255;3;0;9;69 TSF:WUR:MS=0
                      0;255;3;0;9;77 TSM:INIT:TSP OK
                      0;255;3;0;9;79 TSM:INIT:GW MODE
                      0;255;3;0;9;82 TSM:READY:ID=0,PAR=0,DIS=0
                      0;255;3;0;9;87 MCO:REG:NOT NEEDED
                      0;255;3;0;14;Gateway startup complete.
                      0;255;0;0;18;2.2.0
                      0;255;3;0;9;91 MCO:BGN:STP
                      0;255;3;0;9;98 MCO:BGN:INIT OK,TSP=1
                      

                      Any idea of how to make this work?

                      Where can I see the alternatives for the "
                      ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway --my-rf24-channel=69 --my-transport=nrf24 --my-serial-groupname=tty --my-config-file=/etc/mysensors.dat" command?

                      Thanks,

                      F Offline
                      F Offline
                      FlipFlap3
                      wrote on last edited by FlipFlap3
                      #15

                      @joaoabs

                      I had to re-install myself and found my how to wasn't 100% correct for OpenHAB 2.4 so I updated it.

                      Works with OpenHAB 2.4 and @TimO 's 2.4 jar. Kudos to him for this!

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        nizoo91
                        wrote on last edited by nizoo91
                        #16

                        My god, had everything almost working and now my PaperUI disappeared on me for the 2nd time.....

                        I was trying to remove and reinstall MySensors but this is the second time this happens to me :/ I don't want to re-install everything again! Any ideas on how I can get the paperUI back?

                        I tried removing my "addons.config" from "/var/lib/openhab2/config/org/openhab"
                        didn't help, also opened it and it didn't have the paperui option, manually added it and still didn't work :(

                        I am about to give up on OpenHab lol, is there any easier controller to setup? I heard good things about Domoticz but I JUST got OH to kinda work! I was just receiving the wrong values and thought it could of been because of some errors, so decided to re-compile MySensors and install it again.. and then poooof, the whole UI isn't there anymore :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm:

                        EDIT: oh great, even more stuff disappeared, now I only have HOMEBUILDER left! :man-facepalming:

                        T 1 Reply Last reply
                        0
                        • N nizoo91

                          My god, had everything almost working and now my PaperUI disappeared on me for the 2nd time.....

                          I was trying to remove and reinstall MySensors but this is the second time this happens to me :/ I don't want to re-install everything again! Any ideas on how I can get the paperUI back?

                          I tried removing my "addons.config" from "/var/lib/openhab2/config/org/openhab"
                          didn't help, also opened it and it didn't have the paperui option, manually added it and still didn't work :(

                          I am about to give up on OpenHab lol, is there any easier controller to setup? I heard good things about Domoticz but I JUST got OH to kinda work! I was just receiving the wrong values and thought it could of been because of some errors, so decided to re-compile MySensors and install it again.. and then poooof, the whole UI isn't there anymore :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm: :face_palm:

                          EDIT: oh great, even more stuff disappeared, now I only have HOMEBUILDER left! :man-facepalming:

                          T Offline
                          T Offline
                          TimO
                          Hero Member
                          wrote on last edited by
                          #17

                          @nizoo91 Stick to addons.cfg in /etc/openhab2/conf/services and don't fiddle with the file you mentioned above.
                          With package=standard (look for the examples in the comments) the UIs should reappear.

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            nizoo91
                            wrote on last edited by nizoo91
                            #18

                            @flipflap3 said in OpenHAB 2.4 MySensors Serial Gateway - How to install:

                            feature:install openhab-transport-serial

                            can you please add

                            "feature:install esh-io-transport-mqtt"
                            

                            to the tutorial it is required to get it to work even in Serial :)

                            F 1 Reply Last reply
                            2
                            • N nizoo91

                              @flipflap3 said in OpenHAB 2.4 MySensors Serial Gateway - How to install:

                              feature:install openhab-transport-serial

                              can you please add

                              "feature:install esh-io-transport-mqtt"
                              

                              to the tutorial it is required to get it to work even in Serial :)

                              F Offline
                              F Offline
                              FlipFlap3
                              wrote on last edited by
                              #19

                              @nizoo91 Just found out myself as well that this was missing. Thanks!

                              1 Reply Last reply
                              2
                              • I Offline
                                I Offline
                                iamtheghost
                                wrote on last edited by
                                #20

                                @flipflap3 said in OpenHAB 2.4 MySensors Serial Gateway - How to install:

                                sudo apt-get install oracle-java8-installer

                                This package has been removed and can't be installed as instructed in the tutorial. As of April, I believe it was removed from that repo.

                                Reading package lists... Done
                                Building dependency tree
                                Reading state information... Done
                                Package oracle-java8-installer is not available, but is referred to by another package.
                                This may mean that the package is missing, has been obsoleted, or
                                is only available from another source
                                
                                E: Package 'oracle-java8-installer' has no installation candidate
                                

                                Unsure of how to proceed.

                                TRS-80T 1 Reply Last reply
                                0
                                • I iamtheghost

                                  @flipflap3 said in OpenHAB 2.4 MySensors Serial Gateway - How to install:

                                  sudo apt-get install oracle-java8-installer

                                  This package has been removed and can't be installed as instructed in the tutorial. As of April, I believe it was removed from that repo.

                                  Reading package lists... Done
                                  Building dependency tree
                                  Reading state information... Done
                                  Package oracle-java8-installer is not available, but is referred to by another package.
                                  This may mean that the package is missing, has been obsoleted, or
                                  is only available from another source
                                  
                                  E: Package 'oracle-java8-installer' has no installation candidate
                                  

                                  Unsure of how to proceed.

                                  TRS-80T Offline
                                  TRS-80T Offline
                                  TRS-80
                                  wrote on last edited by TRS-80
                                  #21

                                  @iamtheghost,

                                  I realize it's been few months, but I will post this anyway. As I also recently went through the same ordeal.

                                  Thanks to OP for posting an easy to follow guide.

                                  I found the official install instructions at OpenHAB quite good: https://www.openhab.org/docs/installation/linux.html

                                  ...with one exception. Currently, it seems there is some bug going on with their build system or something. I actually had lodged an issue of my own (and even had submitted a PR to correct the documentation) before someone replied, pointing me to the root issue. So for the time being, instead of using https://dl.bintray.com/openhab/apt-repo2 location, you should use https://openhab.jfrog.io/openhab/openhab-linuxpkg repository location.

                                  Further, if you care about issues such as software freedom (which I do a great deal) you might want to consider installing Azul/Zulu Java 8 (make sure it's 8!) which I have done, instead of Oracle Java. Azul's (also excellent) instructions can be found linked from the OpenHAB Linux install instructions. And that would also solve your missing repo problem, obviously.

                                  A 1 Reply Last reply
                                  0
                                  • TRS-80T TRS-80

                                    @iamtheghost,

                                    I realize it's been few months, but I will post this anyway. As I also recently went through the same ordeal.

                                    Thanks to OP for posting an easy to follow guide.

                                    I found the official install instructions at OpenHAB quite good: https://www.openhab.org/docs/installation/linux.html

                                    ...with one exception. Currently, it seems there is some bug going on with their build system or something. I actually had lodged an issue of my own (and even had submitted a PR to correct the documentation) before someone replied, pointing me to the root issue. So for the time being, instead of using https://dl.bintray.com/openhab/apt-repo2 location, you should use https://openhab.jfrog.io/openhab/openhab-linuxpkg repository location.

                                    Further, if you care about issues such as software freedom (which I do a great deal) you might want to consider installing Azul/Zulu Java 8 (make sure it's 8!) which I have done, instead of Oracle Java. Azul's (also excellent) instructions can be found linked from the OpenHAB Linux install instructions. And that would also solve your missing repo problem, obviously.

                                    A Offline
                                    A Offline
                                    alphaHotel
                                    wrote on last edited by alphaHotel
                                    #22

                                    @trs-80 said in OpenHAB 2.4 MySensors Serial Gateway - How to install:

                                    Currently, it seems there is some bug going on with their build system or something. I actually had lodged an issue of my own (and even had submitted a PR to correct the documentation) before someone replied, pointing me to the root issue. So for the time being, instead of using https://dl.bintray.com/openhab/apt-repo2 location, you should use https://openhab.jfrog.io/openhab/openhab-linuxpkg repository location.

                                    I ran into the same thing. Specifically, to get around this, the second instruction under the OpenHAB portion of the original post can be substituted with this:

                                    echo 'deb https://openhab.jfrog.io/openhab/openhab-linuxpkg stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list

                                    EDIT: I've just noticed that they've updated the Package Repository Installation instructions to add the command above.

                                    Further, if you care about issues such as software freedom (which I do a great deal) you might want to consider installing Azul/Zulu Java 8 (make sure it's 8!) which I have done, instead of Oracle Java. Azul's (also excellent) instructions can be found linked from the OpenHAB Linux install instructions. And that would also solve your missing repo problem, obviously.

                                    If using Zulu Java, beware that the repos are not being maintained and are behind (see reference for manual instructions).

                                    I used OpenJDK 8 for java with sudo apt install openjdk-8-jdk-headless.

                                    I'm using an Ethernet gateway (on a separate Raspberry Pi) though which is a twist on all of this.

                                    --Allen

                                    1 Reply Last reply
                                    0
                                    • F Offline
                                      F Offline
                                      FlipFlap3
                                      wrote on last edited by
                                      #23

                                      Updated to OpenHAB 2.5 with step-by-step instructions
                                      switched to Zulu Java

                                      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.1k

                                      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