Newbie: please help getting mysensors gateway running

Hello,

sure someone can help me as a bit of newbie to Hass.IO (coming from Domoticz).

I run the Hass.IO docker v.0.60.0 on a RPi 3b
I now want to attach the mysensors gateway. I dod so and “dmesg | grep tty” shows:

[ 1.171016] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 281.086169] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0

The excerpt from the configuration.yaml is:

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

EDIT: corrected YAML spaces above.

When starting homeassistant i got message:

Invalid Confih
The following components and platfoprms could not be set up:
- mysensors
Please check your config

I see there is no .json file written. I restrated homeassistant and also my RPi already.
Sure i am doing something little wrong and some one of you can point me into right direction.
So thanks in advance for your help!

Regards,
Ralf

Hi! Not an expert here but maybe it is related to spacing in your config file (yaml is a bit strict with this). Here is what I have in Hassbian 0.55 and running perfectly:

mysensors:
  gateways:
    - device: '/dev/ttyUSB0'
      persistence_file: '/mnt/mydisk/mysensors.json'
      baud_rate: 115200
  optimistic: false
  version: 2.0

Good luck!

1 Like

Hello,

regarding the YAML formatting, i just forgot pasting it correctly. Just edited above.
But thanks for the idea.

I also just added the required entities, so my configuration.yamls looks like this:

mysensors:
  gateways:
    - device: '/dev/ttyUSB0'

Unfortunately, a “hassio homeassistant check” still tells me (excerpt after the INFO part):

Failed config
mysensors:
gateways: [source /config/configuration.yaml:97]
  - device: /dev/ttyUSB0
General Errors:
- Setup failed for mysensors: Invalid config.
Successful config (partial)
mysensors:

Again, thanks for your help - and of course merry christmas to all!

/ Ralf