Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ps-jay/f695833c2c76d3feb89613be6b7ec095 to your computer and use it in GitHub Desktop.
Simple Dim
blueprint:
name: Simple Dim
description: Dim specified lights by set percentage
source_url: https://gist.github.com/ps-jay/f695833c2c76d3feb89613be6b7ec095
domain: automation
input:
lights:
name: Lights
description: Lights to dim
default: []
selector:
target:
entity:
domain: light
percent:
name: Percent
description: Percent to dim (can be negative)
selector:
number:
min: -100.0
max: 100.0
step: 1.0
mode: slider
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_on
data:
brightness_step_pct: !input percent
transition: !input transition
target: !input lights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment