Skip to content

Instantly share code, notes, and snippets.

@ImDevinC
Last active April 3, 2022 06:16
Show Gist options
  • Save ImDevinC/3ce43d590a27286e39acfb942a35db7b to your computer and use it in GitHub Desktop.
Save ImDevinC/3ce43d590a27286e39acfb942a35db7b to your computer and use it in GitHub Desktop.
[HA] Turn off lights at a specific time
blueprint:
name: Turn off lights at specific time
description: Turn off lights at a specific time
domain: automation
input:
switch_target:
name: Switch
description: The switch(es) to turn off at sunrise
selector:
target:
entity:
domain: switch
target_time:
name: Off Time
description: Time to turn off the light
selector:
time:
trigger:
platform: time
at: !input 'target_time'
action:
service: switch.turn_off
target: !input 'switch_target'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment