Hi,
I didnt use HA for a while and accidentely created then an automation in the configuration.yaml which looked like this:
automation:
- alias: "Bewegungssensor im Büro erkannt"
trigger:
- platform: state
entity_id: binary_sensor.sensor_buro
to: "on"
action:
- service: light.turn_on
entity_id: light.extended_color_light_1
- service: switch.turn_on
entity_id:
- switch.dave_buro_steckdose_1
- switch.daves_buro_steckdose_2
- service: timer.start
data:
entity_id: timer.bewegung_timer
- alias: "Timer für Bewegungssensor zurücksetzen"
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.bewegung_timer
action:
- service: timer.cancel
entity_id: timer.bewegung_timer
- alias: "Ausschalten der Lampen nach Ablauf des Timers, wenn keine Bewegung mehr erkannt wird"
trigger:
- platform: state
entity_id: binary_sensor.sensor_buro
to: "off"
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.bewegung_timer
condition:
- condition: state
entity_id: binary_sensor.sensor_buro
state: "off"
action:
- service: light.turn_off
entity_id: light.extended_color_light_1
- service: switch.turn_off
entity_id:
- switch.dave_buro_steckdose_1
- switch.daves_buro_steckdose_2
after i realised that there is a way easier way in the automations tab in the gui itself (as i said, didnt use it for quite a while)
i deleted the code and rebooted…
Sadly they are still visible in the UI
and if i try to delete them in the UI, i get the an Erroro popup which says
Only automations in automations.yaml can be deleted
i tried to reproduce it, but as I didnt specifiy and “id”, i can’t do that, it will just create new ones. (at least i think so, and i don’t want to clog my Automations UI with dead automations)
if i try to edit the automation via gui on the cog wheel, it displays
This entity ('automation.ausschalten_der_lampen_nach_ablauf_des_timers_wenn_keine_bewegung_mehr_erkannt_wird') does not have a unique ID, therefore its settings cannot be managed from the UI. See the documentation for more detail.
any idea how i can get rid of it?