Help needed updating past 0.100

Hi,

I’m running Hassio on Ubuntu server. This has been rock solid for around 18 months and I’ve had no issues with any updates other than breaking changes. I know there were a few of these after .100 and I have been unsuccessful trying to update to either .102.x or to .103 (I didn’t try .101).

I have run the ‘Check Home Assistant Configuration’ add on against 0.101.0 and 0.103.0 and it gave me the following output:

starting version 3.2.8
[09:59:19] INFO: Don't worry, this temporary installation is not overwriting your current one.
[09:59:19] INFO: Installing Home Assistant: 0.101.1...
[09:59:19] INFO: Please be patient, this might take a few minutes...
WARNING: You are using pip version 19.2.2, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[10:00:21] INFO: Installed Home Assistant 0.101.1
[10:00:21] INFO: Making a copy of your configuration for checking...
[10:00:51] INFO: Checking your configuration against this version...
[10:01:02] ERROR: The configuration check did not pass!
[10:01:02] ERROR: See the output below for more details.
INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2
Testing configuration at /tmp/config
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/scripts/check_config.py", line 206, in check
    async_check_ha_config_file(hass)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/check_config.py", line 140, in async_check_ha_config_file
    p_validated = component_platform_schema(p_config)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/scene/__init__.py", line 46, in _platform_validator
    return platform.PLATFORM_SCHEMA(config)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 635, in validate_sequence
    cval = validate(index_path, value)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 386, in validate_mapping
    cval = cvalue(key_path, value)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/homeassistant/scene.py", line 37, in _convert_states
    if isinstance(states[entity_id], dict):
KeyError: 'light.living_floor_lamp'
Fatal error while loading config: 'light.living_floor_lamp'
Failed config
  General Errors: 
    - 'light.living_floor_lamp'

Successful config (partial)

I’m not sure where to start looking to troubleshoot this. ‘light.living_floor_lamp’ is a hue bulb that I have had since day 1 on Home Assistant.

If anyone can give me any pointers, I’d be really grateful. Happy to pull the docker update log too if that helps

Thanks in advance

Find all references to that lamp in your configuration and post them here with context please.

Sure. There are no references to that device in my configuration.yaml, but it does appear many times in my scenes.yaml and automations.yaml.

Scenes:


- name: Livingroom normal
  entities:
    light.Living_Floor_Lamp:
        state: on
        transition: 10
        brightness: 254
    light.Living_Room_Unit:
        state: on
        transition: 10
        brightness: 254
    light.sofa_lamp:
        state: on
        transition: 10
        brightness: 254
- name: Livingroom dim
  entities:
    light.Living_Floor_Lamp:
        state: on
        transition: 10
        brightness: 100
    light.Living_Room_Unit:
        state: on
        transition: 10
        brightness: 100
    light.sofa_lamp:
        state: on
        transition: 10
        brightness: 200
    
- name: Livingroom fadeon
  entities:
    light.Living_Floor_Lamp:
        state: on
        transition: 300
        brightness: 255
    light.Living_Room_Unit:
        state: on
        transition: 300
        brightness: 255
    light.sofa_lamp:
        state: on
        transition: 300
        brightness: 255
- name: Livingroom_off
  entities:
    light.Living_Floor_Lamp:
        state: off
        transition: 10
    light.Living_Room_Unit:
        state: off
        transition: 10

- name: BoysRoomOn
  entities:
    light.Hue_Go:
        state: on
        transition: 100
        brightness: 10
        rgb_color: [255,154,55]
            
- name: BoysRoomFadeOff
  entities:
    light.Hue_Go:
        state: off
        transition: 900
        
- name: BoysRoomMorning
  entities:
    light.Hue_Go:
        state: on
        transition: 100
        rgb_color: [34,255,91]

- name: LED half brightness
  entities:
    light.tv_led_strip:
        state: on
        brightness: 75
        transition: 50
        rgb_color: [255,255,255]

- name: LED low brightness
  entities:
    light.tv_led_strip:
        state: on
        brightness: 39
        transition: 50
        rgb_color: [255,255,255]


- name: ExtensionWhite
  entities:
    light.extension_floor_lamp:
        state: on
        brightness: 198
        color_temp: 367.1
        transition: 10

- name: ExtensionRed
  entities:
    light.extension_floor_lamp:
        state: on
        rgb_color: [255,0,0]
        transition: 10
            
- name: GatewayPink
  entities:
    light.gateway_light_7811dcb2695c:
        state: on
        brightness: 180
        rgb_color: [255,0,180]

- name: Hall Dim
  entities:
    light.hall:
        state: on
        brightness: 100

- name: Hall Bright
  entities:
    light.hall:
        state: on
        brightness: 255

and Automations:

- id: TV turned off at night
  alias: TV turned off at night
  trigger:
  - platform: state
    entity_id: binary_sensor.tv_status
    from: 'on'
    to: 'off'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: light.living_floor_lamp
      state: 'on'
    - condition: state
      entity_id: sun.sun
      state: below_horizon
    - condition: time
      after: '18:00:00'
    - condition: time
      before: '23:01:00'
  action:
    service: scene.turn_on
    entity_id: scene.livingroom_normal

and Groups.yaml:

  Downstairs_Lights:
    name: "Downstairs Lights"
    view: yes
    entities:
      - light.extension_table
      - light.extension_floor_lamp
      - light.living_floor_lamp
      - light.living_room_unit
      - light.sofa_lamp
      - light.living_room_led_strip
  

In your scenes.yaml you need to carefully go through and

  • change all the entity_ids to lowercase
  • remove all of the transition keys

Then post any further errors you get once that’s fixed.

Thanks. I will try that later. I don’t understand what you mean by ‘remove all the transition keys’. Do you mean delete them entirely? If so, how do I replicate this in a supported way?

Thanks for the help. I guess I missed a breaking change description somewhere.

Yeah, remove them completely. If you want to use transitions you need to convert your scenes to scripts.

Thanks so much - all sorted now. Followed your advice and the upgrade to .103 worked fine.

It looks like I have some work to do moving scenes to scripts tomorrow!

Cheers!

1 Like