I have also problems with check_config
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0
INFO:homeassistant.util.package:Attempting install of pydeconz==81
INFO:homeassistant.util.package:Attempting install of defusedxml==0.7.1
INFO:homeassistant.util.package:Attempting install of async-upnp-client==0.19.0
INFO:homeassistant.util.package:Attempting install of ifaddr==0.1.7
INFO:homeassistant.util.package:Attempting install of zeroconf==0.32.1
ERROR:homeassistant.helpers.check_config:Unexpected error validating config
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/homeassistant/helpers/check_config.py”, line 155, in async_check_ha_config_file
await config_validator.async_validate_config( # type: ignore
File “/usr/local/lib/python3.9/site-packages/homeassistant/components/automation/config.py”, line 127, in async_validate_config
await asyncio.gather(
File “/usr/local/lib/python3.9/site-packages/homeassistant/components/automation/config.py”, line 104, in try_async_validate_config_item
config = await async_validate_config_item(hass, config, full_config)
File “/usr/local/lib/python3.9/site-packages/homeassistant/components/automation/config.py”, line 72, in async_validate_config_item
config[CONF_TRIGGER] = await async_validate_trigger_config(
File “/usr/local/lib/python3.9/site-packages/homeassistant/helpers/trigger.py”, line 49, in async_validate_trigger_config
conf = await platform.async_validate_trigger_config(hass, conf)
File “/usr/local/lib/python3.9/site-packages/homeassistant/components/device_automation/trigger.py”, line 21, in async_validate_trigger_config
return await getattr(platform, “async_validate_trigger_config”)(hass, config)
File “/usr/local/lib/python3.9/site-packages/homeassistant/components/deconz/device_trigger.py”, line 605, in async_validate_trigger_config
device_registry = await hass.helpers.device_registry.async_get_registry()
File “/usr/local/lib/python3.9/site-packages/homeassistant/helpers/device_registry.py”, line 642, in async_get_registry
return async_get(hass)
File “/usr/local/lib/python3.9/site-packages/homeassistant/helpers/device_registry.py”, line 626, in async_get
return cast(DeviceRegistry, hass.data[DATA_REGISTRY])
KeyError: ‘device_registry’
INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.44.0
INFO:homeassistant.util.package:Attempting install of scapy==2.4.5
INFO:homeassistant.util.package:Attempting install of aiodiscover==1.4.2
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20210707.0
INFO:homeassistant.util.package:Attempting install of PyNaCl==1.3.0
INFO:homeassistant.util.package:Attempting install of emoji==1.2.0
INFO:homeassistant.util.package:Attempting install of distro==1.5.0
INFO:homeassistant.util.package:Attempting install of pillow==8.2.0
INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.4.17
INFO:homeassistant.util.package:Attempting install of mutagen==1.45.1
INFO:homeassistant.util.package:Attempting install of gTTS==2.2.3
INFO:homeassistant.util.package:Attempting install of aiopylgtv==0.4.0
INFO:homeassistant.util.package:Attempting install of adb-shell[async]==0.3.4
INFO:homeassistant.util.package:Attempting install of androidtv[async]==0.0.60
INFO:homeassistant.util.package:Attempting install of RPi.GPIO==0.7.1a4
INFO:homeassistant.util.package:Attempting install of smbus-cffi==0.5.1
INFO:homeassistant.util.package:Attempting install of restrictedpython==5.1
INFO:homeassistant.util.package:Attempting install of psutil==5.8.0
INFO:homeassistant.util.package:Attempting install of pycryptodome
INFO:homeassistant.util.package:Attempting install of croniter==1.0.2
INFO:homeassistant.util.package:Attempting install of watchdog==2.0.3
e[01;37mFailed confige[0m
e[01;31mautomation:e[0m e[31me[31m
- Unexpected error calling config validator: ‘device_registry’
- [OrderedDict([(‘id’, ‘1610635228299’), (‘alias’, ‘Argon One: Fan speed 000% (<50°C)’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘numeric_state’), (‘entity_id’, ‘sensor.cpu_temp’), (‘below’, ‘50.0’), (‘for’, ‘0:01:00’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘argon40.set_fan_speed’), (‘data’, OrderedDict([(‘speed’, 0)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘0ea12090a2914d6f87647ff6bf45e9e2’), (‘alias’, ‘Argon One: Fan speed 010% (>50°C)’), (‘trigger’, [OrderedDict([(‘platform’, ‘numeric_state’), (‘entity_id’, ‘sensor.cpu_temp’), (‘above’, ‘50’), (‘for’, ‘0:01:00’)])]), (‘action’, [OrderedDict([(‘service’, ‘argon40.set_fan_speed’), (‘data’, OrderedDict([(‘speed’, 10)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘4f1d8e9c2b11480394a4c58c5b94b6f9’), (‘alias’, ‘Argon One: Fan speed 055% (>55°C)’), (‘trigger’, [OrderedDict([(‘platform’, ‘numeric_state’), (‘entity_id’, ‘sensor.cpu_temp’), (‘above’, ‘55’), (‘for’, ‘0:01:00’)])]), (‘action’, [OrderedDict([(‘service’, ‘argon40.set_fan_speed’), (‘data’, OrderedDict([(‘speed’, 55)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘3805f3c005854d1784f0d4c55829e726’), (‘alias’, ‘Argon One: Fan speed 100% (>60°C)’), (‘trigger’, [OrderedDict([(‘platform’, ‘numeric_state’), (‘entity_id’, ‘sensor.cpu_temp’), (‘above’, ‘60’), (‘for’, OrderedDict([(‘minutes’, 1)]))])]), (‘action’, [OrderedDict([(‘service’, ‘argon40.set_fan_speed’), (‘data’, OrderedDict([(‘speed’, 100)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1610978662189’), (‘alias’, ‘LichtenBereikbaarheid’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘state’), (‘entity_id’, ‘light.bureau_spot_1,light.bureau_spot_2,light.bureau_spot_3,light.woonkamer_spot_1,light.woonkamer_spot_2,light.woonkamer_spot_3’), (‘to’, ‘unavailable’)]), OrderedDict([(‘platform’, ‘state’), (‘entity_id’, ‘light.bureau_spot_1,light.bureau_spot_2,light.bureau_spot_3,light.woonkamer_spot_1,light.woonkamer_spot_2,light.woonkamer_spot_3’), (‘from’, ‘unavailable’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘persistent_notification.create’), (‘data’, OrderedDict([(‘title’, ‘Licht bereikbaarheid gewijzigd.’), (‘message’, ‘{{ trigger.entity_id }} is {{ trigger.to_state.state }} !’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611039687063’), (‘alias’, ‘Check_Batteries’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘time’), (‘at’, ‘14:00’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘pyscript.check_batteries’), (‘data’, OrderedDict([(‘min_perc’, 30)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611039920684’), (‘alias’, ‘ErIsPost’), (‘description’, ‘Boodschap “Er is post” op tv en notify scherm laten verschijnen’), (‘trigger’, [OrderedDict([(‘platform’, ‘state’), (‘entity_id’, ‘binary_sensor.brievenbus_sensor’), (‘to’, ‘on’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘notify.living_room_tv’), (‘data’, OrderedDict([(‘message’, ‘Er is post’)]))]), OrderedDict([(‘service’, ‘notify.mobile_app_sm_g950f_stefan’), (‘data’, OrderedDict([(‘message’, ‘Er is post’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611051207910’), (‘alias’, ‘LichtenTerugBereikbaar’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘state’), (‘entity_id’, ‘light.bureau_spot_1,light.bureau_spot_2,light.bureau_spot_3,light.woonkamer_spot_1,light.woonkamer_spot_2,light.woonkamer_spot_3,light.tuin_hue_lightstrip_outdoor’), (‘from’, ‘unavailable’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘persistent_notification.create’), (‘data’, OrderedDict([(‘title’, ‘Licht bereikbaarheid gewijzigd.’), (‘message’, ‘{{ trigger.entity_id }} is {{ trigger.to_state.state }} !’), (‘notification_id’, '{{ trigger.entity_id }}{{ trigger.to_state.state }} !’)]))]), OrderedDict([(‘service’, ‘persistent_notification.dismiss’), (‘data’, OrderedDict([(‘notification_id’, ‘{{ trigger.entity_id }}{{ trigger.from_state.state }} !’)]))])]), (‘mode’, ‘queued’), (‘max’, 10)]), OrderedDict([(‘id’, ‘1611051817956’), (‘alias’, 'LichtenOnBereikbaar '), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘state’), (‘entity_id’, ‘light.bureau_spot_1,light.bureau_spot_2,light.bureau_spot_3,light.woonkamer_spot_1,light.woonkamer_spot_2,light.woonkamer_spot_3,light.tuin_hue_lightstrip_outdoor’), (‘to’, ‘unavailable’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘persistent_notification.create’), (‘data’, OrderedDict([(‘title’, ‘Licht bereikbaarheid gewijzigd.’), (‘message’, ‘{{ trigger.entity_id }} is {{ trigger.to_state.state }} !’), (‘notification_id’, '{{ trigger.entity_id }}{{ trigger.to_state.state }}’)]))]), OrderedDict([(‘service’, ‘persistent_notification.dismiss’), (‘data’, OrderedDict([(‘notification_id’, ‘{{ trigger.entity_id }}_{{ trigger.from_state.state }}’)]))])]), (‘mode’, ‘queued’), (‘max’, 10)]), OrderedDict([(‘id’, ‘1611058534593’), (‘alias’, ‘Tuinlights_OFF_Rule’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘time’), (‘at’, ‘input_datetime.tuinlichten_eindtijd’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘script.tuinlights_off_script’), (‘data’, OrderedDict())])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611058613574’), (‘alias’, ‘Tuinlights_ON_Rule’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘sun’), (‘event’, ‘sunset’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘script.tuinlights_on_script’), (‘data’, OrderedDict())])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611905979163’), (‘alias’, ‘Woonkamerspots on’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘device_id’, ‘b562d9e847d84f433419c991321d4a49’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘button_1’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.turn_on’), (‘data’, OrderedDict([(‘entity_id’, ‘light.woonkamer_spots’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611906043506’), (‘alias’, ‘Woonkamerspots off’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘device_id’, ‘b562d9e847d84f433419c991321d4a49’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘button_1’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.turn_off’), (‘data’, OrderedDict([(‘entity_id’, ‘light.woonkamer_spots’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611906282259’), (‘alias’, ‘Bureauspots off’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘device_id’, ‘b562d9e847d84f433419c991321d4a49’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘button_4’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.turn_off’), (‘data’, OrderedDict([(‘entity_id’, ‘light.bureau_spots’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1611906321131’), (‘alias’, 'Bureauspots on '), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘device_id’, ‘b562d9e847d84f433419c991321d4a49’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘button_3’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.turn_on’), (‘data’, OrderedDict([(‘entity_id’, ‘light.bureau_spots’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1612420101487’), (‘alias’, ‘Woonkamer Smart Button 1 Toggle’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘device_id’, ‘f5274c2000d667a67bc7921b3e97ee61’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘turn_on’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.toggle’), (‘data’, OrderedDict([(‘transition’, 1), (‘brightness_pct’, 100)])), (‘entity_id’, ‘light.woonkamer_bureau_spots’)])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1613040988542’), (‘alias’, ‘Toilet Hue Lamp 1 ON’), (‘description’, ‘vervangen door “Toilet Hue Dimmer Switch”’), (‘trigger’, [OrderedDict([(‘device_id’, ‘a3e70cea9acfa1c3d92d7378b608ce58’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘turn_on’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.turn_on’), (‘entity_id’, ‘light.toilet_hue_lamp_1’), (‘data’, OrderedDict())])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1613041345543’), (‘alias’, ‘Toilet Hue Lamp 1 OFF’), (‘description’, ‘vervangen door “Toilet Hue Dimmer Switch”’), (‘trigger’, [OrderedDict([(‘device_id’, ‘a3e70cea9acfa1c3d92d7378b608ce58’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘turn_off’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.turn_off’), (‘entity_id’, ‘light.toilet_hue_lamp_1’), (‘data’, OrderedDict())])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1613041859154’), (‘alias’, ‘Toilet Motion START’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘type’, ‘motion’), (‘platform’, ‘device’), (‘device_id’, ‘38e9d1ee8481b1c83606adb39643af63’), (‘entity_id’, ‘binary_sensor.toiler_hue_motion_sensor_1’), (‘domain’, ‘binary_sensor’), (‘for’, OrderedDict([(‘hours’, 0), (‘minutes’, 0), (‘seconds’, 0), (‘milliseconds’, 0)]))])]), (‘condition’, [OrderedDict([(‘condition’, ‘numeric_state’), (‘entity_id’, ‘sensor.toilet_hue_motion_sensor_1_lightlevel’), (‘below’, ‘input_number.toilet_maximumlux’)])]), (‘action’, [OrderedDict([(‘choose’, []), (‘default’, [OrderedDict([(‘service’, ‘light.turn_on’), (‘data’, OrderedDict()), (‘entity_id’, ‘light.toilet_hue_lamp_1’)])])])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1613042087857’), (‘alias’, ‘Toilet Motion STOP’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘state’), (‘entity_id’, ‘binary_sensor.toilet_hue_motion_sensor_1’), (‘to’, ‘off’), (‘for’, “00:{{ states(‘input_number.toilet_wachttijd’) | int }}:00”)]), OrderedDict([(‘platform’, ‘homeassistant’), (‘event’, ‘start’)])]), (‘condition’, [OrderedDict([(‘condition’, ‘state’), (‘entity_id’, ‘light.toilet_hue_lamp_1’), (‘state’, ‘on’)])]), (‘action’, [OrderedDict([(‘choose’, []), (‘default’, [OrderedDict([(‘service’, ‘light.turn_off’), (‘data’, OrderedDict()), (‘entity_id’, ‘light.toilet_hue_lamp_1’)])])])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1614321928512’), (‘alias’, ‘FriendsOfHue_Eetkamer’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘device_id’, ‘b562d9e847d84f433419c991321d4a49’), (‘domain’, ‘deconz’), (‘platform’, ‘device’), (‘type’, ‘remote_button_short_press’), (‘subtype’, ‘button_1’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘light.toggle’), (‘data’, OrderedDict([(‘entity_id’, ‘light.eetkamertafel_spots’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1617189217935’), (‘alias’, ‘test_deconz_trigger_auto’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘event’), (‘event_type’, ‘deconz_event’)])]), (‘condition’, []), (‘action’, [OrderedDict([(‘service’, ‘pyscript.test_deconz_service’), (‘data’, OrderedDict([(‘trigger_platform’, ‘{{ trigger.platform }}’), (‘trigger_event’, ‘{{ trigger.event }}’), (‘trigger_event_event_type’, ‘{{ trigger.event.event_type }}’), (‘trigger_event_data’, ‘{{ trigger.event.data }}’)]))])]), (‘mode’, ‘single’)]), OrderedDict([(‘id’, ‘1617367195065’), (‘alias’, ‘Toilet hue dimmer’), (‘description’, ‘’), (‘trigger’, [OrderedDict([(‘platform’, ‘event’), (‘event_type’, ‘deconz_event’), (‘event_data’, OrderedDict([(‘id’, ‘toilet_hue_dimmer_switch_1’)]))])]), (‘action’, [OrderedDict([(‘choose’, [OrderedDict([(‘conditions’, [OrderedDict([(‘condition’, ‘template’), (‘value_template’, ‘{{ trigger.event.data.event == 1002 }}’)])]), (‘sequence’, [OrderedDict([(‘service’, ‘light.turn_on’), (‘data’, OrderedDict([(‘brightness_pct’, 50)])), (‘target’, OrderedDict([(‘entity_id’, [‘light.toilet_hue_lamp_1’])]))])])]), OrderedDict([(‘conditions’, [OrderedDict([(‘condition’, ‘template’), (‘value_template’, ‘{{ trigger.event.data.event == 1001 }}’)])]), (‘sequence’, [OrderedDict([(‘service’, ‘light.turn_on’), (‘data’, OrderedDict([(‘brightness_pct’, 100)])), (‘target’, OrderedDict([(‘entity_id’, [‘light.toilet_hue_lamp_1’])]))])])]), OrderedDict([(‘conditions’, [OrderedDict([(‘condition’, ‘template’), (‘value_template’, ‘{{ trigger.event.data.event == 2001 }}’)])]), (‘sequence’, [OrderedDict([(‘service’, ‘deconz.configure’), (‘data’, OrderedDict([(‘entity’, ‘light.toilet_hue_lamp_1’), (‘field’, ‘/state’), (‘data’, OrderedDict([(‘bri_inc’, 254), (‘transitiontime’, 50)]))]))])])]), OrderedDict([(‘conditions’, [OrderedDict([(‘condition’, ‘template’), (‘value_template’, ‘{{ trigger.event.data.event == 3001 }}’)])]), (‘sequence’, [OrderedDict([(‘service’, ‘deconz.configure’), (‘data’, OrderedDict([(‘entity’, ‘light.toilet_hue_lamp_1’), (‘field’, ‘/state’), (‘data’, OrderedDict([(‘bri_inc’, -254), (‘transitiontime’, 50)]))]))])])]), OrderedDict([(‘conditions’, [OrderedDict([(‘condition’, ‘template’), (‘value_template’, ‘{{ trigger.event.data.event in ( 2003, 3003 ) }}’)])]), (‘sequence’, [OrderedDict([(‘service’, ‘deconz.configure’), (‘data’, OrderedDict([(‘entity’, ‘light.toilet_hue_lamp_1’), (‘field’, ‘/state’), (‘data’, OrderedDict([(‘bri_inc’, 0)]))]))])])]), OrderedDict([(‘conditions’, [OrderedDict([(‘condition’, ‘template’), (‘value_template’, ‘{{ trigger.event.data.event == 4002 }}’)])]), (‘sequence’, [OrderedDict([(‘event’, ‘suy_event_test’), (‘event_data’, OrderedDict([(‘action’, ‘turn_off’)]))])])])])])]), (‘mode’, ‘single’)])]
e[0m
e[01;37mSuccessful config (partial)e[0m
e[01mautomation:e[0m
I tried it before other updates, and I then also got errors. The updates went well…
Now I have;
Versie
core-2021.7.1
Nieuwste versie
core-2021.7.2
I’ll start update now… (even the check gave errors)
Result: Update went well (again). What’s the goal of that check_config when it gives errors, but the update goes well?