All variations of groups fail with various errors

Hi,

I am getting the below error:

Fatal error while loading config: string indices must be integers

The part of the configuration causing this error is as follows:

group:
  multisensor_stairs:
    – sensor.aeotec_multisensor_6_temperature_2
    – sensor.aeotec_multisensor_6_relative_humidity_2
    – sensor.aeotec_multisensor_6_luminance_2
    – sensor.aeotec_multisensor_6_ultraviolet_2
    – sensor.aeotec_multisensor_6_sensor_2
    – sensor.aeotec_multisensor_6_burglar_2

  multisensor_office:
    – sensor.aeotec_multisensor_6_temperature_3
    – sensor.aeotec_multisensor_6_relative_humidity_3
    – sensor.aeotec_multisensor_6_luminance_3
    – sensor.aeotec_multisensor_6_ultraviolet_3
    – sensor.aeotec_multisensor_6_sensor_3
    – sensor.aeotec_multisensor_6_burglar_3

Can anyone see anything wrong with this?

And if I drop the office multisensor and just have the stairs one I get this:

(homeassistant_venv) homeassistant@homepi:~ $ hass --script check_config
Testing configuration at /home/homeassistant/.homeassistant
16-10-23 19:34:58 ERROR (MainThread) [homeassistant.util.yaml] while scanning a simple key
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 46, column 5
could not found expected ':'
  in "/home/homeassistant/.homeassistant/configuration.yaml", line 47, column 5

ALL the examples I am finding our laid out this way and people are in fact using these lines of configuration verbatim. So what’s going on? Is HA currently broken maybe? I’ve seen posts of people complaining that configuration files are braking.

Just now while pasting from vi back to this forum I discovered that there were two slightly different versions of “-” in the configuration.

I manually replaced them all with the same one and the configuration passes, HOWEVER, nothing gets grouped regardless :frowning:

Have you updated HAss today to 0.31 by any chance? If you have all your Z.Wave stuff has been renamed.

Have you got a corresponding View showing the groups you create?

I have a split groups.yaml file. From config yaml

group: !include groups.yaml

My multisensor group looks like this:

(note the extra digits on the end of each sensor name after upgrade to 0.31)

multisensors:
- sensor.kitchen_temperature_2_1
- binary_sensor.kitchen_sensor_2_0
- sensor.kitchen_luminance_2_3
- sensor.kitchen_relative_humidity_2_5
- sensor.foyer_temperature_6_1
- binary_sensor.foyer_sensor_6_0
- sensor.foyer_luminance_6_3
- sensor.foyer_relative_humidity_6_5
- sensor.dunny_temperature_4_1
- binary_sensor.dunny_sensor_4_0
- sensor.dunny_luminance_4_3
- sensor.dunny_relative_humidity_4_5
- sensor.garage_temperature_5_1
- binary_sensor.garage_sensor_5_0
- sensor.garage_luminance_5_3
- sensor.garage_relative_humidity_5_5

And in the same file a view with this group to make them show up.

environment_view:
  name: environment
  view: yes
  entities:
  - group.light
  - group.weather
  - group.multisensors

I discovered the extra digits while banging my head against this problem :stuck_out_tongue:

Do you have any idea what their purpose is?

If you have a bunch of the same zwave devices, like the multisensors they can apparently get confused with each other.

I’ve found out the hard way it’s a good idea to read the corresponding blog post each time you update. This was mentioned some way down the page here.

But I thought that’s what the first number was for? ie the node. The second number seems rather arbitrary.

Part of my problem is that didn’t so much update as install… I’m a beginner and the learning curve here is massive, Especially due to the touchy nature of the configuration file.

No idea sorry, I’m only a month or so ahead of you. It gets a lot easier once a few things begin to click.

I have no prior programming experience or linux knowledge so I know where you are coming from. My advice would be not to try and do everything at once. Add on your devices and get them reporting sure but tackle the automations and so forth one thing at a time. Or one component if necessary.

Use the online yaml checker too, it can help you find formatting errors. Just paste your code in and hit go… http://www.yamllint.com/

I was messing with the configuration and at one stage HA decided that it didn’t see my zwave usb stick… so i pulled it out and plugged it back in and restarted HA…

The numbers on half of the sensors on my multisensor changed!!!

I can see this being a recurring problem :confused:

EDIT: Scratch that! IT actually lost part of the device names!

ie binary_sensor.__sensor_3_0 instead of binary_sensor.aeotec_multisensor_6_sensor_3_0