Which seem to be the actual functioning automations, but with only a cryptic Automation xx (and it canât be edited since it isnât in automation.yaml)
Each hyphen starts a new list item, so the screenshot shown above represents 3 automations, with the first 2 being invalid due to missing required keys.
- alias: "Loft Awning Opened" # hyphen starts new automation here
id: loft_awning_opened # not here
mode: single # nor here
triggers:
- trigger: state
entity_id: input_button.rf_loft_awning_opened
actions:
- action: switch.turn_on
target:
entity_id: switch.loft_awning
Thanks, that fixed the problem. I didnât realize what was happening. To be honest, when to use a â-â and when to use an indent seems somewhat random to me.
If you havenât already, check out the âYAML for non-programmersâ link in the Community Cookbook, itâs a good primer for some of the basics of YAML structure.
FWIW, when I started with HA (with zero YAML knowledge) I found the different methods shown in the âSplitting up the configurationâ article very confusing. I think I had read it 3 or 4 times before I read the section that mentions Packages and actually clicked through to the Packages docs. For me, using Packages just made way more sense than all the other merging options.
Thanks. Iâll try that. Iâm migrating over from openHAB and some things are easier and some things involve a lot of cussing. The use of yaml and templates took some getting used to as I am used to a more procedural way of setting up automations.