Skip to content

Instantly share code, notes, and snippets.

@ps-jay
Last active June 8, 2023 11:16
Show Gist options
  • Select an option

  • Save ps-jay/f0475beb495b2a3eb1925cd8e21135b1 to your computer and use it in GitHub Desktop.

Select an option

Save ps-jay/f0475beb495b2a3eb1925cd8e21135b1 to your computer and use it in GitHub Desktop.
blueprint:
name: Simple Off
description: Turn off specified lights
source_url: https://gist.github.com/ps-jay/f0475beb495b2a3eb1925cd8e21135b1
domain: automation
input:
lights:
name: Lights
description: Lights to turn off
default: []
selector:
target:
entity:
domain: light
transition:
name: Transition
description: Transition time to apply the dimming in seconds
default: 0
selector:
number:
mode: box
step: 0.1
trigger: []
condition: []
action:
- service: light.turn_off
data:
transition: !input transition
target: !input lights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment