Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Last active January 21, 2021 02:33
Show Gist options
  • Save Didgeridrew/1c372d58a6b614fe0ba6b79de0a80b05 to your computer and use it in GitHub Desktop.
Save Didgeridrew/1c372d58a6b614fe0ba6b79de0a80b05 to your computer and use it in GitHub Desktop.
alias: Sunset On Sunrise OFF
description: ''
trigger:
- platform: sun
event: sunrise
offset: '-00:30:00'
- platform: sun
event: sunset
offset: '-00:30:00'
condition: []
action:
- choose:
- conditions:
- condition: sun
before: sunset
before_offset: '00:30:00'
sequence:
- service: switch.turn_on
data: {}
entity_id: switch.wyze_plug_1
- conditions:
- condition: sun
before: sunrise
before_offset: '00:30:00'
sequence:
- service: switch.turn_on
data: {}
entity_id: switch.wyze_plug_1
default: []
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment