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. Home Assistant
  4. unable to open USB port

unable to open USB port

Scheduled Pinned Locked Moved Home Assistant
23 Posts 4 Posters 6.2k Views 4 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.
  • chillimanC Offline
    chillimanC Offline
    chilliman
    wrote on last edited by
    #14

    drock1985.
    i cut and paste the example you posted but a get a error

    16-07-17 23:07:10 mysensors.mysensors: File does not exist or is not readable: home/pi/.homeassistant
    16-07-17 23:07:10 mysensors.mysensors: Trying backup file: home/pi/.homeassistant.bak
    16-07-17 23:07:10 mysensors.mysensors: File does not exist or is not readable: home/pi/.homeassistant.bak
    16-07-17 23:07:10 mysensors.mysensors: Failed to load sensors from file: home/pi/.homeassistant

    not sure what is going on hopefully you can help me
    chilliman

    D 1 Reply Last reply
    0
    • chillimanC chilliman

      drock1985.
      i cut and paste the example you posted but a get a error

      16-07-17 23:07:10 mysensors.mysensors: File does not exist or is not readable: home/pi/.homeassistant
      16-07-17 23:07:10 mysensors.mysensors: Trying backup file: home/pi/.homeassistant.bak
      16-07-17 23:07:10 mysensors.mysensors: File does not exist or is not readable: home/pi/.homeassistant.bak
      16-07-17 23:07:10 mysensors.mysensors: Failed to load sensors from file: home/pi/.homeassistant

      not sure what is going on hopefully you can help me
      chilliman

      D Offline
      D Offline
      drock1985
      wrote on last edited by drock1985
      #15

      @chilliman said:

      mysensors:
      gateways:
      - device: '/dev/ttyUSB0'
      persistence_file: 'home/pi/.homeassistant'
      baud_rate: 115200
      debug: false
      persistence: true

      My bad, forgot to add the file at the end of the directory.

      mysensors:
        gateways:
          - device: '/dev/ttyUSB0'
            persistence_file: 'home/pi/.homeassistant/mysensors.json'
            baud_rate: 115200
        debug: false
        persistence: true
      

      My Projects
      2 Door Chime Sensor
      Washing Machine Monitor

      1 Reply Last reply
      0
      • chillimanC Offline
        chillimanC Offline
        chilliman
        wrote on last edited by
        #16

        drock1985
        i just changed the conf file to with the latest and i get this error massage
        16-07-17 23:16:27 mysensors.mysensors: File does not exist or is not readable: home/pi/.homeassistant/mysensors.json
        16-07-17 23:16:27 mysensors.mysensors: Trying backup file: home/pi/.homeassistant/mysensors.json.bak
        16-07-17 23:16:27 mysensors.mysensors: File does not exist or is not readable: home/pi/.homeassistant/mysensors.json.bak
        16-07-17 23:16:27 mysensors.mysensors: Failed to load sensors from file: home/pi/.homeassistant/mysensors.json

        chilliman

        1 Reply Last reply
        0
        • chillimanC Offline
          chillimanC Offline
          chilliman
          wrote on last edited by
          #17

          Drock1985
          please find attached HA start up file
          0_1468799007226_HA-startup.txt

          thanks
          chilliman

          martinhjelmareM 1 Reply Last reply
          0
          • chillimanC chilliman

            Drock1985
            please find attached HA start up file
            0_1468799007226_HA-startup.txt

            thanks
            chilliman

            martinhjelmareM Offline
            martinhjelmareM Offline
            martinhjelmare
            Plugin Developer
            wrote on last edited by martinhjelmare
            #18

            @chilliman

            The first time you start home assistant, the persistence file will not have been created, so you will get the warning message even if you have set the correct path. Only after a sensor has reported a value will the persistence file be written. You should always include a sending of initial value in your setup/presentation function for a node, so once you have started the node, it will be added as a device to home assistant and the persistence file will be populated.

            1 Reply Last reply
            0
            • chillimanC Offline
              chillimanC Offline
              chilliman
              wrote on last edited by
              #19

              martin.
              i am sorry i having a newbie moment i just need to understand what is happening so the way it is setup is good.
              if so i have few more question , i have the gateway and all have a node with a motion sensor attached so how do i get the motion sensor to show up on HA .
              sorry for not understanding its a very steep learning curve.

              chilliman

              D 1 Reply Last reply
              0
              • chillimanC chilliman

                martin.
                i am sorry i having a newbie moment i just need to understand what is happening so the way it is setup is good.
                if so i have few more question , i have the gateway and all have a node with a motion sensor attached so how do i get the motion sensor to show up on HA .
                sorry for not understanding its a very steep learning curve.

                chilliman

                D Offline
                D Offline
                drock1985
                wrote on last edited by
                #20

                @chilliman

                Not sure what else to tell you. Like Martin said, for a node to appear at all in HA; it must do two things. 1) send the full presentation on the node start. Easiest way to do that is to start HA, and after HA is fully started put power to your motion sensor. 2) It must send a valid sensor status. In the case of a motion sensor, I believe it is either 1 or 0 (1 being motion detected, 0 being none).

                The only thing I can see is maybe the / needs to be in front of home. Can't see it causing this many issues though.

                mysensors:
                  gateways:
                    - device: '/dev/ttyUSB0'
                      persistence_file: '/home/pi/.homeassistant/mysensors.json'
                      baud_rate: 115200
                  debug: false
                  persistence: true
                

                Other than that i'm not sure what else to suggest. If everything is configured right, it should see it. You may also want to check out the debug part of MySensors config and HA to better determine your issue. @martinhjelmare help me with that issue some time ago.

                My Projects
                2 Door Chime Sensor
                Washing Machine Monitor

                SebexS 1 Reply Last reply
                1
                • chillimanC Offline
                  chillimanC Offline
                  chilliman
                  wrote on last edited by
                  #21

                  Drock1985 & Martin.
                  thanks guys i have it working just needed to do the full presentation and where it was.
                  just a newbie mistake.
                  thanks again
                  chilliman.

                  D 1 Reply Last reply
                  1
                  • chillimanC chilliman

                    Drock1985 & Martin.
                    thanks guys i have it working just needed to do the full presentation and where it was.
                    just a newbie mistake.
                    thanks again
                    chilliman.

                    D Offline
                    D Offline
                    drock1985
                    wrote on last edited by
                    #22

                    @chilliman

                    No problem; just glad to hear you got it working. Everyone is new sometime.

                    FYI I made quite a few mistakes in the configuration.yaml file - took me a while to realize spaces were important ;)

                    Let us know if you have any other problems.

                    My Projects
                    2 Door Chime Sensor
                    Washing Machine Monitor

                    1 Reply Last reply
                    0
                    • D drock1985

                      @chilliman

                      Not sure what else to tell you. Like Martin said, for a node to appear at all in HA; it must do two things. 1) send the full presentation on the node start. Easiest way to do that is to start HA, and after HA is fully started put power to your motion sensor. 2) It must send a valid sensor status. In the case of a motion sensor, I believe it is either 1 or 0 (1 being motion detected, 0 being none).

                      The only thing I can see is maybe the / needs to be in front of home. Can't see it causing this many issues though.

                      mysensors:
                        gateways:
                          - device: '/dev/ttyUSB0'
                            persistence_file: '/home/pi/.homeassistant/mysensors.json'
                            baud_rate: 115200
                        debug: false
                        persistence: true
                      

                      Other than that i'm not sure what else to suggest. If everything is configured right, it should see it. You may also want to check out the debug part of MySensors config and HA to better determine your issue. @martinhjelmare help me with that issue some time ago.

                      SebexS Offline
                      SebexS Offline
                      Sebex
                      wrote on last edited by
                      #23
                      This post is deleted!
                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      13

                      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