MySensors integration

Hi Guys
New to HA, coming from Domoticz, where I used MySensors and other sensors, regarding My Sensors I have added this to the configuration file om HA:

mysensors:
gateways:
- device: ‘172.24.1.109’
persistence_file: ‘./mysensors3.json’
tcp_port: 5003
nodes:
3:
name: ‘THCO2’
5:
name: ‘THLM’
6:
name: ‘Senserbender Micro’
optimistic: false
persistence: true
retain: true
version: ‘2.0’

In the log file I found this:
2020-12-30 13:14:21 WARNING (MainThread) [mysensors] Node 5 is unknown

2020-12-30 13:14:23 ERROR (SyncWorker_6) [mysensors.persistence] Permission denied when writing to /config/path/mysensors3.json

2020-12-30 13:14:33 ERROR (SyncWorker_3) [mysensors.persistence] Permission denied when writing to /config/path/mysensors3.json

2020-12-30 13:14:33 WARNING (MainThread) [mysensors] Node 5 is unknown

2020-12-30 13:14:43 ERROR (SyncWorker_2) [mysensors.persistence] Permission denied when writing to /config/path/mysensors3.json

2020-12-30 13:14:46 WARNING (MainThread) [mysensors] Node 5 is unknown

2020-12-30 13:14:49 WARNING (MainThread) [mysensors] Node 3 is unknown

As I read the documentation, this should be right - and I don’t know how to change rights and I can’t see if the .json file exist, because of the closed HA OS.

Any idea on how to move forward?

I think your persistence file location needs to be in format I have in my config.

Just a note I tried the Ethernet gateway but I had issues (disconnects and freezing) so I moved to the MQTT gateway and it works great.

Edit: I think you need to use the MQTT gateway if you use Mysensors 2.0+
It not very clear in the docs.

mysensors:
  gateways:
    - device: mqtt
      persistence_file: '/config/mysensors1.json'
      topic_in_prefix: 'mygateway1-out'
      topic_out_prefix: 'mygateway1-in'
  optimistic: false
  persistence: true
  retain: true
  version: 2.2

Thanks, has tested - don’t work for me, where is the mysensors1.json file coming from?
I use the Ethernet now, perhaps I should migrate to mqtt

The mysensors1.json is created by the integration. I just named it mysensors1 you can name it what you want just keep the extension json. It keeps track of your nodes when restarting and holds sensor info.

Thanks, Yes I started the SSH integration, used putty to logon and the created the file and changed the rights to “777” then it also worked for me.