MySensors on Hass.io

Hi, can someone help me setting up mysensors in hassio. It worked fine with my hassbian. Today I installed hassio from the image. I keep getting this error: “Invalid config for [mysensors]: not a valid value for dictionary value @ data[‘mysensors’][‘gateways’][0][‘device’]. Got ‘/dev/ttyUSB0’.”

If i run “hassio host hardware” i can see my usb device under “Serial” -> “/dev/ttyUSB0”. But if I run “ls /dev/tty*” I only get “/dev/tty”

Thats my config:
mysensors:
gateways:
- device: ‘/dev/ttyUSB0’
persistence_file: ‘mysensors.json’
baud_rate: 115200
optimistic: true
persistence: true
retain: true
version: 2.0

So how do I “map” my usb device to show up under /dev/ ?

To get the code formatted correctly for the forum paste the code in
the edit box, leaving a blank line at the start and end, then select
the code and click the </> button in the small menu bar at the top of
the edit box.

The reason you see /dev/tty is you are looking in the container and not at the hardware, which is why hassio host hardware can see it as it’s looking at the real hardware.

As to why it doesn’t work I have no clue, the only thing I can see is that I think the persistence_file needs a path.

Mine looks like this… tho’ mine is over wifi so I don’t map to a serial port…

mysensors:
  gateways:
    - device: '192.168.1.251'
      persistence_file: 'C:\Users\MyPc\AppData\Roaming\.homeassistant\mysensors3.json'
      tcp_port: 5003
  optimistic: false
  persistence: true
  retain: true
  version: 2.0