Dashboard view changed YAML without save

Newbie, sorry if things are a little mixed.
Attempting to turn on lights before sunrise or after sunset
I used the automation dashboard to create the outline which created

conditions:
  - condition: sun
    before: sunrise
    before_offset:
      hours: 0
      minutes: 0
      seconds: 0
  - condition: sun
    after: sunset
    after_offset:
      hours: 0
      minutes: 0
      seconds: 0

But as I needed either of these conditions i manually modified the code to

condition: or
conditions:
  - condition: sun
    before: sunrise
    before_offset:
      hours: 0
      minutes: 0
      seconds: 0
  - condition: sun
    after: sunset
    after_offset:
      hours: 0
      minutes: 0
      seconds: 0

and saved within the YAML editor.
however still does not seem to work.
Question 1. How can I get straight into the YAML to check the conditions are still correct as going through the automations dashboard removes the OR statement and apparently saves the modification without requesting a save.
Question 2. Where do I post a request for the addition of the or functionality within the dashboard ?
Many thanks

Hi Bob

  1. you can use an editor (official app) to go straight into YAML
    or from the automation, right hand top 3 dots
  2. the OR function is available from the UI

Many thanks, had not seen "blocks"

No prob, if it's that easy to help someone...
Just be aware that HA is very powerful with a lot of options and left and right, you find things that you might not have discovered yet.

Also: please take the time to mark the post that holds the solution.
You do that by selecting the three dots under the post:

image

Then select the check box:

image
By doing so:

  • this thread can be useful to other users as well (this thread comes up as solution when starting a thread which is similar to yours).
  • this prevents that someone else steps in trying to help

Thanks for giving back to the community! :+1:

Thanks so much , its all well and good reading, but those words are written by people in the know. Full to the brim of informatin, but so oftern the absolute basics are overlooked. Think thats what has happend here, as is often said the only stupid question is the one not asked !
Thank you for supporting the community.
Bob