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.2 binding

openHAB 2.2 binding

Scheduled Pinned Locked Moved OpenHAB
3 Posts 2 Posters 1.8k Views 2 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.
  • zookazimZ Offline
    zookazimZ Offline
    zookazim
    wrote on last edited by
    #1

    MySensors values not showing in openHAB

    Hi all, newbie here - please could I ask you all to have a look at my configuration and let me know where I am going wrong on my first MySensors DHT node. I'm not able to view temperature or humidity from the node the standard DHT sketch here; https://www.mysensors.org/build/humidity.

    I am using an ethernet gateway running on my Raspberry Pi running Openhabian - all installed well and gateway seems to be working from the logs below and I can see it's receiving the temperature and humidity values as expected. Problem is there are no values showing on the Paper UI control page or my sitemap (screen shots below). I have added a binding to openHAB for my solar panel inverter and that is receiving and displaying values ok.

    Can anyone spot my mistake? Any suggestion very welcome ...

    0_1554022274537_paper_ui_things.png

    1_1554022274537_sitemap.png

    Here is my configuration;

    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Raspbian
    Description:    Raspbian GNU/Linux 9.6 (stretch)
    Release:        9.6
    Codename:       stretch
    
    
    $ cat /home/openhabian/MySensors/README.md
    MySensors Library v2.3.1
    ...
    
    
    $ tail -f /var/log/openhab2/openhab.log
    2019-03-30 11:40:11.637 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;35.4
    2019-03-30 11:41:12.179 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.4
    2019-03-30 11:41:12.303 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;35.0
    2019-03-30 11:42:12.731 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.7
    2019-03-30 11:43:13.295 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.6
    2019-03-30 11:44:13.845 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.5
    2019-03-30 11:44:13.859 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.4
    2019-03-30 11:45:14.419 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.6
    2019-03-30 11:45:14.433 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.6
    2019-03-30 11:46:14.999 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.7
    2019-03-30 11:47:15.567 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.8
    2019-03-30 11:47:15.601 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.2
    
    
    $ cat /etc/openhab2/things/mysensors.things
    
    
    // MySensors Ethernet Bridge
    Bridge mysensors:bridge-eth:gateway [ ipAddress="127.0.0.1", tcpPort=5003, sendDelay=200 , startupCheckEnabled=false ] {
            humidity    hum01    [ nodeId=101, childId=0 ]
            temperature temp01   [ nodeId=101, childId=1 ]
      }
    
    // Solar Edge:
    Thing  solaredge:generic:se2200 [ tokenOrApiKey="********", solarId="******"]
    
    
    
    $ cat /etc/openhab2/items/mysensors.items
    
    // MySensors
    Number          hum01                    "Humidity"    { channel="mysensors:humidity:gateway:hum01:hum" }
    Number          temp01                   "Temperature" { channel="mysensors:temperature:gateway:temp01:temp" }
    
    // Solar Edge
    Number:Power    SE2200_Live_Production   "PV Production [%.2f %unit%]"    {channel="solaredge:generic:se2200:live#production"}
    Number:Energy   SE2200_Day_Production    "Day Production [%.2f kWh]"      {channel="solaredge:generic:se2200:aggregate_day#production"}
    Number:Energy   SE2200_Month_Production  "Month production [%.2f kWh]"    {channel="solaredge:generic:se2200:aggregate_month#production"}
    
    //Demo
    Switch          DEMOSW                   "Demo Switch"
    
    
    $ cat /etc/openhab2/sitemaps/home.sitemap
    
    sitemap home label="Main Menu"
    {
            Frame label="Demo"
            {
                Switch item=DEMOSW
            }
    
            Frame label="Sensors"
            {
                Text item=hum01
                Text item=temp01
            }
    
            Frame label="SolarEdge"
            {
                Text item=SE2200_Live_Production
                Text item=SE2200_Day_Production
                Text item=SE2200_Month_Production
            }
    }
    
    D 1 Reply Last reply
    1
    • zookazimZ zookazim

      MySensors values not showing in openHAB

      Hi all, newbie here - please could I ask you all to have a look at my configuration and let me know where I am going wrong on my first MySensors DHT node. I'm not able to view temperature or humidity from the node the standard DHT sketch here; https://www.mysensors.org/build/humidity.

      I am using an ethernet gateway running on my Raspberry Pi running Openhabian - all installed well and gateway seems to be working from the logs below and I can see it's receiving the temperature and humidity values as expected. Problem is there are no values showing on the Paper UI control page or my sitemap (screen shots below). I have added a binding to openHAB for my solar panel inverter and that is receiving and displaying values ok.

      Can anyone spot my mistake? Any suggestion very welcome ...

      0_1554022274537_paper_ui_things.png

      1_1554022274537_sitemap.png

      Here is my configuration;

      $ lsb_release -a
      No LSB modules are available.
      Distributor ID: Raspbian
      Description:    Raspbian GNU/Linux 9.6 (stretch)
      Release:        9.6
      Codename:       stretch
      
      
      $ cat /home/openhabian/MySensors/README.md
      MySensors Library v2.3.1
      ...
      
      
      $ tail -f /var/log/openhab2/openhab.log
      2019-03-30 11:40:11.637 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;35.4
      2019-03-30 11:41:12.179 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.4
      2019-03-30 11:41:12.303 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;35.0
      2019-03-30 11:42:12.731 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.7
      2019-03-30 11:43:13.295 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.6
      2019-03-30 11:44:13.845 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.5
      2019-03-30 11:44:13.859 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.4
      2019-03-30 11:45:14.419 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.6
      2019-03-30 11:45:14.433 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.6
      2019-03-30 11:46:14.999 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.7
      2019-03-30 11:47:15.567 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;1;1;0;0;25.8
      2019-03-30 11:47:15.601 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 1;0;1;0;1;34.2
      
      
      $ cat /etc/openhab2/things/mysensors.things
      
      
      // MySensors Ethernet Bridge
      Bridge mysensors:bridge-eth:gateway [ ipAddress="127.0.0.1", tcpPort=5003, sendDelay=200 , startupCheckEnabled=false ] {
              humidity    hum01    [ nodeId=101, childId=0 ]
              temperature temp01   [ nodeId=101, childId=1 ]
        }
      
      // Solar Edge:
      Thing  solaredge:generic:se2200 [ tokenOrApiKey="********", solarId="******"]
      
      
      
      $ cat /etc/openhab2/items/mysensors.items
      
      // MySensors
      Number          hum01                    "Humidity"    { channel="mysensors:humidity:gateway:hum01:hum" }
      Number          temp01                   "Temperature" { channel="mysensors:temperature:gateway:temp01:temp" }
      
      // Solar Edge
      Number:Power    SE2200_Live_Production   "PV Production [%.2f %unit%]"    {channel="solaredge:generic:se2200:live#production"}
      Number:Energy   SE2200_Day_Production    "Day Production [%.2f kWh]"      {channel="solaredge:generic:se2200:aggregate_day#production"}
      Number:Energy   SE2200_Month_Production  "Month production [%.2f kWh]"    {channel="solaredge:generic:se2200:aggregate_month#production"}
      
      //Demo
      Switch          DEMOSW                   "Demo Switch"
      
      
      $ cat /etc/openhab2/sitemaps/home.sitemap
      
      sitemap home label="Main Menu"
      {
              Frame label="Demo"
              {
                  Switch item=DEMOSW
              }
      
              Frame label="Sensors"
              {
                  Text item=hum01
                  Text item=temp01
              }
      
              Frame label="SolarEdge"
              {
                  Text item=SE2200_Live_Production
                  Text item=SE2200_Day_Production
                  Text item=SE2200_Month_Production
              }
      }
      
      D Offline
      D Offline
      djal
      wrote on last edited by djal
      #2

      @zookazim From your openhab.log it seems that the sensor is sending messages with nodeId=1, but in your mysensors.things you mapped humidity and temperature channels to nodeId=101

      zookazimZ 1 Reply Last reply
      0
      • D djal

        @zookazim From your openhab.log it seems that the sensor is sending messages with nodeId=1, but in your mysensors.things you mapped humidity and temperature channels to nodeId=101

        zookazimZ Offline
        zookazimZ Offline
        zookazim
        wrote on last edited by
        #3

        @djal Beautiful! Amazing! It works!

        I've been struggling with this issue for over two weeks ... I guess I'll have to learn about the assignment of node numbers in more detail.

        Thanks @djal much appreciated.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        18

        Online

        12.0k

        Users

        11.2k

        Topics

        113.4k

        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