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 binding

openHAB binding

Scheduled Pinned Locked Moved OpenHAB
89 Posts 30 Posters 55.7k Views 33 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 ted

    @Harry-Gomez
    From https://github.com/openhab/openhab/wiki/Serial-Binding

    If you are using non standard serial ports you have to adapt start.sh to have the serial port included. the java command line should then include the following parameters:

    -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0

    whereas ttyAMA0 is the path to your serial port. Please be aware to change all scripts you might use for startup (debug, automatic start in linux,...)
    whereas ttyAMA0 is the path to your serial port. Please be aware to change all scripts you might use for startup (debug, automatic start in linux,...)

    Harry GomezH Offline
    Harry GomezH Offline
    Harry Gomez
    wrote on last edited by
    #29

    @ted said:

    -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0

    I tried that but it did not work - this is how part of the /etc/init.d/openhab looks - any other ideas - i did not needed this with the RPi2 and wheezy

    JAVA_ARGS_DEFAULT="-Dosgi.clean=true
    -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0
    -Declipse.ignoreApp=true
    -Dosgi.noShutdown=true
    -Djetty.port=${HTTP_PORT}
    -Dopenhab.configfile="${OPENHAB_CONF_DIR}/configurations/openhab.cfg"
    -Dopenhab.configdir="${OPENHAB_CONF_DIR}/configurations"
    -Dopenhab.logdir="${OPENHAB_LOG_DIR}"
    -Dsmarthome.userdata="${OPENHAB_USER_DATA_DIR}"
    -Djetty.home="${OPENHAB_DIR}"
    -Djetty.port.ssl=${HTTPS_PORT}
    -Djetty.config="${OPENHAB_CONF_DIR}/jetty"
    -Djetty.logs="${OPENHAB_LOG_DIR}"
    -Djetty.rundir="${OPENHAB_DIR}"
    -Dfelix.fileinstall.dir="${OPENHAB_DIR}/addons"
    -Dfelix.fileinstall.filter=.*\.jar
    -Djava.library.path="${OPENHAB_DIR}/lib"
    -Djava.security.auth.login.config="${OPENHAB_CONF_DIR}/login.conf"
    -Dorg.quartz.properties="${OPENHAB_CONF_DIR}/quartz.properties"
    -Dequinox.ds.block_timeout=240000
    -Dequinox.scr.waitTimeOnBlock=60000
    -Dfelix.fileinstall.active.level=4
    -Djava.awt.headless=true
    -jar ${LAUNCHER}
    -configuration ${OPENHAB_WORKSPACE_DIR}
    -data ${OPENHAB_WORKSPACE_DIR}
    -console ${TELNET_PORT}"

    T 1 Reply Last reply
    0
    • Harry GomezH Harry Gomez

      @ted said:

      -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0

      I tried that but it did not work - this is how part of the /etc/init.d/openhab looks - any other ideas - i did not needed this with the RPi2 and wheezy

      JAVA_ARGS_DEFAULT="-Dosgi.clean=true
      -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0
      -Declipse.ignoreApp=true
      -Dosgi.noShutdown=true
      -Djetty.port=${HTTP_PORT}
      -Dopenhab.configfile="${OPENHAB_CONF_DIR}/configurations/openhab.cfg"
      -Dopenhab.configdir="${OPENHAB_CONF_DIR}/configurations"
      -Dopenhab.logdir="${OPENHAB_LOG_DIR}"
      -Dsmarthome.userdata="${OPENHAB_USER_DATA_DIR}"
      -Djetty.home="${OPENHAB_DIR}"
      -Djetty.port.ssl=${HTTPS_PORT}
      -Djetty.config="${OPENHAB_CONF_DIR}/jetty"
      -Djetty.logs="${OPENHAB_LOG_DIR}"
      -Djetty.rundir="${OPENHAB_DIR}"
      -Dfelix.fileinstall.dir="${OPENHAB_DIR}/addons"
      -Dfelix.fileinstall.filter=.*\.jar
      -Djava.library.path="${OPENHAB_DIR}/lib"
      -Djava.security.auth.login.config="${OPENHAB_CONF_DIR}/login.conf"
      -Dorg.quartz.properties="${OPENHAB_CONF_DIR}/quartz.properties"
      -Dequinox.ds.block_timeout=240000
      -Dequinox.scr.waitTimeOnBlock=60000
      -Dfelix.fileinstall.active.level=4
      -Djava.awt.headless=true
      -jar ${LAUNCHER}
      -configuration ${OPENHAB_WORKSPACE_DIR}
      -data ${OPENHAB_WORKSPACE_DIR}
      -console ${TELNET_PORT}"

      T Offline
      T Offline
      ted
      wrote on last edited by
      #30

      @Harry-Gomez
      What if you modify start.sh and start openhab from console? I'm not a linux expert; could it be that the usb driver was initiated after /etc/init.d is processed ?

      Harry GomezH zeblongZ 2 Replies Last reply
      0
      • T ted

        @Harry-Gomez
        What if you modify start.sh and start openhab from console? I'm not a linux expert; could it be that the usb driver was initiated after /etc/init.d is processed ?

        Harry GomezH Offline
        Harry GomezH Offline
        Harry Gomez
        wrote on last edited by
        #31

        @ted

        Thank worked with change to openhab.sh - I had to put -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0 at the begining to be able to work. I'm not sure why it would workthere and not on the /etc/init.d/openhab. Also there is not start.sh when you install using apt-get it is named opendhab.sh

        Thanks!!

        1 Reply Last reply
        0
        • FrancoisF Offline
          FrancoisF Offline
          Francois
          wrote on last edited by Francois
          #32

          Hi what is the syntax for a relay in openhab using this binding?

          This in what I get in the log but the light do not switch on or off.

          2016-03-27 20:37:00.068 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
          2016-03-27 20:37:00.889 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command OFF
          2016-03-27 20:37:01.622 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
          2016-03-27 20:37:02.407 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command OFF
          2016-03-27 20:37:03.247 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
          

          This is the syntax that I am use and it is not working. Also try V_LIGHT without any luck.

          Switch LightSwitch_GF_Study	"Study Light  [%s]"				<light> 	(GF_Study)			{mysensors="41;1;V_BINARY"}
          
          andredtsA bklB 2 Replies Last reply
          0
          • FrancoisF Francois

            Hi what is the syntax for a relay in openhab using this binding?

            This in what I get in the log but the light do not switch on or off.

            2016-03-27 20:37:00.068 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
            2016-03-27 20:37:00.889 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command OFF
            2016-03-27 20:37:01.622 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
            2016-03-27 20:37:02.407 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command OFF
            2016-03-27 20:37:03.247 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
            

            This is the syntax that I am use and it is not working. Also try V_LIGHT without any luck.

            Switch LightSwitch_GF_Study	"Study Light  [%s]"				<light> 	(GF_Study)			{mysensors="41;1;V_BINARY"}
            
            andredtsA Offline
            andredtsA Offline
            andredts
            wrote on last edited by
            #33

            @Francois

            Hi, I use {mysensors="12;0;V_STATUS"}. Remember to give your node a ID, because OH does not give one.

            1 Reply Last reply
            0
            • FrancoisF Francois

              Hi what is the syntax for a relay in openhab using this binding?

              This in what I get in the log but the light do not switch on or off.

              2016-03-27 20:37:00.068 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
              2016-03-27 20:37:00.889 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command OFF
              2016-03-27 20:37:01.622 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
              2016-03-27 20:37:02.407 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command OFF
              2016-03-27 20:37:03.247 [INFO ] [runtime.busevents             ] - LightSwitch_GF_Study received command ON
              

              This is the syntax that I am use and it is not working. Also try V_LIGHT without any luck.

              Switch LightSwitch_GF_Study	"Study Light  [%s]"				<light> 	(GF_Study)			{mysensors="41;1;V_BINARY"}
              
              bklB Offline
              bklB Offline
              bkl
              wrote on last edited by
              #34

              Hi @Francois

              The syntax look OK.

              This is what i have working.

              Switch  Relay_10_0              "Relay 1"                       <none>                                  {mysensors="10;0;V_STATUS"}
              

              Try and turn on debug log for mysensors

              Add this to logback.xml

              <logger name="org.openhab.binding.mysensors" level="DEBUG" />
              
              1 Reply Last reply
              0
              • FrancoisF Offline
                FrancoisF Offline
                Francois
                wrote on last edited by
                #35

                Hi @bkl

                Are you using the standard relay sketch with this binding or did you change anything in the sketch as I just don't get my relay to work.

                Here is my log with the above string in my logback.xml.

                17:28:48.825 [INFO ] [.b.m.internal.MySensorsBinding:257  ] - New MySensor node found: node-id=15
                 * Example item: 15;255;I_BATTERY_LEVEL      - Use this to report the battery level 0-100 (%)
                 * Example item: 15;255;I_SKETCH_NAME        - Sketch name that can be used to identify sensor
                 * Example item: 15;255;I_SKETCH_VERSION     - Sketch version that can be reported to keep track of the version of sensor
                17:28:48.827 [DEBUG] [.b.m.internal.MySensorsBinding:263  ] - I_LOG_MESSAGE: read: 15-15-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
                17:28:50.856 [DEBUG] [.b.m.internal.MySensorsBinding:263  ] - I_LOG_MESSAGE: read: 15-15-0 s=255,c=3,t=11,pt=0,l=25,sg=0:Main Bedroom Relay & Butt
                17:28:50.858 [INFO ] [.b.m.internal.MySensorsBinding:318  ] - No item configured for "15;255;I_SKETCH_NAME"
                17:28:50.860 [DEBUG] [.b.m.internal.MySensorsBinding:263  ] - I_LOG_MESSAGE: read: 15-15-0 s=255,c=3,t=12,pt=0,l=3,sg=0:2.0
                17:28:50.862 [INFO ] [.b.m.internal.MySensorsBinding:318  ] - No item configured for "15;255;I_SKETCH_VERSION"
                17:28:50.864 [DEBUG] [.b.m.internal.MySensorsBinding:263  ] - I_LOG_MESSAGE: read: 15-15-0 s=1,c=0,t=3,pt=0,l=0,sg=0:
                17:28:50.867 [INFO ] [.b.m.internal.MySensorsBinding:257  ] - New MySensor sensor found (Binary device (on/off)): node-id=15, sensor-id=1 with type S_BINARY
                 * Example item: 15;1;V_STATUS             - Binary status. (on/off)
                 * Example item: 15;1;V_WATT               - Watt value for power meters
                17:28:51.457 [DEBUG] [.p.rrd4j.internal.RRD4jService:113  ] - Stored 'LightSwitch_GF_Study' with state 'ON' in rrd4j database (again)
                17:28:51.460 [DEBUG] [.p.rrd4j.internal.RRD4jService:132  ] - Stored 'LightSwitch_GF_Study' with state '0' in rrd4j database
                17:28:51.500 [INFO ] [runtime.busevents             :22   ] - LightSwitch_GF_Study received command OFF
                17:28:51.503 [DEBUG] [.b.m.internal.MySensorsBinding:230  ] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                17:28:51.719 [DEBUG] [.b.m.internal.MySensorsBinding:263  ] - I_LOG_MESSAGE: read: 2-2-0 s=0,c=1,t=1,pt=7,l=5,sg=0:29.1
                17:28:51.722 [DEBUG] [.b.m.internal.MySensorsBinding:307  ] - Hum_GF_Study = 29.1
                17:28:51.729 [DEBUG] [.p.rrd4j.internal.RRD4jService:132  ] - Stored 'Hum_GF_Study' with state '29.1' in rrd4j database
                17:28:51.760 [INFO ] [runtime.busevents             :26   ] - Hum_GF_Study state updated to 29.1
                17:28:51.762 [DEBUG] [.b.m.internal.MySensorsBinding:248  ] - internalReceiveUpdate(Hum_GF_Study,29.1) is called!
                17:28:51.862 [INFO ] [runtime.busevents             :22   ] - LightSwitch_GF_Study received command ON
                17:28:51.864 [DEBUG] [.b.m.internal.MySensorsBinding:230  ] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                17:28:52.045 [DEBUG] [.p.rrd4j.internal.RRD4jService:132  ] - Stored 'LightSwitch_GF_Study' with state '0' in rrd4j database
                17:28:52.075 [INFO ] [runtime.busevents             :22   ] - LightSwitch_GF_Study received command OFF
                17:28:52.077 [DEBUG] [.b.m.internal.MySensorsBinding:230  ] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                17:28:52.252 [INFO ] [runtime.busevents             :22   ] - LightSwitch_GF_Study received command ON
                17:28:52.255 [DEBUG] [.b.m.internal.MySensorsBinding:230  ] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                17:28:52.448 [INFO ] [runtime.busevents             :22   ] - LightSwitch_GF_Study received command OFF
                17:28:52.451 [DEBUG] [.b.m.internal.MySensorsBinding:230  ] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                17:28:52.648 [DEBUG] [.b.m.internal.MySensorsBinding:263  ] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                17:28:52.650 [INFO ] [runtime.busevents             :22   ] - LightSwitch_GF_Study received command ON
                17:28:52.654 [DEBUG] [.b.m.internal.MySensorsBinding:230  ] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                17:28:52.659 [DEBUG] [.b.m.internal.MySensorsBinding:307  ] - Motion_GF_Study = ON
                17:28:52.662 [DEBUG] [.p.rrd4j.internal.RRD4jService:113  ] - Stored 'Motion_GF_Study' with state 'OFF' in rrd4j database (again)
                
                1 Reply Last reply
                0
                • bklB bkl

                  @BastienVH

                  https://github.com/openhab/openhab/wiki/Serial-Binding

                  Note2: If you are using non standard serial ports you have to adapt start.sh to have the serial port included. the java command line should then include the following parameters:

                  -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0
                  whereas ttyAMA0 is the path to your serial port. Please be aware to change all scripts you might use for startup (debug, automatic start in linux,...)

                  skatunS Offline
                  skatunS Offline
                  skatun
                  wrote on last edited by
                  #36

                  @bkl
                  Note2: If you are using non standard serial ports you have to adapt start.sh to have the serial port included. the java command line should then include the following parameters:

                  -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0
                  whereas ttyAMA0 is the path to your serial port. Please be aware to change all scripts you might use for startup (debug, automatic start in linux,...)

                  So my question (linux newbie) is what is the best way to attach my Arduino nano to rpi, so that it always find it on reboot or if it is unplugged/replugged.

                  Is this correct and will this work with the binding?
                  /etc/udev/rules.d/99-usb-serial.rules"

                  with my device info:
                  SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A40360T2", SYMLINK+="ttyUSB99"

                  1 Reply Last reply
                  0
                  • T ted

                    @Harry-Gomez
                    What if you modify start.sh and start openhab from console? I'm not a linux expert; could it be that the usb driver was initiated after /etc/init.d is processed ?

                    zeblongZ Offline
                    zeblongZ Offline
                    zeblong
                    wrote on last edited by
                    #37

                    @ted
                    Hi
                    I use RASPBIAN JESSIE.
                    Command minicom -b 115200 -o -D /dev/ttyUSB0 show traffic from serial gateway.
                    I write -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0 to /usr/share/openhab/bin/openhab.sh and /etc/init.d/openhab but still 'Unable to find Serial port '/dev/ttyUSB0''.
                    Please help me

                    Harry GomezH 1 Reply Last reply
                    0
                    • zeblongZ zeblong

                      @ted
                      Hi
                      I use RASPBIAN JESSIE.
                      Command minicom -b 115200 -o -D /dev/ttyUSB0 show traffic from serial gateway.
                      I write -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0 to /usr/share/openhab/bin/openhab.sh and /etc/init.d/openhab but still 'Unable to find Serial port '/dev/ttyUSB0''.
                      Please help me

                      Harry GomezH Offline
                      Harry GomezH Offline
                      Harry Gomez
                      wrote on last edited by Harry Gomez
                      #38

                      @zeblong

                      for me I had to put -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0\ right at the begining for it to work at usr/share/openhab/bin/openhab.sh - i removed from /etc/init.d/openhab it did not make a difference. below is how it looks for me. also check the output if dmesg for changes in tty. I also use jessie on a RPi3

                      JAVA_ARGS_DEFAULT="-Dosgi.clean=true
                      -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0
                      -Duser.timezone=America/Los_Angeles
                      -Declipse.ignoreApp=true
                      -Dosgi.noShutdown=true
                      -Djetty.port=${HTTP_PORT}
                      -Dopenhab.configfile="${OPENHAB_CONF_DIR}/configurations/openhab.cfg"
                      -Dopenhab.configdir="${OPENHAB_CONF_DIR}/configurations"
                      -Dopenhab.logdir="${OPENHAB_LOG_DIR}"
                      -Dsmarthome.userdata="${OPENHAB_USER_DATA_DIR}"
                      -Djetty.home="${OPENHAB_DIR}"
                      -Djetty.port.ssl=${HTTPS_PORT}
                      -Djetty.config="${OPENHAB_CONF_DIR}/jetty"
                      -Djetty.logs="${OPENHAB_LOG_DIR}"
                      -Djetty.rundir="${OPENHAB_DIR}"
                      -Dfelix.fileinstall.dir="${OPENHAB_DIR}/addons"
                      -Dfelix.fileinstall.filter=.*\.jar
                      -Djava.library.path="${OPENHAB_DIR}/lib"
                      -Djava.security.auth.login.config="${OPENHAB_CONF_DIR}/login.conf"
                      -Dorg.quartz.properties="${OPENHAB_CONF_DIR}/quartz.properties"
                      -Dequinox.ds.block_timeout=240000
                      -Dequinox.scr.waitTimeOnBlock=60000
                      -Dfelix.fileinstall.active.level=4
                      -Djava.awt.headless=true
                      -jar ${LAUNCHER}
                      -configuration ${OPENHAB_WORKSPACE_DIR}
                      -data ${OPENHAB_WORKSPACE_DIR}
                      -console ${TELNET_PORT}" \

                      ~ $ dmesg |grep tty
                      [ 0.000000] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa02082 bcm2709.serial=0x71ef84a5 smsc95xx.macaddr=B8:27:EB:EF:84:A5 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
                      [ 0.001288] console [tty1] enabled
                      [ 0.267235] 3f215040.uart: ttyS0 at MMIO 0x3f215040 (irq = 29, base_baud = 50000000) is a 16550
                      [ 0.919548] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev2
                      [ 2.166808] systemd[1]: Starting system-getty.slice.
                      [ 2.170421] systemd[1]: Created slice system-getty.slice.
                      [ 3.635870] usb 1-1.2: ch341-uart converter now attached to ttyUSB0

                      zeblongZ bklB 2 Replies Last reply
                      0
                      • Harry GomezH Harry Gomez

                        @zeblong

                        for me I had to put -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0\ right at the begining for it to work at usr/share/openhab/bin/openhab.sh - i removed from /etc/init.d/openhab it did not make a difference. below is how it looks for me. also check the output if dmesg for changes in tty. I also use jessie on a RPi3

                        JAVA_ARGS_DEFAULT="-Dosgi.clean=true
                        -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0
                        -Duser.timezone=America/Los_Angeles
                        -Declipse.ignoreApp=true
                        -Dosgi.noShutdown=true
                        -Djetty.port=${HTTP_PORT}
                        -Dopenhab.configfile="${OPENHAB_CONF_DIR}/configurations/openhab.cfg"
                        -Dopenhab.configdir="${OPENHAB_CONF_DIR}/configurations"
                        -Dopenhab.logdir="${OPENHAB_LOG_DIR}"
                        -Dsmarthome.userdata="${OPENHAB_USER_DATA_DIR}"
                        -Djetty.home="${OPENHAB_DIR}"
                        -Djetty.port.ssl=${HTTPS_PORT}
                        -Djetty.config="${OPENHAB_CONF_DIR}/jetty"
                        -Djetty.logs="${OPENHAB_LOG_DIR}"
                        -Djetty.rundir="${OPENHAB_DIR}"
                        -Dfelix.fileinstall.dir="${OPENHAB_DIR}/addons"
                        -Dfelix.fileinstall.filter=.*\.jar
                        -Djava.library.path="${OPENHAB_DIR}/lib"
                        -Djava.security.auth.login.config="${OPENHAB_CONF_DIR}/login.conf"
                        -Dorg.quartz.properties="${OPENHAB_CONF_DIR}/quartz.properties"
                        -Dequinox.ds.block_timeout=240000
                        -Dequinox.scr.waitTimeOnBlock=60000
                        -Dfelix.fileinstall.active.level=4
                        -Djava.awt.headless=true
                        -jar ${LAUNCHER}
                        -configuration ${OPENHAB_WORKSPACE_DIR}
                        -data ${OPENHAB_WORKSPACE_DIR}
                        -console ${TELNET_PORT}" \

                        ~ $ dmesg |grep tty
                        [ 0.000000] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa02082 bcm2709.serial=0x71ef84a5 smsc95xx.macaddr=B8:27:EB:EF:84:A5 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
                        [ 0.001288] console [tty1] enabled
                        [ 0.267235] 3f215040.uart: ttyS0 at MMIO 0x3f215040 (irq = 29, base_baud = 50000000) is a 16550
                        [ 0.919548] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev2
                        [ 2.166808] systemd[1]: Starting system-getty.slice.
                        [ 2.170421] systemd[1]: Created slice system-getty.slice.
                        [ 3.635870] usb 1-1.2: ch341-uart converter now attached to ttyUSB0

                        zeblongZ Offline
                        zeblongZ Offline
                        zeblong
                        wrote on last edited by
                        #39

                        @Harry-Gomez
                        That's all well done. does not work. It may be necessary to install any more bindings or the Java packages?

                        Harry GomezH 1 Reply Last reply
                        0
                        • zeblongZ zeblong

                          @Harry-Gomez
                          That's all well done. does not work. It may be necessary to install any more bindings or the Java packages?

                          Harry GomezH Offline
                          Harry GomezH Offline
                          Harry Gomez
                          wrote on last edited by
                          #40

                          @zeblong

                          Do you have the serial package installed --> org.openhab.io.transport.serial-1.8.2.jar?

                          Did you add openhab to dialout group -> sudo usermod -a -G dialout openhab

                          What is the error on you logs?

                          zeblongZ 1 Reply Last reply
                          0
                          • FrancoisF Offline
                            FrancoisF Offline
                            Francois
                            wrote on last edited by Francois
                            #41

                            All my temp motion and humidity sensor work but my relay and dimmer sensor don't work, why will this be the case? Here is the log:

                            2016-04-03 09:25:07.928 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:07.930 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:08.186 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:08.406 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:08.527 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:08.539 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:08.584 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:08.588 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:08.625 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:08.802 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:09.247 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:09.588 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:10.421 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:10.899 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:11.410 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:11.431 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:11.594 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:11.829 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:12.513 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:12.840 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                            2016-04-03 09:25:12.841 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                            2016-04-03 09:25:13.145 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                            2016-04-03 09:25:13.394 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:13.422 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:17.880 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:17.882 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:18.025 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:18.536 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:18.538 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:18.541 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:22.736 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                            2016-04-03 09:25:22.737 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                            2016-04-03 09:25:23.021 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 95-95-0 s=1,c=1,t=16,pt=1,l=1,sg=0:1
                            2016-04-03 09:25:23.022 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen = ON
                            2016-04-03 09:25:23.033 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                            2016-04-03 09:25:23.431 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen,ON) is called!
                            2016-04-03 09:25:23.765 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=5,c=1,t=38,pt=7,l=5,sg=0:2.90
                            2016-04-03 09:25:23.766 [DEBUG] [.b.m.internal.MySensorsBinding] - MotionBatVcc_GF_Study = 2.90
                            2016-04-03 09:25:23.937 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(MotionBatVcc_GF_Study,2.90) is called!
                            2016-04-03 09:25:26.984 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:26.985 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:27.203 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:27.648 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:27.650 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:27.650 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 66-66-0 s=1,c=1,t=17,pt=5,l=4,sg=0:315
                            2016-04-03 09:25:27.651 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "66;1;V_WATT"
                            2016-04-03 09:25:27.653 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:29.284 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 66-66-0 s=1,c=1,t=24,pt=5,l=4,sg=0:2718269
                            2016-04-03 09:25:29.286 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "66;1;V_VAR1"
                            2016-04-03 09:25:31.838 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                            2016-04-03 09:25:31.840 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                            2016-04-03 09:25:32.184 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                            2016-04-03 09:25:33.022 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 95-95-0 s=1,c=1,t=16,pt=1,l=1,sg=0:0
                            2016-04-03 09:25:33.024 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen = OFF
                            2016-04-03 09:25:33.326 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen,OFF) is called!
                            2016-04-03 09:25:35.140 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:35.141 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:35.447 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:35.556 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                            2016-04-03 09:25:35.557 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                            2016-04-03 09:25:35.561 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                            2016-04-03 09:25:36.738 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:36.851 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:37.297 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:37.324 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:37.758 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:37.962 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:38.434 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:38.454 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                            2016-04-03 09:25:38.877 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                            2016-04-03 09:25:39.995 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                            2016-04-03 09:25:40.045 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                            2016-04-03 09:25:40.341 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                            2016-04-03 09:25:40.590 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 82-82-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                            2016-04-03 09:25:40.591 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen01 = OFF
                            2016-04-03 09:25:40.595 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen01,OFF) is called!
                            2016-04-03 09:25:41.596 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 2-2-0 s=0,c=1,t=1,pt=7,l=5,sg=0:43.4
                            2016-04-03 09:25:41.597 [DEBUG] [.b.m.internal.MySensorsBinding] - Hum_GF_Study = 43.4
                            2016-04-03 09:25:41.852 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Hum_GF_Study,43.4) is called!
                            2016-04-03 09:25:43.390 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 82-82-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                            2016-04-03 09:25:43.392 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen01 = OFF
                            2016-04-03 09:25:43.395 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen01,OFF) is called!
                            
                            bklB 1 Reply Last reply
                            0
                            • Harry GomezH Harry Gomez

                              @zeblong

                              Do you have the serial package installed --> org.openhab.io.transport.serial-1.8.2.jar?

                              Did you add openhab to dialout group -> sudo usermod -a -G dialout openhab

                              What is the error on you logs?

                              zeblongZ Offline
                              zeblongZ Offline
                              zeblong
                              wrote on last edited by
                              #42

                              @Harry-Gomez

                              Many thanks.
                              Line 'sudo usermod -a -G dialout openhab' helped me.

                              1 Reply Last reply
                              0
                              • FrancoisF Francois

                                All my temp motion and humidity sensor work but my relay and dimmer sensor don't work, why will this be the case? Here is the log:

                                2016-04-03 09:25:07.928 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:07.930 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:08.186 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:08.406 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:08.527 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:08.539 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:08.584 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:08.588 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:08.625 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:08.802 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:09.247 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:09.588 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:10.421 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:10.899 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:11.410 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:11.431 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:11.594 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:11.829 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:12.513 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:12.840 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                                2016-04-03 09:25:12.841 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                                2016-04-03 09:25:13.145 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                                2016-04-03 09:25:13.394 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:13.422 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:17.880 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:17.882 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:18.025 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:18.536 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:18.538 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:18.541 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:22.736 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                                2016-04-03 09:25:22.737 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                                2016-04-03 09:25:23.021 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 95-95-0 s=1,c=1,t=16,pt=1,l=1,sg=0:1
                                2016-04-03 09:25:23.022 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen = ON
                                2016-04-03 09:25:23.033 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                                2016-04-03 09:25:23.431 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen,ON) is called!
                                2016-04-03 09:25:23.765 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=5,c=1,t=38,pt=7,l=5,sg=0:2.90
                                2016-04-03 09:25:23.766 [DEBUG] [.b.m.internal.MySensorsBinding] - MotionBatVcc_GF_Study = 2.90
                                2016-04-03 09:25:23.937 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(MotionBatVcc_GF_Study,2.90) is called!
                                2016-04-03 09:25:26.984 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:26.985 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:27.203 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:27.648 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:27.650 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:27.650 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 66-66-0 s=1,c=1,t=17,pt=5,l=4,sg=0:315
                                2016-04-03 09:25:27.651 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "66;1;V_WATT"
                                2016-04-03 09:25:27.653 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:29.284 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 66-66-0 s=1,c=1,t=24,pt=5,l=4,sg=0:2718269
                                2016-04-03 09:25:29.286 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "66;1;V_VAR1"
                                2016-04-03 09:25:31.838 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                                2016-04-03 09:25:31.840 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                                2016-04-03 09:25:32.184 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                                2016-04-03 09:25:33.022 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 95-95-0 s=1,c=1,t=16,pt=1,l=1,sg=0:0
                                2016-04-03 09:25:33.024 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen = OFF
                                2016-04-03 09:25:33.326 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen,OFF) is called!
                                2016-04-03 09:25:35.140 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:35.141 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:35.447 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:35.556 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
                                2016-04-03 09:25:35.557 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 1
                                2016-04-03 09:25:35.561 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,1) is called!
                                2016-04-03 09:25:36.738 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:36.851 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:37.297 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:37.324 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:37.758 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:37.962 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:38.434 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:38.454 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,ON) is called!
                                2016-04-03 09:25:38.877 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(LightSwitch_GF_Study,OFF) is called!
                                2016-04-03 09:25:39.995 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 40-40-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                                2016-04-03 09:25:40.045 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Study = 0
                                2016-04-03 09:25:40.341 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Study,0) is called!
                                2016-04-03 09:25:40.590 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 82-82-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                                2016-04-03 09:25:40.591 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen01 = OFF
                                2016-04-03 09:25:40.595 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen01,OFF) is called!
                                2016-04-03 09:25:41.596 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 2-2-0 s=0,c=1,t=1,pt=7,l=5,sg=0:43.4
                                2016-04-03 09:25:41.597 [DEBUG] [.b.m.internal.MySensorsBinding] - Hum_GF_Study = 43.4
                                2016-04-03 09:25:41.852 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Hum_GF_Study,43.4) is called!
                                2016-04-03 09:25:43.390 [DEBUG] [.b.m.internal.MySensorsBinding] - I_LOG_MESSAGE: read: 82-82-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
                                2016-04-03 09:25:43.392 [DEBUG] [.b.m.internal.MySensorsBinding] - Motion_GF_Kitchen01 = OFF
                                2016-04-03 09:25:43.395 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveUpdate(Motion_GF_Kitchen01,OFF) is called!
                                
                                bklB Offline
                                bklB Offline
                                bkl
                                wrote on last edited by
                                #43

                                Hi @Francois

                                Yes i am using the standard relay sketch.

                                I thing i found you problem, try and change V_BINARY to V_STATUS

                                1 Reply Last reply
                                0
                                • Harry GomezH Harry Gomez

                                  @zeblong

                                  for me I had to put -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0\ right at the begining for it to work at usr/share/openhab/bin/openhab.sh - i removed from /etc/init.d/openhab it did not make a difference. below is how it looks for me. also check the output if dmesg for changes in tty. I also use jessie on a RPi3

                                  JAVA_ARGS_DEFAULT="-Dosgi.clean=true
                                  -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0
                                  -Duser.timezone=America/Los_Angeles
                                  -Declipse.ignoreApp=true
                                  -Dosgi.noShutdown=true
                                  -Djetty.port=${HTTP_PORT}
                                  -Dopenhab.configfile="${OPENHAB_CONF_DIR}/configurations/openhab.cfg"
                                  -Dopenhab.configdir="${OPENHAB_CONF_DIR}/configurations"
                                  -Dopenhab.logdir="${OPENHAB_LOG_DIR}"
                                  -Dsmarthome.userdata="${OPENHAB_USER_DATA_DIR}"
                                  -Djetty.home="${OPENHAB_DIR}"
                                  -Djetty.port.ssl=${HTTPS_PORT}
                                  -Djetty.config="${OPENHAB_CONF_DIR}/jetty"
                                  -Djetty.logs="${OPENHAB_LOG_DIR}"
                                  -Djetty.rundir="${OPENHAB_DIR}"
                                  -Dfelix.fileinstall.dir="${OPENHAB_DIR}/addons"
                                  -Dfelix.fileinstall.filter=.*\.jar
                                  -Djava.library.path="${OPENHAB_DIR}/lib"
                                  -Djava.security.auth.login.config="${OPENHAB_CONF_DIR}/login.conf"
                                  -Dorg.quartz.properties="${OPENHAB_CONF_DIR}/quartz.properties"
                                  -Dequinox.ds.block_timeout=240000
                                  -Dequinox.scr.waitTimeOnBlock=60000
                                  -Dfelix.fileinstall.active.level=4
                                  -Djava.awt.headless=true
                                  -jar ${LAUNCHER}
                                  -configuration ${OPENHAB_WORKSPACE_DIR}
                                  -data ${OPENHAB_WORKSPACE_DIR}
                                  -console ${TELNET_PORT}" \

                                  ~ $ dmesg |grep tty
                                  [ 0.000000] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa02082 bcm2709.serial=0x71ef84a5 smsc95xx.macaddr=B8:27:EB:EF:84:A5 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
                                  [ 0.001288] console [tty1] enabled
                                  [ 0.267235] 3f215040.uart: ttyS0 at MMIO 0x3f215040 (irq = 29, base_baud = 50000000) is a 16550
                                  [ 0.919548] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev2
                                  [ 2.166808] systemd[1]: Starting system-getty.slice.
                                  [ 2.170421] systemd[1]: Created slice system-getty.slice.
                                  [ 3.635870] usb 1-1.2: ch341-uart converter now attached to ttyUSB0

                                  bklB Offline
                                  bklB Offline
                                  bkl
                                  wrote on last edited by
                                  #44

                                  Hi @Harry-Gomez

                                  If you make a guide to make openhab work with a non standard serial port, then i will make it part of the first post.

                                  1 Reply Last reply
                                  0
                                  • sSpeakerS Offline
                                    sSpeakerS Offline
                                    sSpeaker
                                    wrote on last edited by
                                    #45

                                    Hi,

                                    I'm trying to control curtain with UP/DOWN/STOP commands, but it does not work.

                                    2016-05-03 05:00:45.446 [INFO ] [.b.m.internal.MySensorsBinding] - New MySensor sensor found (Window covers or shades): node-id=30, sensor-id=0 with type S_COVER
                                     * Example item: 30;0;V_UP                 - Window covering. Up.
                                     * Example item: 30;0;V_DOWN               - Window covering. Down.
                                     * Example item: 30;0;V_STOP               - Window covering. Stop.
                                     * Example item: 30;0;V_PERCENTAGE         - Percentage value. 0-100 (%)
                                    
                                    2016-05-03 11:17:58.351 [DEBUG] [.b.m.internal.MySensorsBinding] - internalReceiveCommand(BedroomCurtain,UP) is called!
                                    2016-05-03 11:17:58.354 [DEBUG] [.b.m.internal.MySensorsBinding] - Command "class org.openhab.core.library.types.UpDownType" is not a valid Command tyoe: [class org.openhab.core.library.types.PercentType]
                                    

                                    Item:

                                    Rollershutter	BedroomCurtain	"Bedroom Curtain"	<"rollershutter">	(Bedroom)	{mysensors="30;0;V_PERCENTAGE"}
                                    

                                    Sitemap:

                                    Switch	item=BedroomCurtain mappings=[UP="Up", STOP="Stop", DOWN="Down"]
                                    
                                    1 Reply Last reply
                                    0
                                    • mark_vennM Offline
                                      mark_vennM Offline
                                      mark_venn
                                      wrote on last edited by
                                      #46

                                      I am going to give this a try with the serial gateway. I am not sure whether to use mqtt or serial; this might help me make up my mind!
                                      :smile:

                                      1 Reply Last reply
                                      0
                                      • skatunS Offline
                                        skatunS Offline
                                        skatun
                                        wrote on last edited by
                                        #47

                                        Hi all,
                                        can we please document this binding and add it to github of openhab in similiar way to all other bindings? I can help with doing so:)

                                        1 Reply Last reply
                                        1
                                        • bklB bkl

                                          Hi

                                          I have been playing a bit with creating a binding for openHAB.
                                          And it is now in a state where i think it is ready for some more testing.

                                          Links
                                          GitHub (https://github.com/bloft/openhab)
                                          Download (http://bkl.linux.dk/org.openhab.binding.mysensors-1.8.0-SNAPSHOT.jar)

                                          Features

                                          • Serial Gateway supported Only
                                          • Supported all sensors (1.6)
                                          • Discovery of devices (sort of)
                                          • Support requesting values from openhab

                                          Experimental / Not Tested

                                          • Ethernet Gateway
                                          • Error handling of Gateway (restart of connection)
                                          • I_CONFIG support add mysensors:metric=true to mysensors:metric=false to openhab.cfg

                                          Not Working

                                          • Auto assign of Node ID

                                          Howto Use

                                          1. Add jar to addons dir
                                          2. Modify openhab.cfg add "mysensors:port=/dev/ttyUSB0"
                                          3. Add items

                                          Configure ethernet gateway
                                          Modify openhab.cfg set

                                          mysensors:type=ethernet
                                          mysensors:host=<host ip>
                                          mysensors:port=5003
                                          

                                          This is still untested so please report if it is working or not.

                                          Auto discovery
                                          Every time a Presentation is detected, example of usage is printed to the openhab.log on INFO

                                          Example of items:

                                          Number  Humidity              "Hjemmebio [%s %%Rh]"   <water>         (gBio,gHumidity)        {mysensors="3;0;V_HUM"}
                                          Number  Temperature           "Hjemmebio [%s °C]"     <temperature>   (gBio,gTemperature)     {mysensors="3;1;V_TEMP"}
                                          Switch  Motion                "Hjemmebio [%s]"        <motion>        (gBio,gMotion)          {mysensors="3;2;V_TRIPPED"}
                                          Number  Light                 "Hjemmebio [%s]"        <slider>        (gBio,gLightLevel)      {mysensors="3;3;V_LIGHT_LEVEL"}
                                          
                                          AffordableTechA Offline
                                          AffordableTechA Offline
                                          AffordableTech
                                          wrote on last edited by
                                          #48

                                          @bkl
                                          Just wanted to say thanks for making my wish come true!

                                          My Experience Setting up OpenHab
                                          If it helps others, I tried OpenHab a year ago but gave it away simply because of the instabilities associated with using MQTT, i.e. needing a server, a broker, a client and the gateway. Far too many modules to configure, making it so easy to get it wrong.

                                          Thanks to this MySensors/OpenHab binding, the Arduino gateway talks direct to OpenHab without all the middleware, making it easier to configure and more reliable.

                                          It took only a few minutes to install OpenHab 1.8 and this binding. Pasted the items and sitemap examples and presto - it was working! A very pleasant change from nearly three days wasted trying to get the (alternate) OpenHab2 binding working.

                                          I'll upgrade to OpenHab2 when I'm confident it is stable and the matching binding is sorted out.

                                          Paul

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


                                          22

                                          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