- platform: numeric_state

I have an automation in HA that has the following line.

  • platform: numeric_state

However whenever I save the yaml trigger HA deletes this line! Why does it do this and does it matter?

What’s your question?

Do you have an automation, a script, or are you referring to your automation as “Yaml Script”? If the latter, it would just be “automation yaml”, not “Yaml Script” as that will confuse most people who will be replying to you. Scripts in home assistant are similar to automations but they don’t allow triggers. What you posted above is a trigger.

Sorry, my lack of experience. The automation start….

alias: “Heating: Study heater recovered from power cut”
description: “”
trigger:

  • platform: numeric_state
    entity_id: climate.study_heater

I entered the full yaml as an automation so I guess it is a trigger.

Thank you for putting me right.

All sorted now, seems like HA changed the way Yaml works.