So, since a few releases ago, ive noticed that things are not working as expected any more. If I remove automations, scripts and ESPHome configs etc, they still remain as entities and the entities are not removed. This is leaving a lot of old, unused and messy configuration lying around. Ive rebooted, and when adding or deleting automations and ESPHome esp32 configs, they are not removed or added to my entities.
Once you have deleted yaml automations and restarted you need to go to the Settings > Automations list and delete the “restored” entity. It’s probably the same for scripts. It’s definitely the same for yaml helpers.
Its weird because strange stuff is hapenning. I always run in incognito.
Right now I have this is configuration.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
frontend:
themes: !include_dir_merge_named themes
switch:
- platform: rpi_gpio
ports:
27: Door Lock
- platform: rpi_gpio
ports:
20: Pool Pump
- platform: rpi_gpio
ports:
19: Wall Lights
- platform: rpi_gpio
ports:
13: Pool Lights
- platform: rpi_gpio
ports:
23: relay5
- platform: rpi_gpio
ports:
22: relay6
- platform: rpi_gpio
ports:
12: relay7
- platform: rpi_gpio
ports:
26: relay8
automation:
- alias: 'tree lamp notification'
trigger:
platform: state
entity_id: door2
to: 'open'
action:
- service: notify.mobile_app_SM-G973F
data:
title: "Lights"
message: "The tree lamp is on"
- alias: 'leaving home'
trigger:
platform: state
entity_id: device_tracker.dean
to: 'open'
action:
- service: notify.mobile_app_SM-G973F
data:
title: "Lights"
message: "The tree lamp is on"
Yes I am getting this in my logs.
Invalid config for [automation]: Entity door1 is neither a valid entity ID nor a valid UUID for dictionary value @ data[‘entity_id’]. Got None. (See /config/configuration.yaml, line 48).
2:03:09 AM – (ERROR) config.py - message first occurred at 1:30:22 AM and shows up 8 times
automation:
- alias: 'tree lamp notification'
trigger:
platform: state
entity_id: binary_sensor.door2
to: 'open'
action:
- service: notify.mobile_app_SM-G973F
data:
title: "Lights"
message: "The tree lamp is on"
I get these errors.
Invalid config for [automation]: Entity door1 is neither a valid entity ID nor a valid UUID for dictionary value @ data[‘entity_id’]. Got None. (See /config/configuration.yaml, line 48).
2:29:04 AM – (ERROR) config.py - message first occurred at 1:30:22 AM and shows up 14 times