Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. OpenHAB
  4. openHAB 2.0 binding

openHAB 2.0 binding

Scheduled Pinned Locked Moved OpenHAB
534 Posts 88 Posters 481.6k Views 99 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.
  • S Offline
    S Offline
    Samuel235
    Hardware Contributor
    wrote on last edited by
    #434

    Does this happen to support MQTT gateways? You mention serial or ethernet, but openhab doesn't support ethernet so i'm assuming you mean ethernet as the mqtt ethernet gateway?

    MySensors 2.1.1
    Controller - OpenHAB (Virtual Machine)
    Gateway - Arduino Mega MQTT Gateway W5100

    1 Reply Last reply
    0
    • T TimO

      @Nicklas-Starkel Well no, MQTT Gateway is not yet supported. :-(
      I got distracted by my current hardware project and need to catch up on the binding. First tests of the MQTT addition to the binding look very promising and I'll include it soon.

      The current release is this one: http://www.oberfoell.com/openhab2/org.openhab.binding.mysensors-2.1.0-SNAPSHOT.jar

      While preparing the code to be included in OpenHAB2 I'm currently changing some things that will break the current configuration / things files. But I will give some information about that with the release of the next version.

      andreacioniA Offline
      andreacioniA Offline
      andreacioni
      wrote on last edited by
      #435

      Just few posts before 😉

      @TimO said in openHAB 2.0 binding:

      @Nicklas-Starkel Well no, MQTT Gateway is not yet supported. :-(
      I got distracted by my current hardware project and need to catch up on the binding. First tests of the MQTT addition to the binding look very promising and I'll include it soon.

      The current release is this one: http://www.oberfoell.com/openhab2/org.openhab.binding.mysensors-2.1.0-SNAPSHOT.jar

      While preparing the code to be included in OpenHAB2 I'm currently changing some things that will break the current configuration / things files. But I will give some information about that with the release of the next version.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        Samuel235
        Hardware Contributor
        wrote on last edited by
        #436

        I'm sorry, I ran a ctrl+f search and it either didn't show or i completely missed it, thank you for the prompt reply though.

        In this case then i will have to wait for this release then as i can't achieve what i need to do with rules. Do we have any idea when the release will be?

        MySensors 2.1.1
        Controller - OpenHAB (Virtual Machine)
        Gateway - Arduino Mega MQTT Gateway W5100

        T 1 Reply Last reply
        0
        • Igor AntolićI Offline
          Igor AntolićI Offline
          Igor Antolić
          wrote on last edited by
          #437

          Hi, did anyone hit the problem when it seems that all works fine
          and then mysensors plugin start to think that it failed connecting to bridge (even if it doesnt actually)

          Should I find newer version (last jar I found is since 2017-01-18)

          I put message from node every 1 second, and in log you will see "0;255;3;0;9;TSF:MSG:READ...." every second
          but every 10 second it recconects saying "Failed connecting to bridge...next retry in 10 seconds (Retry No.:31).... Shutting down serial connection!...

          17:40:21.656 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:468
          17:40:21.657 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;468
          17:40:22.421 [ERROR] [col.serial.MySensorsSerialConnection] - Can't connect to serial port. Wrong port?
          17:40:22.424 [ERROR] [col.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:31)
          17:40:22.425 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!
          17:40:22.842 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:486
          17:40:22.844 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;486
          17:40:24.029 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:470
          17:40:24.032 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;470
          17:40:25.218 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:474
          17:40:25.222 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;474
          17:40:26.406 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:486
          17:40:26.407 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;486
          17:40:27.591 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:466
          17:40:27.592 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;466
          17:40:28.783 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:483
          17:40:28.786 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;483
          17:40:29.967 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:483
          17:40:29.972 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;483
          17:40:31.158 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:463
          17:40:31.163 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;463
          17:40:32.344 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:487
          17:40:32.346 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;487
          17:40:32.431 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB0 [baudRate:115200]
          17:40:32.435 [DEBUG] [col.serial.MySensorsSerialConnection] - Final port list: /dev/ttyUSB0
          17:40:33.530 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:470
          17:40:33.533 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;470
          17:40:34.438 [ERROR] [col.serial.MySensorsSerialConnection] - Can't connect to serial port. Wrong port?
          17:40:34.440 [ERROR] [col.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:32)
          17:40:34.441 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!
          17:40:34.720 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:472
          
          Igor AntolićI 1 Reply Last reply
          0
          • Igor AntolićI Igor Antolić

            Hi, did anyone hit the problem when it seems that all works fine
            and then mysensors plugin start to think that it failed connecting to bridge (even if it doesnt actually)

            Should I find newer version (last jar I found is since 2017-01-18)

            I put message from node every 1 second, and in log you will see "0;255;3;0;9;TSF:MSG:READ...." every second
            but every 10 second it recconects saying "Failed connecting to bridge...next retry in 10 seconds (Retry No.:31).... Shutting down serial connection!...

            17:40:21.656 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:468
            17:40:21.657 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;468
            17:40:22.421 [ERROR] [col.serial.MySensorsSerialConnection] - Can't connect to serial port. Wrong port?
            17:40:22.424 [ERROR] [col.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:31)
            17:40:22.425 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!
            17:40:22.842 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:486
            17:40:22.844 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;486
            17:40:24.029 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:470
            17:40:24.032 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;470
            17:40:25.218 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:474
            17:40:25.222 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;474
            17:40:26.406 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:486
            17:40:26.407 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;486
            17:40:27.591 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:466
            17:40:27.592 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;466
            17:40:28.783 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:483
            17:40:28.786 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;483
            17:40:29.967 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:483
            17:40:29.972 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;483
            17:40:31.158 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:463
            17:40:31.163 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;463
            17:40:32.344 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:487
            17:40:32.346 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;487
            17:40:32.431 [DEBUG] [col.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB0 [baudRate:115200]
            17:40:32.435 [DEBUG] [col.serial.MySensorsSerialConnection] - Final port list: /dev/ttyUSB0
            17:40:33.530 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:470
            17:40:33.533 [DEBUG] [rs.internal.protocol.MySensorsReader] - 202;1;1;0;37;470
            17:40:34.438 [ERROR] [col.serial.MySensorsSerialConnection] - Can't connect to serial port. Wrong port?
            17:40:34.440 [ERROR] [col.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:32)
            17:40:34.441 [DEBUG] [col.serial.MySensorsSerialConnection] - Shutting down serial connection!
            17:40:34.720 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;9;TSF:MSG:READ,202-202-0,s=1,c=1,t=37,pt=2,l=2,sg=0:472
            
            Igor AntolićI Offline
            Igor AntolićI Offline
            Igor Antolić
            wrote on last edited by
            #438

            @Igor-Antolić huh,... my mistake, just installed 2.1.0 instead of 2.0.0. It seems it is from 2017-03-07.

            I dont have a good way to find last version of lib. Any suggestion how to check if last stabile version of mysensors java lib?

            T 1 Reply Last reply
            0
            • Igor AntolićI Igor Antolić

              @Igor-Antolić huh,... my mistake, just installed 2.1.0 instead of 2.0.0. It seems it is from 2017-03-07.

              I dont have a good way to find last version of lib. Any suggestion how to check if last stabile version of mysensors java lib?

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

              @Igor-Antolić I'm glad it worked after the update!

              It currently is not possible to automatically update (or check) for the most recent version. There are currently two sources for the binding:

              • the IoT Marketplace
              • The link in the wiki on github

              The most convenient way is the integration in the official openhab2-plugins repository and I'm working on it, but I still have a lot of homework to do.

              Maybe the IoT Marketplace will soon support such mechanisms, there are a few extensions planned.

              1 Reply Last reply
              0
              • S Samuel235

                I'm sorry, I ran a ctrl+f search and it either didn't show or i completely missed it, thank you for the prompt reply though.

                In this case then i will have to wait for this release then as i can't achieve what i need to do with rules. Do we have any idea when the release will be?

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

                @Samuel235 said in openHAB 2.0 binding:

                In this case then i will have to wait for this release then as i can't achieve what i need to do with rules. Do we have any idea when the release will be?

                What is it, what you want to achieve? I'm running MQTT too, as a connection between OpenHAB2 and nodered (50% of my rules are now nodered based). My gateways are serial or ethernet based.

                serial / ethernet gateway
                <->
                OpenHAB2 binding
                <->
                MQTT Event bus
                <->
                nodered

                @Samuel235 Are you willing and have the ability to test the MQTT implementation of the binding? Any help is really appreciated!

                S 1 Reply Last reply
                0
                • ben999B Offline
                  ben999B Offline
                  ben999
                  wrote on last edited by ben999
                  #441

                  Guys,

                  I am getting this in Karaf :

                  16:20:33.171 [WARN ] [thome.io.rest.core.item.ItemResource] - Received HTTP PUT request at 'items/MySensorsDevice21_Lock' with an invalid item type 'Status'.
                  

                  and this in PaperUI

                   "ERROR : undefined - undefined"  "some error occured"
                  

                  when trying to link "Lock status" of an rfid node to an item in PaperUI...

                  Is that anything to do with the binding ? Or shall i ask eslewhere ?

                  Thanks a lot for your help (in general as well ;) )

                  1 Reply Last reply
                  0
                  • T TimO

                    @Samuel235 said in openHAB 2.0 binding:

                    In this case then i will have to wait for this release then as i can't achieve what i need to do with rules. Do we have any idea when the release will be?

                    What is it, what you want to achieve? I'm running MQTT too, as a connection between OpenHAB2 and nodered (50% of my rules are now nodered based). My gateways are serial or ethernet based.

                    serial / ethernet gateway
                    <->
                    OpenHAB2 binding
                    <->
                    MQTT Event bus
                    <->
                    nodered

                    @Samuel235 Are you willing and have the ability to test the MQTT implementation of the binding? Any help is really appreciated!

                    S Offline
                    S Offline
                    Samuel235
                    Hardware Contributor
                    wrote on last edited by
                    #442

                    @TimO - I have implemented a work-around for the issue that i was facing. OpenHAB just can't handle a empty MQTT message, so there is a fix for the pulse sensor to work with OpenHAB by changing the message that it send over to the MQTT server.

                    If you're interested in how this is done, please refer to: https://forum.mysensors.org/topic/3088/pulse-power-meter-with-openhab/4

                    I will be documenting this in possibly better to read steps for people when I get chance to finish the documentation to my new hardware node for the Pulse Sensor.

                    MySensors 2.1.1
                    Controller - OpenHAB (Virtual Machine)
                    Gateway - Arduino Mega MQTT Gateway W5100

                    1 Reply Last reply
                    0
                    • L LastSamurai

                      @TimO Right, I guess thats the problem. I have written my sketch against domoticz, so it expects either a 6 bit hex string (rgb = e.g. ff00ff) or a 9 bit (idk why) rgbw hex string (e.g. #ff00ff00).
                      According to the mysensors docu "ff00ff00" would be right, I guess.

                      RVMRVMR Offline
                      RVMRVMR Offline
                      RVMRVM
                      wrote on last edited by
                      #443

                      @LastSamurai
                      Hello, i'am trying to connect a RGBW node by the serial gateway, is there already a solution for the hexstring format in the bindings or do we need to handle the rgbw items separatly ?
                      kind regards
                      Roger

                      T 1 Reply Last reply
                      0
                      • RVMRVMR RVMRVM

                        @LastSamurai
                        Hello, i'am trying to connect a RGBW node by the serial gateway, is there already a solution for the hexstring format in the bindings or do we need to handle the rgbw items separatly ?
                        kind regards
                        Roger

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

                        @RVMRVM could you give this one a try?

                        https://github.com/tobof/openhab2-addons/issues/76

                        It is not yet integrated into the main branch. If you could test it and give me some feedback I would be very grateful. :)

                        M RVMRVMR 2 Replies Last reply
                        0
                        • L Offline
                          L Offline
                          LastSamurai
                          Hardware Contributor
                          wrote on last edited by
                          #445

                          @RVMRVM Sorry I haven't had the time to test anything yet (was working on another project). Might take me a while to get to.

                          1 Reply Last reply
                          0
                          • P patrick schaerer

                            @TimO said:

                            @bentrik said:

                            I managed to find an addons directory in /usr/share/openhab2/addons, but I can´t find a way to copy the .jar file there, as I get permission denied both through WinSCP in sudo mode and terminal ssh. The folder has permission 0775.

                            That is the correct directory if you installed OH2 via .deb. Seems like you are using a user in WinSCP that is not allowed to write to the directory above. To circumvent this:

                            1. Copy the binding jar to /tmp.
                            2. Login via ssh and execute:
                            sudo cp /tmp/org.openhab.binding.mysensors-2.0.0-SNAPSHOT.jar /usr/share/openhab2/addons/
                            

                            and

                            sudo chmod openhab.openhab /usr/share/openhab2/addons/org.openhab.binding.mysensors-2.0.0-SNAPSHOT.jar
                            

                            OH2 is started/stopped/restarted with

                            service openhab2 start/stop/restart
                            

                            To log into the karaf console do:

                            ssh openhab@localhost -p 8101
                            

                            Password is: habopen

                            Follow the guide/wiki from:

                            In the console enter feature:install openhab-transport-serial
                            

                            I have installed openhab with the openhabian image. I could start the mysensors gateway too.
                            I followed the github-openhab2 installation instructions.
                            To this point

                            In the console enter feature:install openhab-transport-serial
                            

                            I read a lot of posts on this thread but on get this error:

                            openhab> install openhab-transport-serial
                            Bundle IDs:
                            Error executing command: Error installing bundles:
                            	Unable to install bundle openhab-transport-serial
                            

                            the chmod line posted above doesn't work neither. chmod does not accept openhab.openhab

                            I dont have any clue how to install the binding for openhab2 ... why isn't that possible from paperui :-(

                            T Offline
                            T Offline
                            the trung
                            wrote on last edited by
                            #446

                            @patrick-schaerer
                            hi patrick
                            i follow your guide with command to install MPC23017 Binding on openhab2
                            sudo chmod openhab.openhab /usr/share/openhab2/addons/org.openhab.binding.mcp23017-1.9.0.jar
                            but it not work and has information" chmod: invalid mode: ‘openhab.openhab’
                            then i take ":" instead of "." into account like
                            sudo chmod openhab:openhab /usr/share/openhab2/addons/org.openhab.binding.mcp23017-1.9.0.jar
                            but it same error
                            0_1496478264776_upload-ff8c1fc1-81fa-4e92-9e2d-46d4d7ca3f33
                            can you help me, please.
                            thanks you

                            T 1 Reply Last reply
                            0
                            • T the trung

                              @patrick-schaerer
                              hi patrick
                              i follow your guide with command to install MPC23017 Binding on openhab2
                              sudo chmod openhab.openhab /usr/share/openhab2/addons/org.openhab.binding.mcp23017-1.9.0.jar
                              but it not work and has information" chmod: invalid mode: ‘openhab.openhab’
                              then i take ":" instead of "." into account like
                              sudo chmod openhab:openhab /usr/share/openhab2/addons/org.openhab.binding.mcp23017-1.9.0.jar
                              but it same error
                              0_1496478264776_upload-ff8c1fc1-81fa-4e92-9e2d-46d4d7ca3f33
                              can you help me, please.
                              thanks you

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

                              @the-trung This thread is OpenHAB and MySensors binding related. Better ask here: https://community.openhab.org

                              In your case I suppose you need to switch chmod with chown. :)

                              T 1 Reply Last reply
                              0
                              • carlylerC Offline
                                carlylerC Offline
                                carlyler
                                wrote on last edited by carlyler
                                #448

                                I am trying to make use of the customSensor using org.openhab.binding.mysensors-2.1.0-SNAPSHOT.jar I see the node 12 var4 message arrive but it is not being assigned to my item; am I doing something wrong? I have tried both string and number item types.

                                10:37:37.879 [DEBUG] [rsAbstractConnection$MySensorsReader] - 12;0;1;0;27;1023
                                10:37:37.880 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 12 found in gateway
                                10:37:37.881 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 12
                                10:37:37.882 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: var4(27) value to: 1023
                                10:37:37.896 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 12/0 to 2017-06-03T10:37:37.000-0400
                                10:37:37.901 [DEBUG] [rsAbstractConnection$MySensorsReader] - 12;255;3;0;22;63464
                                10:37:37.912 [INFO ] [marthome.event.ItemStateChangedEvent] - Sensor12LastUpdate changed from 2017-06-03T10:37:26.000-0400 to 2017-06-03T10:37:37.000-0400
                                10:37:37.925 [INFO ] [marthome.event.ItemStateChangedEvent] - mySMsg01 changed from 1;4;1;0;1;64.2 to 12;0;1;0;27;1023
                                10:37:37.935 [INFO ] [marthome.event.ItemStateChangedEvent] - mySMsg01 changed from 12;0;1;0;27;1023 to 12;255;3;0;22;63464
                                10:37:41.974 [DEBUG] [rsAbstractConnection$MySensorsReader] - 2;0;1;0;17;544
                                10:37:41.975 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 2 found in gateway
                                10:37:41.976 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 2
                                10:37:41.976 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: watt(17) value to: 544
                                10:37:41.984 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 2/0 to 2017-06-03T10:37:41.000-0400
                                10:37:41.995 [INFO ] [marthome.event.ItemStateChangedEvent] - watt01 changed from 547 to 544
                                10:37:42.005 [DEBUG] [rsAbstractConnection$MySensorsReader] - 2;0;1;0;24;1138982
                                10:37:42.006 [INFO ] [marthome.event.ItemStateChangedEvent] - Sensor02LastUpdate changed from 2017-06-03T10:37:27.000-0400 to 2017-06-03
                                

                                Things

                                Bridge mysensors:bridge-eth:ethGatewayPi [ ipAddress="127.0.0.1", tcpPort=5003, sendDelay=200 ]
                                {
                                   /** define things connected to that bridge here */
                                   humidity         hum01       [ nodeId="1", childId="0" ]
                                   temperature      temp01      [ nodeId="1", childId="1" ]
                                   humidity         hum02       [ nodeId="1", childId="2" ]
                                   temperature      temp02      [ nodeId="1", childId="3" ]
                                   humidity         hum03       [ nodeId="1", childId="4" ]
                                   temperature      temp03      [ nodeId="1", childId="5" ]
                                   power            power01     [ nodeId="2", childId="0" ]
                                   rgbLight         rgb02       [ nodeId="6", childId="0", requestAck=true ]
                                   light            relay01     [ nodeId="7", childId="0", requestAck=true ]
                                   motion           motion01    [ nodeId="8", childId="0", requestAck=true ]
                                   motion           motion02    [ nodeId="9", childId="0", requestAck=true ]
                                   light            relay02     [ nodeId="9", childId="1", requestAck=true ]
                                   cover            cover03     [ nodeId="10", childId="0", requestAck=true, smartSleep=true ]
                                   cover            cover02     [ nodeId="11", childId="0", requestAck=true, smartSleep=true ]
                                   customSensor     blind01     [ nodeId="12", childId="0", requestAck=true, smartSleep=true ]
                                   mySensorsMessage mySMsg01    [ nodeId="999", childId="999" ]
                                }
                                

                                items:

                                String blind1BatReading	    "Blind#1 Battery A/D Reading"  	<battery>			{ channel="mysensors:customSensor:ethGatewayPi:blind01:var4" }										
                                DateTime Sensor12LastUpdate "Last seen Nd12 [%1$ta %1$tT]"       <clock>    	{ channel="mysensors:customSensor:ethGatewayPi:blind01:lastupdate" }
                                

                                edit 6/7: I stand corrected, the variables are being updated. I was fooled by the log. For some reason the log does not show the change the way it did it binding 2.0.0. I placed debug messages in my rules and they're updating.

                                T 1 Reply Last reply
                                0
                                • T TimO

                                  @RVMRVM could you give this one a try?

                                  https://github.com/tobof/openhab2-addons/issues/76

                                  It is not yet integrated into the main branch. If you could test it and give me some feedback I would be very grateful. :)

                                  M Offline
                                  M Offline
                                  matt shepherd
                                  wrote on last edited by
                                  #449

                                  @TimO is it possible to configure using paper ui?

                                  cheers
                                  Matt

                                  T 1 Reply Last reply
                                  0
                                  • T TimO

                                    @the-trung This thread is OpenHAB and MySensors binding related. Better ask here: https://community.openhab.org

                                    In your case I suppose you need to switch chmod with chown. :)

                                    T Offline
                                    T Offline
                                    the trung
                                    wrote on last edited by
                                    #450

                                    @TimO
                                    I follow your guid and it's ok, then i checks karaf and see there 0_1496630110147_karaf2.png
                                    is this mean i installed my binding?
                                    and i have question
                                    did you fix error : Unable to install bundle openhab-transport-serial
                                    thanks you so much

                                    T 1 Reply Last reply
                                    0
                                    • M matt shepherd

                                      @TimO is it possible to configure using paper ui?

                                      cheers
                                      Matt

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

                                      @matt-shepherd yes!

                                      1 Reply Last reply
                                      0
                                      • carlylerC carlyler

                                        I am trying to make use of the customSensor using org.openhab.binding.mysensors-2.1.0-SNAPSHOT.jar I see the node 12 var4 message arrive but it is not being assigned to my item; am I doing something wrong? I have tried both string and number item types.

                                        10:37:37.879 [DEBUG] [rsAbstractConnection$MySensorsReader] - 12;0;1;0;27;1023
                                        10:37:37.880 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 12 found in gateway
                                        10:37:37.881 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 12
                                        10:37:37.882 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: var4(27) value to: 1023
                                        10:37:37.896 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 12/0 to 2017-06-03T10:37:37.000-0400
                                        10:37:37.901 [DEBUG] [rsAbstractConnection$MySensorsReader] - 12;255;3;0;22;63464
                                        10:37:37.912 [INFO ] [marthome.event.ItemStateChangedEvent] - Sensor12LastUpdate changed from 2017-06-03T10:37:26.000-0400 to 2017-06-03T10:37:37.000-0400
                                        10:37:37.925 [INFO ] [marthome.event.ItemStateChangedEvent] - mySMsg01 changed from 1;4;1;0;1;64.2 to 12;0;1;0;27;1023
                                        10:37:37.935 [INFO ] [marthome.event.ItemStateChangedEvent] - mySMsg01 changed from 12;0;1;0;27;1023 to 12;255;3;0;22;63464
                                        10:37:41.974 [DEBUG] [rsAbstractConnection$MySensorsReader] - 2;0;1;0;17;544
                                        10:37:41.975 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 2 found in gateway
                                        10:37:41.976 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 0 found in node 2
                                        10:37:41.976 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: watt(17) value to: 544
                                        10:37:41.984 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 2/0 to 2017-06-03T10:37:41.000-0400
                                        10:37:41.995 [INFO ] [marthome.event.ItemStateChangedEvent] - watt01 changed from 547 to 544
                                        10:37:42.005 [DEBUG] [rsAbstractConnection$MySensorsReader] - 2;0;1;0;24;1138982
                                        10:37:42.006 [INFO ] [marthome.event.ItemStateChangedEvent] - Sensor02LastUpdate changed from 2017-06-03T10:37:27.000-0400 to 2017-06-03
                                        

                                        Things

                                        Bridge mysensors:bridge-eth:ethGatewayPi [ ipAddress="127.0.0.1", tcpPort=5003, sendDelay=200 ]
                                        {
                                           /** define things connected to that bridge here */
                                           humidity         hum01       [ nodeId="1", childId="0" ]
                                           temperature      temp01      [ nodeId="1", childId="1" ]
                                           humidity         hum02       [ nodeId="1", childId="2" ]
                                           temperature      temp02      [ nodeId="1", childId="3" ]
                                           humidity         hum03       [ nodeId="1", childId="4" ]
                                           temperature      temp03      [ nodeId="1", childId="5" ]
                                           power            power01     [ nodeId="2", childId="0" ]
                                           rgbLight         rgb02       [ nodeId="6", childId="0", requestAck=true ]
                                           light            relay01     [ nodeId="7", childId="0", requestAck=true ]
                                           motion           motion01    [ nodeId="8", childId="0", requestAck=true ]
                                           motion           motion02    [ nodeId="9", childId="0", requestAck=true ]
                                           light            relay02     [ nodeId="9", childId="1", requestAck=true ]
                                           cover            cover03     [ nodeId="10", childId="0", requestAck=true, smartSleep=true ]
                                           cover            cover02     [ nodeId="11", childId="0", requestAck=true, smartSleep=true ]
                                           customSensor     blind01     [ nodeId="12", childId="0", requestAck=true, smartSleep=true ]
                                           mySensorsMessage mySMsg01    [ nodeId="999", childId="999" ]
                                        }
                                        

                                        items:

                                        String blind1BatReading	    "Blind#1 Battery A/D Reading"  	<battery>			{ channel="mysensors:customSensor:ethGatewayPi:blind01:var4" }										
                                        DateTime Sensor12LastUpdate "Last seen Nd12 [%1$ta %1$tT]"       <clock>    	{ channel="mysensors:customSensor:ethGatewayPi:blind01:lastupdate" }
                                        

                                        edit 6/7: I stand corrected, the variables are being updated. I was fooled by the log. For some reason the log does not show the change the way it did it binding 2.0.0. I placed debug messages in my rules and they're updating.

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

                                        @carlyler thank you for filing an issue, I'll look into it.

                                        1 Reply Last reply
                                        0
                                        • T the trung

                                          @TimO
                                          I follow your guid and it's ok, then i checks karaf and see there 0_1496630110147_karaf2.png
                                          is this mean i installed my binding?
                                          and i have question
                                          did you fix error : Unable to install bundle openhab-transport-serial
                                          thanks you so much

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

                                          @the-trung yes, the binding seems to be installed. Serial transport is needed for MySensors. I'm not able to answer questions about mcp binding.

                                          RVMRVMR 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          19

                                          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