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.6k 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.
  • andredtsA Offline
    andredtsA Offline
    andredts
    wrote on last edited by andredts
    #16

    Hi,

    Today I was testing Motion and Door sensors. Motion worked as expected, but the door sensor only works if it's set in OH as a "switch" item(on and off feedback), if you set it as a "contact"(open/closed) item you get the log: " No item configured for "5;1;V_TRIPPED". I have used the example sketch for the sensor

    N bklB 2 Replies Last reply
    0
    • andredtsA andredts

      Hi,

      Today I was testing Motion and Door sensors. Motion worked as expected, but the door sensor only works if it's set in OH as a "switch" item(on and off feedback), if you set it as a "contact"(open/closed) item you get the log: " No item configured for "5;1;V_TRIPPED". I have used the example sketch for the sensor

      N Offline
      N Offline
      nikos1671
      wrote on last edited by
      #17

      @andredts I also notice this with the door sensors. Normal the item must be contact and not switch.

      1 Reply Last reply
      0
      • andredtsA andredts

        Hi,

        Today I was testing Motion and Door sensors. Motion worked as expected, but the door sensor only works if it's set in OH as a "switch" item(on and off feedback), if you set it as a "contact"(open/closed) item you get the log: " No item configured for "5;1;V_TRIPPED". I have used the example sketch for the sensor

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

        @andredts
        Thanks for the feedback, this is now fixed.

        andredtsA 1 Reply Last reply
        1
        • bklB bkl

          @andredts
          Thanks for the feedback, this is now fixed.

          andredtsA Offline
          andredtsA Offline
          andredts
          wrote on last edited by
          #19

          @bkl
          Thank you for your great work. Happy to help with what I can.

          Already tested and fully abandoned rules for setting up OpenHab with Mysensors.

          Next I will try a analogic read, based on the dust sensor.

          andredtsA 1 Reply Last reply
          0
          • andredtsA andredts

            @bkl
            Thank you for your great work. Happy to help with what I can.

            Already tested and fully abandoned rules for setting up OpenHab with Mysensors.

            Next I will try a analogic read, based on the dust sensor.

            andredtsA Offline
            andredtsA Offline
            andredts
            wrote on last edited by
            #20

            @andredts
            Using this bidding for 15 days, with 3 relay, a Micro Sensebender, Humidity, Motion and Water level (base on dust sensor). And everything is working great.

            Thanks again.

            1 Reply Last reply
            0
            • Pavel HrudkaP Offline
              Pavel HrudkaP Offline
              Pavel Hrudka
              wrote on last edited by
              #21

              Hi.
              I just added your binding and I am very happy for it because I have spent quite some time to figure out, how do I integrate mySensors in to Openhab.

              My setup
              RPI2
              did apt-get update && apt-get upgrade
              OpenHab (openHAB runtime has been started (v1.8.1))
              I have NRF24L01+ connected directly to RPI using SPI.
              I am running PiGatewaySerial service and Iam able to see communication when i do

              sudo cat /dev/ttyMySensorsGateway
              

              for example

              7;255;3;0;15;0
              7;255;0;0;17;1.5.4
              7;255;3;0;6;0
              7;255;3;0;11;Humidity
              7;255;3;0;12;1.0
              7;0;0;0;7;
              7;1;0;0;6;
              
              

              My problem is that openHab is unable to access /dev/ttyMySensorsGateway
              I see error in my logs

              2016-03-11 23:30:11.288 [ERROR] [.o.b.m.internal.gateway.Serial] - Unable to find Serial port '/dev/ttyMySensorsGateway'
              
              java.lang.NullPointerException: null
                      at org.openhab.binding.mysensors.internal.gateway.Serial.write(Serial.java:82) ~[na:na]
                      at org.openhab.binding.mysensors.internal.MySensorsBinding.execute(MySensorsBinding.java:178) ~[na:na]
                      at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
                      at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
              
              
              

              I found @BastienVH post and modified /etc/init.d/openhab JAVA_ARGS_DEFAULT section and added at the end of defintion

               -Dgnu.io.rxtx.SerialPorts=/dev/ttyMySensorsGateway"
              

              and restarted service

              Sadly, there was no change.
              Please can you help?

              Thank you.

              andredtsA 2 Replies Last reply
              0
              • Pavel HrudkaP Pavel Hrudka

                Hi.
                I just added your binding and I am very happy for it because I have spent quite some time to figure out, how do I integrate mySensors in to Openhab.

                My setup
                RPI2
                did apt-get update && apt-get upgrade
                OpenHab (openHAB runtime has been started (v1.8.1))
                I have NRF24L01+ connected directly to RPI using SPI.
                I am running PiGatewaySerial service and Iam able to see communication when i do

                sudo cat /dev/ttyMySensorsGateway
                

                for example

                7;255;3;0;15;0
                7;255;0;0;17;1.5.4
                7;255;3;0;6;0
                7;255;3;0;11;Humidity
                7;255;3;0;12;1.0
                7;0;0;0;7;
                7;1;0;0;6;
                
                

                My problem is that openHab is unable to access /dev/ttyMySensorsGateway
                I see error in my logs

                2016-03-11 23:30:11.288 [ERROR] [.o.b.m.internal.gateway.Serial] - Unable to find Serial port '/dev/ttyMySensorsGateway'
                
                java.lang.NullPointerException: null
                        at org.openhab.binding.mysensors.internal.gateway.Serial.write(Serial.java:82) ~[na:na]
                        at org.openhab.binding.mysensors.internal.MySensorsBinding.execute(MySensorsBinding.java:178) ~[na:na]
                        at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
                        at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
                
                
                

                I found @BastienVH post and modified /etc/init.d/openhab JAVA_ARGS_DEFAULT section and added at the end of defintion

                 -Dgnu.io.rxtx.SerialPorts=/dev/ttyMySensorsGateway"
                

                and restarted service

                Sadly, there was no change.
                Please can you help?

                Thank you.

                andredtsA Offline
                andredtsA Offline
                andredts
                wrote on last edited by
                #22

                @Pavel-Hrudka

                I use RP2 with internal serial connected directly to ATmega328 chip. So it is also a unconventional serial. And for that to work I had to put the line " -Dgnu.io.rxtx.SerialPorts=/dev/ttyMySensorsGateway" on my start.sh file, before the line that has ".jar"

                Hope it helps

                1 Reply Last reply
                0
                • Pavel HrudkaP Pavel Hrudka

                  Hi.
                  I just added your binding and I am very happy for it because I have spent quite some time to figure out, how do I integrate mySensors in to Openhab.

                  My setup
                  RPI2
                  did apt-get update && apt-get upgrade
                  OpenHab (openHAB runtime has been started (v1.8.1))
                  I have NRF24L01+ connected directly to RPI using SPI.
                  I am running PiGatewaySerial service and Iam able to see communication when i do

                  sudo cat /dev/ttyMySensorsGateway
                  

                  for example

                  7;255;3;0;15;0
                  7;255;0;0;17;1.5.4
                  7;255;3;0;6;0
                  7;255;3;0;11;Humidity
                  7;255;3;0;12;1.0
                  7;0;0;0;7;
                  7;1;0;0;6;
                  
                  

                  My problem is that openHab is unable to access /dev/ttyMySensorsGateway
                  I see error in my logs

                  2016-03-11 23:30:11.288 [ERROR] [.o.b.m.internal.gateway.Serial] - Unable to find Serial port '/dev/ttyMySensorsGateway'
                  
                  java.lang.NullPointerException: null
                          at org.openhab.binding.mysensors.internal.gateway.Serial.write(Serial.java:82) ~[na:na]
                          at org.openhab.binding.mysensors.internal.MySensorsBinding.execute(MySensorsBinding.java:178) ~[na:na]
                          at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
                          at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
                  
                  
                  

                  I found @BastienVH post and modified /etc/init.d/openhab JAVA_ARGS_DEFAULT section and added at the end of defintion

                   -Dgnu.io.rxtx.SerialPorts=/dev/ttyMySensorsGateway"
                  

                  and restarted service

                  Sadly, there was no change.
                  Please can you help?

                  Thank you.

                  andredtsA Offline
                  andredtsA Offline
                  andredts
                  wrote on last edited by
                  #23

                  @Pavel-Hrudka

                  On my last post I miss lid you, copping your own line, but actually to use raspberry internal serial you have to add to Openhab's start.sh "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 " before the line with the ".jar" because the serial got to start before you run the biddings.

                  Hope it helps.

                  1 Reply Last reply
                  0
                  • Pavel HrudkaP Offline
                    Pavel HrudkaP Offline
                    Pavel Hrudka
                    wrote on last edited by
                    #24

                    Hi thank you.
                    I solved my issue, but when I wanted to update my post, the thread was locked.

                    Here in this post its said that I should create link to virtual port like this

                    sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB20
                    

                    Pointing OpenHab binding to this port solved my problem.

                    I did try to add command line parameter to /init.d script for OpenHab but that did not work.

                    Cheers.
                    Pavel

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

                      Hi I am new to openHAB how do you configure a relay node? I do see the node in the logs but the relay don't what to switch on or off. I have my temp and humidity sensors working already.

                      18:38:50.450 [INFO ] [.b.m.internal.MySensorsBinding:257  ] - New MySensor sensor found (Dimmable device of some kind): node-id=95, sensor-id=0 with type S_DIMMER
                       * Example item: 95;0;V_STATUS             - Binary status. (on/off)
                       * Example item: 95;0;V_PERCENTAGE         - Percentage value. 0-100 (%)
                       * Example item: 95;0;V_WATT               - Watt value for power meters
                      

                      Regards

                      Francois

                      1 Reply Last reply
                      0
                      • Mark JeffordM Offline
                        Mark JeffordM Offline
                        Mark Jefford
                        wrote on last edited by
                        #26

                        Hi,

                        Quick question, trying to integrate the mysprinkler project into openhab.

                        getting stuck using V_VAR1-3 i need to somehow export out a runtime variable to the remote ardunio... any idea how i can get the V_VAR1-3 to output something that is not binary? i.e a runtime of 5 min for sprinklers...

                        i have the triggering working, just can't configure the runtime.

                        any help appreciated.. will do a guide if it get it working :)

                        1 Reply Last reply
                        0
                        • Harry GomezH Offline
                          Harry GomezH Offline
                          Harry Gomez
                          wrote on last edited by
                          #27

                          I recently moved my OpenHab install from a Raspberry PI 2 to a Raspberry Pi 3 from wheezy to jessie and now the biding is not working. Everything was working perfectly with the previous install now i keep getting the following message, serial port exist and it works. I suspect it has do to with the change from wheezy to jessie but nothing i tries is working.

                          2016-03-25 19:28:20 DEBUG o.o.b.m.i.MySensorsBinding[:96]- activate
                          2016-03-25 19:28:20 ERROR o.o.b.m.i.gateway.Serial[:70]- Unable to find Serial port '/dev/ttyUSB0'

                          [ 3137.417846] usb 1-1.5: new full-speed USB device number 6 using dwc_otg
                          [ 3137.520958] usb 1-1.5: New USB device found, idVendor=1a86, idProduct=7523
                          [ 3137.520979] usb 1-1.5: New USB device strings: Mfr=0, Product=2, SerialNumber=0
                          [ 3137.520992] usb 1-1.5: Product: USB2.0-Serial
                          [ 3137.522050] ch341 1-1.5:1.0: ch341-uart converter detected
                          [ 3137.525880] usb 1-1.5: ch341-uart converter now attached to ttyUSB0

                          regards
                          Harry

                          T 1 Reply Last reply
                          0
                          • Harry GomezH Harry Gomez

                            I recently moved my OpenHab install from a Raspberry PI 2 to a Raspberry Pi 3 from wheezy to jessie and now the biding is not working. Everything was working perfectly with the previous install now i keep getting the following message, serial port exist and it works. I suspect it has do to with the change from wheezy to jessie but nothing i tries is working.

                            2016-03-25 19:28:20 DEBUG o.o.b.m.i.MySensorsBinding[:96]- activate
                            2016-03-25 19:28:20 ERROR o.o.b.m.i.gateway.Serial[:70]- Unable to find Serial port '/dev/ttyUSB0'

                            [ 3137.417846] usb 1-1.5: new full-speed USB device number 6 using dwc_otg
                            [ 3137.520958] usb 1-1.5: New USB device found, idVendor=1a86, idProduct=7523
                            [ 3137.520979] usb 1-1.5: New USB device strings: Mfr=0, Product=2, SerialNumber=0
                            [ 3137.520992] usb 1-1.5: Product: USB2.0-Serial
                            [ 3137.522050] ch341 1-1.5:1.0: ch341-uart converter detected
                            [ 3137.525880] usb 1-1.5: ch341-uart converter now attached to ttyUSB0

                            regards
                            Harry

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

                            @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 1 Reply Last reply
                            0
                            • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          12

                                          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