Convert Conditions in Automations

Hello,

Problem:
I will often create an automation condition like “state is Red”. When I think about it some more I realize I need to make sure its not raining as well as well.

the flow now is to delete my current state is red check. Then create an Or condition, then recreate red then add in a “is not raining”.

But then i realized there is not a “not raining” state. The state is raining. Now i need to delete that state and make it a Not condition then recreate the state.

Ask:
A UI button that wraps conditions with AND OR NOT.

So the yaml would look like

condition:
  - condition: state
    entity_id: weather.pirateweather
    state: radiation_storm

clicking wrap in OR would move it to an or like this:

condition:
  - condition: or
    conditions:
      - condition: state
        entity_id: weather.pirateweather
        state: radiation_storm

The inverse of this would be to remove AND OR NOT. It would be a nice to have.

Thanks for listening!