Automation panel and on/off toggle

I am new to this, but have a few things up and running (all z-wave outlets thus far)

I have two automations, one to turn my landscape lights on at sunset, one to turn them off ~midnight.
My home screen is still default (baby steps :slight_smile: ) and it has an automation panel with a “switch” for each, but they don’t “do” anything.

The automations look like this:

- id: landscape_lighting_on
  alias: Turn On Landscape Lighting around sunset
  trigger:
    platform: sun
    event: sunset
    offset: "+00:15:00"
  action:
    - service: switch.turn_on
      entity_id: switch.front_landscape_lights_switch
    - service: switch.turn_on
      entity_id: switch.rear_landscape_lights_switch

and

- id: landscape_lighting_off
  alias: Turn Off Landscape Lighting
  trigger:
    platform: time
    at: "23:59:00"
  action:
    - service: switch.turn_off
      entity_id: switch.front_landscape_lights_switch
    - service: switch.turn_off
      entity_id: switch.rear_landscape_lights_switch

Is there a better way to set these up, so I could have just one toggle on the web interface that actually turned them on/off, and showed the “state” of the automation?

Thanks,

-jamie

The switch on the automation panel switches each automation on/off such that the automation won’t work when switched off.

You can group the switches and then turn the group on or off or use a scene.

Ahh, great to know! I didn’t realize it was an enable/disable switch. Thanks!