Invalid configuration on hassio
-
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.
-
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.
-
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' -
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?
-
I’m experiencing the same error and issues.
-
@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.
-
I'm having the same problem as well, very frustrating not getting it to work!
-
@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.
@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 -
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.
-
HASSIO 0.70 on RPi with serial gateway attached still having configuration check problem with mysensors when executing
hassio ha checkThis 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
-