0.39.0 won't boot

I upgraded and have this. The whole command is a single line and way too long to copy. Here’s the first grab.

17-02-26 23:47:34 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [homeassistant]: expected a dictionary for dictionary value @ data[‘customize’]. Got [OrderedDict([(‘entity_id’, 'switch etc etc etc etc etc

This is the top of my configuration.yaml

    homeassistant:
          # Name of the location where Home Assistant is running
          name: Home
          # Location required to calculate the time the sun rises and sets
          latitude: xxxxxx
          longitude: -xxxxx
          # Impacts weather/sunrise data (altitude above sea level in meters)
          elevation: 6
          # metric for Metric, imperial for Imperial
          unit_system: imperial
          # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
          time_zone: America/New_York

          customize:
            - entity_id: switch.arest_pin_two
              assumed_state: false
            - entity_id: switch.arest_pin_zero
              assumed_state: false
            - entity_id: switch.front_window_outlet
              entity_picture: /local/ecoplug.jpg
            - entity_id: switch.hall_outlet
              entity_picture: /local/ecoplug.jpg
            - entity_id: switch.living_room_outlet
              entity_picture: /local/ecoplug.jpg
            - entity_id: switch.den_outlet
              entity_picture: /local/ecoplug.jpg
            - entity_id: light.master_bedroom_lamp
              entity_picture: /local/lifx_logo.png
            - entity_id: light.living_room_lamp
              entity_picture: /local/lifx_logo.png
            - entity_id: switch.ge_12722_onoff_relay_switch_switch_5_0
              entity_picture: /local/ge.png
              friendly_name: Front Porch Light
            - entity_id: switch.arest_pin_two
              entity_picture: /local/relay.jpg
            - entity_id: switch.arest_pin_zero
              entity_picture: /local/relay.jpg
            - entity_id: switch.das_relay
              entity_picture: /local/relay2.jpg
            - entity_id: switch.ge_12722_onoff_relay_switch_switch_2_0
              entity_picture: /local/ge.png
              friendly_name: Recessed Kitchen
            - entity_id: switch.ge_12722_onoff_relay_switch_switch_3_0
              entity_picture: /local/ge.png
              friendly_name: Outdoor Light Garage
            - entity_id: light.ge_12724_3way_dimmer_switch_level_4_0
              entity_picture: /local/ge.png
              friendly_name: Recessed Dimmer Den

Post the complete error message after running “hass --script check_config”

(homeassistant_venv) homeassistant@homeassistant:~/.homeassistant$ hass --script check_config
INFO:homeassistant.util.package:Attempting install of colorlog>2.1,<3
Testing configuration at /home/homeassistant/.homeassistant
17-02-27 00:23:57 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [homeassistant]: expected a dictionary for dictionary value @ data[‘customize’]. Got [OrderedDict([(‘entity_id’, ‘switch.arest_pin_two’), (‘assumed_state’, False)]), OrderedDict([(‘entity_id’, ‘switch.arest_pin_zero’), (‘assumed_state’, False)]), OrderedDict([(‘entity_id’, ‘switch.front_window_outlet’), (‘entity_picture’, ‘/local/ecoplug.jpg’)]), OrderedDict([(‘entity_id’, ‘switch.hall_outlet’), (‘entity_picture’, ‘/local/ecoplug.jpg’)]), OrderedDict([(‘entity_id’, ‘switch.living_room_outlet’), (‘entity_picture’, ‘/local/ecoplug.jpg’)]), OrderedDict([(‘entity_id’, 'switch.den… (See /home/homeassistant/.homeassistant/configuration.yaml, line 2).
Failed config
homeassistant:
customize: [source /home/homeassistant/.homeassistant/configuration.yaml:14]
- assumed_state: False
entity_id: switch.arest_pin_two
- assumed_state: False
entity_id: switch.arest_pin_zero
- entity_id: switch.front_window_outlet
entity_picture: /local/ecoplug.jpg
- entity_id: switch.hall_outlet
entity_picture: /local/ecoplug.jpg
- entity_id: switch.living_room_outlet
entity_picture: /local/ecoplug.jpg
- entity_id: switch.den_outlet
entity_picture: /local/ecoplug.jpg
- entity_id: light.master_bedroom_lamp
entity_picture: /local/lifx_logo.png
- entity_id: light.living_room_lamp
entity_picture: /local/lifx_logo.png
- entity_id: switch.ge_12722_onoff_relay_switch_switch_5_0
entity_picture: /local/ge.png
friendly_name: Front Porch Light
- entity_id: switch.arest_pin_two
entity_picture: /local/relay.jpg
- entity_id: switch.arest_pin_zero
entity_picture: /local/relay.jpg
- entity_id: switch.das_relay
entity_picture: /local/relay2.jpg
- entity_id: switch.ge_12722_onoff_relay_switch_switch_2_0
entity_picture: /local/ge.png
friendly_name: Recessed Kitchen
- entity_id: switch.ge_12722_onoff_relay_switch_switch_3_0
entity_picture: /local/ge.png
friendly_name: Outdoor Light Garage
- entity_id: light.ge_12724_3way_dimmer_switch_level_4_0
entity_picture: /local/ge.png
friendly_name: Recessed Dimmer Den
- entity_id: switch.front_room_light
entity_picture: /local/wemo.png
- entity_id: light.ge_unknown_type4c42_id3031_level_6_0
entity_picture: /local/ge.png
friendly_name: Garage Light
elevation: 6
latitude:
longitude: -
name: Home
time_zone: America/New_York
unit_system: imperial

Successful config (partial)
homeassistant:
(homeassistant_venv) homeassistant@homeassistant:~/.homeassistant$

Was this working before ?

There are a couple of different formats you can use - see the install guide https://home-assistant.io/docs/configuration/customizing-devices/ for an example of the other format.

The other format would look something like

customize:
  switch.arest_pin_two:
    assumed_state: false
  switch.arest_pin_zero:
    assumed_state: false

Yes working perfect with 0.38.4 Just when I upgrade to 0.39.0 Reinstalling to 0.38.4 makes it work again.

Apologies - didn’t quote my reply properly. Do you want to try the other format or have you already gone back to 0.38.4 ?

The release notes for 0.39 detail the breaking change for customize.

A tool is provided here to convert your format:

https://jsfiddle.net/balloob/d2e56q6f/1/

This worked for me.

1 Like

I’ve no choice but to go back right now. playing around with the tool andrewpc posted. Not having any luck so far.

I actually got the customize to kinda sorta work but now zwave config is broken. Back to 0.38.4 and going to bed . Fight another day :grin:

I got it. Ran the whole configuration.yaml in the tool and only had to change under zwave:

customize: to device_config:

All is working. One tiny problem but I’ll start another thread.

Ok,
Just pretend I don’t know anything. (not a far stretch) how do I use this tool? I see html and java script…

I pasted in the records from my config file. They showed up over in input like I guess they should. I click convert and nothing happens.