duplicate entries with _2…
automation.alarm_pending
automation.alarm_pending_2
After the update Homeassistant to the newest version I had the following ID’s twice.
They are all:
- timer
- input_select
- input_number
- input_datetime
- counter
- automation
- sensor based on template
After rollback to version Home Assistant 0.104.3 they are still there. The original IDs all have the attributes:
restored: true
supported_features: 0
Deleting the core.restore_state file and restarting it didn’t change anything.
All of my automations and sensor templates no longer work with the double entries.
How can I delete the duplicate entries with _2 so that the original entries are used again?
Example sensor template:
## ####################################
## checks the heating periode
## ####################################
heating_periode:
friendly_name: Heizungszeit
entity_id: sensor.time
value_template: >-
{% set mapper = {'Jänner':1,'Februar':2,'März':3,'April':4,'Mai':5,'Juni':6,'Juli':7,'August':8,'September':9,'Oktober':10,'November':11,'Dezember':12} %}
{% set start = mapper[states.input_select.heating_startmonth.state]|int %}
{% set end = mapper[states.input_select.heating_endmonth.state]|int %}
{% if (utcnow().month>=start) or (utcnow().month<=end) %}on{% else %}off{% endif %}
attribute_templates:
current: "{{utcnow().month}}"
start: "{{states.input_select.heating_startmonth.state}}"
end: "{{states.input_select.heating_endmonth.state}}"
date: "{{now().strftime('%Y-%m-%d')}}"
How can I solve this problem ?