Mysensors ethernet gateway

Hi.
I got problem with latest HA and mysensors gateway.
I just moved my HA in to a virtual machine (Lubuntu 14.04) and switched from a serial gateway to ethernet gateway.
Now i can’t get it going.
I can ping my gateway from my virtual machine. It responds as it should.

From my .yaml:
mysensors:
gateways:

  • device:‘192.168.1.66’
    persistence_file:’/home/lubuntu/.homeassistant/mysensors.json’
    debug: ‘true’
    version: ‘1.5’

Log:
ERROR:homeassistant.bootstrap:Error during setup of component mysensors
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py”, line 150, in _setup_component
if not component.setup(hass, config):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensor s.py”, line 102, in setup
device = gway[CONF_DEVICE]
TypeError: string indices must be integers

Please post your config within code block markdown. That’s three back-tics, newline, paste config, newline, three back-tics. I think there might be a formatting error in your yaml.

mysensors:
 gateways:
   - device:'192.168.1.66'
     persistence_file:'/home/lubuntu/.homeassistant/mysensors.json'
 debug: 'true'
 version: '1.5'

Indentation is off and a couple of spaces are missing.

mysensors:
  gateways:
    - device: '192.168.1.66'
      persistence_file: '/home/lubuntu/.homeassistant/mysensors.json'
  debug: true
  version: '1.5'

Thanks.
This solved the problem.
Annoying, i looked it over more than one time.
I blame my kids. They nagged about cookies. :confused:

2 Likes