MySensors ethernet setup failed, invalid config?

I get the following in the log when starting hass.io 0.61.1.

Failed config
  mysensors:
    gateways: [source /config/configuration.yaml:109]
      - device: 192.168.1.90
        persistence_file: /config/mysensors3.json
        tcp_port: 5003
    persistence: True
    version: 2.0
  General Errors:
    - Setup failed for mysensors: Invalid config.
Successful config (partial)
  mysensors:

Here’s the actual config:

mysensors:
  gateways:
    - device: '192.168.1.90'
      persistence_file: '/config/mysensors3.json'
      tcp_port: 5003
  persistence: true
  version: '2.0'

What’s invalid?

Just saw this farther up in the log.

2018-01-25 19:56:14 ERROR (MainThread) [homeassistant.config] Invalid config for [mysensors]: /config directory does not exist or is not writetable for dictionary value @ data[‘mysensors’][‘gateways’][0][‘persistence_file’]. Got ‘/config/mysensors3.json’. (See /config/configuration.yaml, line 108). Please check the docs at https://home-assistant.io/components/mysensors/

If you do “ls -l” in the config dir, who owns the file and does hass.io have permission to write to it?

core-ssh:~# ls -l /config/mysensors3.json 
-rw-r--r--    1 root     root           443 Jan 22 22:13 /config/mysensors3.json

I presume hass.io can write to it as everything in /config is owned by root:root.

Yep looks good :slight_smile: try the persistence_file: ‘/config/mysensors3.json’ without the /config/ or remove the leading / so it becomes config/mysensors3.json