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. Development
  3. gateway on hass.io - not getting the sensors

gateway on hass.io - not getting the sensors

Scheduled Pinned Locked Moved Development
6 Posts 3 Posters 1.9k Views 3 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.
  • Giorgio GilestroG Offline
    Giorgio GilestroG Offline
    Giorgio Gilestro
    wrote on last edited by
    #1

    I am relocating my network from veralite to home assistant and encountering some problems.
    The HASS server runs on a raspberry Pi 3 through hass.io
    The serial gateway appears to be properly running but there is no sign of life in home assistant beside a configuration file being created with json values about only one of the many nodes I have. No device is being created in the the webUI.
    The /config/mysensors.json file looks like this:

    {
       "0":{
          "sensor_id":0,
          "children":{
    
          },
          "type":18,
          "sketch_name":null,
          "sketch_version":null,
          "battery_level":0,
          "protocol_version":"2.1.1"
       },
       "7":{
          "sensor_id":7,
          "children":{
             "0":{
                "id":0,
                "type":1,
                "description":"",
                "values":{
    
                }
             },
             "1":{
                "id":1,
                "type":4,
                "description":"",
                "values":{
    
                }
             },
             "2":{
                "id":2,
                "type":3,
                "description":"",
                "values":{
    
                }
             },
             "3":{
                "id":3,
                "type":25,
                "description":"",
                "values":{
    
                }
             }
          },
          "type":17,
          "sketch_name":"mySensors Picture Frame",
          "sketch_version":"1.5",
          "battery_level":0,
          "protocol_version":"2.0.0"
       }
    }
    

    To check whether the gateway can receive any input, I have changed the code on one of my sensor and updated - among the rest - the version number from 1.5 to 1.6. As you may see in the file above, this was not picked up by home assistant in any way.

    In general, I am having a hard time troubleshooting what is wrong because I get not debug information regarding mysensors despite the fact this is properly (I think) configured in the configuration.yaml file. Here's the relevant portion.
    Any idea of what could be going wrong? Does anyone have a hello_world sketch that is known to be working with homeassistant that I could try? Thanks?

    logger:
      default: info
      logs:
        requests.packages.urllib3.connectionpool: critical
        requests.packages.urllib3: critical
        urllib3.connectionpool: critical
        homeassistant.components.cameras: fatal
        homeassistant.components.mysensors: debug
    
    mysensors:
      gateways:
         - device: '/dev/ttyUSB0'
           persistence_file: '/config/mysensors.json'
           baud_rate: 115200
      optimistic: false
      persistence: true
      version: 2.0
    
    hautomateH martinhjelmareM 2 Replies Last reply
    0
    • Giorgio GilestroG Giorgio Gilestro

      I am relocating my network from veralite to home assistant and encountering some problems.
      The HASS server runs on a raspberry Pi 3 through hass.io
      The serial gateway appears to be properly running but there is no sign of life in home assistant beside a configuration file being created with json values about only one of the many nodes I have. No device is being created in the the webUI.
      The /config/mysensors.json file looks like this:

      {
         "0":{
            "sensor_id":0,
            "children":{
      
            },
            "type":18,
            "sketch_name":null,
            "sketch_version":null,
            "battery_level":0,
            "protocol_version":"2.1.1"
         },
         "7":{
            "sensor_id":7,
            "children":{
               "0":{
                  "id":0,
                  "type":1,
                  "description":"",
                  "values":{
      
                  }
               },
               "1":{
                  "id":1,
                  "type":4,
                  "description":"",
                  "values":{
      
                  }
               },
               "2":{
                  "id":2,
                  "type":3,
                  "description":"",
                  "values":{
      
                  }
               },
               "3":{
                  "id":3,
                  "type":25,
                  "description":"",
                  "values":{
      
                  }
               }
            },
            "type":17,
            "sketch_name":"mySensors Picture Frame",
            "sketch_version":"1.5",
            "battery_level":0,
            "protocol_version":"2.0.0"
         }
      }
      

      To check whether the gateway can receive any input, I have changed the code on one of my sensor and updated - among the rest - the version number from 1.5 to 1.6. As you may see in the file above, this was not picked up by home assistant in any way.

      In general, I am having a hard time troubleshooting what is wrong because I get not debug information regarding mysensors despite the fact this is properly (I think) configured in the configuration.yaml file. Here's the relevant portion.
      Any idea of what could be going wrong? Does anyone have a hello_world sketch that is known to be working with homeassistant that I could try? Thanks?

      logger:
        default: info
        logs:
          requests.packages.urllib3.connectionpool: critical
          requests.packages.urllib3: critical
          urllib3.connectionpool: critical
          homeassistant.components.cameras: fatal
          homeassistant.components.mysensors: debug
      
      mysensors:
        gateways:
           - device: '/dev/ttyUSB0'
             persistence_file: '/config/mysensors.json'
             baud_rate: 115200
        optimistic: false
        persistence: true
        version: 2.0
      
      hautomateH Offline
      hautomateH Offline
      hautomate
      wrote on last edited by
      #2

      @giorgio-gilestro

      Have a look at this thread. Maybe the latest release will show some logging for you?

      https://community.home-assistant.io/t/mysensors-mqtt-gateway-integration/39743/3

      Giorgio GilestroG 1 Reply Last reply
      0
      • Giorgio GilestroG Giorgio Gilestro

        I am relocating my network from veralite to home assistant and encountering some problems.
        The HASS server runs on a raspberry Pi 3 through hass.io
        The serial gateway appears to be properly running but there is no sign of life in home assistant beside a configuration file being created with json values about only one of the many nodes I have. No device is being created in the the webUI.
        The /config/mysensors.json file looks like this:

        {
           "0":{
              "sensor_id":0,
              "children":{
        
              },
              "type":18,
              "sketch_name":null,
              "sketch_version":null,
              "battery_level":0,
              "protocol_version":"2.1.1"
           },
           "7":{
              "sensor_id":7,
              "children":{
                 "0":{
                    "id":0,
                    "type":1,
                    "description":"",
                    "values":{
        
                    }
                 },
                 "1":{
                    "id":1,
                    "type":4,
                    "description":"",
                    "values":{
        
                    }
                 },
                 "2":{
                    "id":2,
                    "type":3,
                    "description":"",
                    "values":{
        
                    }
                 },
                 "3":{
                    "id":3,
                    "type":25,
                    "description":"",
                    "values":{
        
                    }
                 }
              },
              "type":17,
              "sketch_name":"mySensors Picture Frame",
              "sketch_version":"1.5",
              "battery_level":0,
              "protocol_version":"2.0.0"
           }
        }
        

        To check whether the gateway can receive any input, I have changed the code on one of my sensor and updated - among the rest - the version number from 1.5 to 1.6. As you may see in the file above, this was not picked up by home assistant in any way.

        In general, I am having a hard time troubleshooting what is wrong because I get not debug information regarding mysensors despite the fact this is properly (I think) configured in the configuration.yaml file. Here's the relevant portion.
        Any idea of what could be going wrong? Does anyone have a hello_world sketch that is known to be working with homeassistant that I could try? Thanks?

        logger:
          default: info
          logs:
            requests.packages.urllib3.connectionpool: critical
            requests.packages.urllib3: critical
            urllib3.connectionpool: critical
            homeassistant.components.cameras: fatal
            homeassistant.components.mysensors: debug
        
        mysensors:
          gateways:
             - device: '/dev/ttyUSB0'
               persistence_file: '/config/mysensors.json'
               baud_rate: 115200
          optimistic: false
          persistence: true
          version: 2.0
        
        martinhjelmareM Offline
        martinhjelmareM Offline
        martinhjelmare
        Plugin Developer
        wrote on last edited by
        #3

        @giorgio-gilestro

        Serial logs from both a node and gateway can usually help pinpointing issues in the mysensors part of the comm link. This can also be used to rule out problems in that part.

        Is the mysensors serial gateway running on a standalone arduino connected via USB to the RPi3?

        1 Reply Last reply
        0
        • hautomateH hautomate

          @giorgio-gilestro

          Have a look at this thread. Maybe the latest release will show some logging for you?

          https://community.home-assistant.io/t/mysensors-mqtt-gateway-integration/39743/3

          Giorgio GilestroG Offline
          Giorgio GilestroG Offline
          Giorgio Gilestro
          wrote on last edited by
          #4

          @hautomate I am already running version 0.61.1

          @martinhjelmare Yes, it's the same serial gateway that used to be connected to my veralite. The Pi3 is powered by a 3A power supply so there's should be enough juice for everyone.
          Not sure how to intercept the serial log from the gateway, though. I've used socat for this purpose in the past but I doubt I can do from within a hassio instance.

          hautomateH 1 Reply Last reply
          0
          • Giorgio GilestroG Offline
            Giorgio GilestroG Offline
            Giorgio Gilestro
            wrote on last edited by
            #5

            Ok, so this miraculously started to work today after 48h. Obviously, I did not change anything myself. Go figure.

            1 Reply Last reply
            0
            • Giorgio GilestroG Giorgio Gilestro

              @hautomate I am already running version 0.61.1

              @martinhjelmare Yes, it's the same serial gateway that used to be connected to my veralite. The Pi3 is powered by a 3A power supply so there's should be enough juice for everyone.
              Not sure how to intercept the serial log from the gateway, though. I've used socat for this purpose in the past but I doubt I can do from within a hassio instance.

              hautomateH Offline
              hautomateH Offline
              hautomate
              wrote on last edited by
              #6

              @giorgio-gilestro said in gateway on hass.io - not getting the sensors:

              Not sure how to intercept the serial log from the gateway, though. I've used socat for this purpose in the past but I doubt I can do from within a hassio instance.

              I think you can see that if you SSH to the host.

              https://home-assistant.io/developers/hassio/debugging/

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


              6

              Online

              11.7k

              Users

              11.2k

              Topics

              113.0k

              Posts


              Copyright 2019 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