Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Combine 2 automations into 1

$
0
0

@aristosv wrote:

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

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>