So I created an automation to turn the aquarium light on when the sun goes down, and another automation to turn it off when the sun comes back up again.
- id: '1583341679296'
alias: Aquarium Light On
description: ''
trigger:
- event: sunset
platform: sun
condition: []
action:
- data: {}
entity_id: switch.outlet_hallway
service: switch.turn_on
- id: '1583342090455'
alias: Aquarium Light Off
description: ''
trigger:
- event: sunrise
platform: sun
condition: []
action:
- data: {}
entity_id: switch.outlet_hallway
service: switch.turn_off
Instead of creating 2 separate automations, is there a way to combine this?
Thanks