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. Invalid configuration on hassio

Invalid configuration on hassio

Scheduled Pinned Locked Moved Home Assistant
13 Posts 7 Posters 7.6k Views 9 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.
  • martinhjelmareM Offline
    martinhjelmareM Offline
    martinhjelmare
    Plugin Developer
    wrote on last edited by
    #2

    I think you need to specify the absolute path to the persistence file. It should be in a directory where home assistant has write permission. Usually the configuration directory is good.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      peerv
      wrote on last edited by
      #3

      The mysensors.json is in the same directory as the configuration.yaml.

      The first ERROR line in the log above says " unable to setup error log. But in my config directory is also a "home-assistant.log".

      Despite the errors in the config check the system seems to works as far as I can see.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rusg323
        wrote on last edited by
        #4

        I am having the same issue with Hass.io. I have tried defining the persistence file location as '/core/config/mysensors1.json', '/config/mysensors1.json', 'congif/mysensors1.json', ... I have tried having it within quotes, double quotes, and without.

        Any thoughts would be appreciated.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          BucksBass
          wrote on last edited by
          #5

          I'm getting similar errors:

          core-ssh:/config# hassio ha check
          ERROR
          starting version 3.2.4
          Testing configuration at /config
          ERROR:homeassistant.config:Invalid config for [mysensors]: /config directory does not exist or is not writeable for dictionary value @ data['mysensors']['gateways'][0]['persistence_file']. Got '/config/mysensors3.json'
          not a valid value for dictionary value @ data['mysensors']['gateways'][0]['device']. Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 112). Please check the docs at https://home-assistant.io/components/mysensors/
          ERROR:homeassistant.setup:Setup failed for mysensors: Invalid config.
          Failed config
          mysensors:
          gateways: [source /config/configuration.yaml:113]
          - device: /dev/ttyUSB0
          persistence_file: /config/mysensors3.json
          optimistic: False
          persistence: True
          retain: True
          version: 2.1
          General Errors:
          - Setup failed for mysensors: Invalid config.
          Successful config (partial)
          mysensors:

            gateways:
              - device: '/dev/ttyUSB0'
                persistence_file: '/config/mysensors3.json'
                
            optimistic: false
            persistence: true
            retain: true
            version: '2.1'
          1 Reply Last reply
          0
          • P Offline
            P Offline
            peerv
            wrote on last edited by
            #6

            On the latest HASSIO release now and still not solved Can someone help with this problem?

            core-ssh:~# hassio ha check
            ERROR
            starting version 3.2.4
            Testing configuration at /config
            Failed config
              mysensors:
                - Invalid config for [mysensors]: /config directory does not exist or is not writeable        
            for dictionary value @ data
            ['mysensors']
            ['gateways'][0]
            ['persistence_file']. Got '/config/mysensors.json'not a valid value for dictionary value @ data
            ['mysensors']
            ['gateways']
            [0]
            ['device']. Got '/dev/ttyUSB0'. 
            (See /config/configuration.yaml, line 85). 
            Please check the docs at https://home-assistant.io/components/mysensors/
            

            The mysensors.json and configuration.yaml are in the same config directory.
            Despite the above problem the system seems to work fine.

            Is this a fake error?

            1 Reply Last reply
            0
            • I Offline
              I Offline
              iteafreely
              wrote on last edited by
              #7

              I’m experiencing the same error and issues.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mredone
                wrote on last edited by
                #8

                Make new dir in config dir. Then add by hand mysensors.json.

                I 1 Reply Last reply
                0
                • M mredone

                  Make new dir in config dir. Then add by hand mysensors.json.

                  I Offline
                  I Offline
                  iteafreely
                  wrote on last edited by
                  #9

                  @mredone said in Invalid configuration on hassio:

                  Make new dir in config dir. Then add by hand mysensors.json.

                  Thank you for the suggestion. That does not resolve the issue. It appears it is only an issue with the config checker. The file exists and is written to just fine so there is no real effect on operation. However, it prevents using the built-in HA restart function since that won't execute fully when the checker throws an error.

                  P 1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    antonholmstedt
                    wrote on last edited by
                    #10

                    I'm having the same problem as well, very frustrating not getting it to work!

                    1 Reply Last reply
                    0
                    • I iteafreely

                      @mredone said in Invalid configuration on hassio:

                      Make new dir in config dir. Then add by hand mysensors.json.

                      Thank you for the suggestion. That does not resolve the issue. It appears it is only an issue with the config checker. The file exists and is written to just fine so there is no real effect on operation. However, it prevents using the built-in HA restart function since that won't execute fully when the checker throws an error.

                      P Offline
                      P Offline
                      peerv
                      wrote on last edited by
                      #11

                      @iteafreely When I make a configuration change, this change is not gone thru after a restart. I have to power off/on the RPi to activate the configuration change.
                      So, you think this is also because of this configuration error

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        peerv
                        wrote on last edited by
                        #12

                        I am now at 0.69.1 HASS on Rpi and still having configuration check problem.

                        This is my configuration:

                        mysensors:
                          gateways:
                            - device: '/dev/ttyUSB0'
                              persistence_file: '/config/mysensors.json'
                              baud_rate: 115200
                          optimistic: false
                          persistence: true
                          retain: true
                          version: '2.0'
                        
                        

                        And this is the configuration check ERROR:

                        core-ssh:~# hassio ha check
                        ERROR
                        starting version 3.2.4
                        Testing configuration at /config
                        Failed config
                          mysensors:
                            - Invalid config for [mysensors]: /config directory does not exist or is not writeable for dictionary value @ data['mysensors']['gateways'][0]['persistence_ file']. Got /config/mysensors.json'
                        not a valid value for dictionary value @ data['mysensors']['gateways'][0]['device'].
                        Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 85). Please check the docs at https://home-assistant.io/components/mysensors/
                        

                        A secondary result of this error is the restarting the Rpi does NOT load a new configuration!
                        The only way to load a new configuration file is to power off/on the Rpi.

                        However all the rest seems to funtion well !?

                        Really need help with this.

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          peerv
                          wrote on last edited by
                          #13

                          HASSIO 0.70 on RPi with serial gateway attached still having configuration check problem with mysensors when executing

                          hassio ha check
                          

                          This is what I did to try to solve:

                          • Deleted the configuration.yaml and the mysensors.json

                          • Restarted the RPi and hassio installed the default configuration.yaml

                          • Added the following mysensors configuration to the default configuration.yaml

                          mysensors:
                            gateways:
                              - device: '/dev/ttyUSB0'
                                persistence_file: 'mysensors.json'
                            persistence: true
                            retain: true
                            version: '2.2'
                          
                          • Restarted the Rpi and checked that hassio had installed the mysensors.json in the /config directory
                            All my sensors were added to the mysensors.json

                          • The whole system seems to work OK!

                          • However when I run "hassio ha check" on the RPi I get the following error:

                          core-ssh:~# hassio ha check
                          ERROR
                          Testing configuration at /config
                          Failed config
                            mysensors:
                              - Invalid config for [mysensors]: /config directory does not exist or is not                                   writeable for dictionary value @ data['mysensors']['gateways'][0]['persistence_                                  file']. Got 'mysensors.json'
                          not a valid value for dictionary value @ data['mysensors']['gateways'][0]['devic                                  e']. Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 59). Please check                                   the docs at https://home-assistant.io/components/mysensors/
                              - config: ?
                                frontend: ?
                                  javascript_version: auto
                                group: ?
                                history: ?
                                  exclude: ?
                                  include: ?
                                  use_include_order: False
                                http: ?
                                introduction: ?
                                logbook: ?
                                logger: [source /config/configuration.yaml:52]
                                  default: info
                                  logs: [source /config/configuration.yaml:54]
                                    homeassistant.components.mysensors: debug
                                    mysensors: debug
                                mysensors: [source /config/configuration.yaml:59]
                                  gateways: [source /config/configuration.yaml:60]
                                    - device: /dev/ttyUSB0
                                      persistence_file: mysensors.json
                                  persistence: True
                                  retain: True
                                  version: 2.2
                                script: ?
                                updater: ?
                                  include_used_components: False
                                  reporting: True
                          Successful config (partial)
                            mysensors
                          
                          • There are no errors in the system log! According to the log the system is reading and writing fine to and from the mysensors.json

                          • The secondary annoyance from this problem is the fact that I cannot reload the configuration file after a change. The only way to reload the configuration file is by powering off/on the RPi

                          • I added an issue on github: https://github.com/home-assistant/hassio/issues/478

                          Any help appreciated

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


                          11

                          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