Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blueprint:
- name: Custom Trigger Light Ramp Up and Turn On
- description: "Gradually increases the brightness of a light when a trigger occurs, such as a switch, button, or time."
- domain: automation
- input:
- target_light:
- name: Target Light
- description: The light entity to gradually brighten.
- selector:
- entity:
- domain: light
- ramp_duration:
- name: Ramp Up Duration (seconds)
- description: Duration of the ramp-up process to full brightness.
- default: 30
- selector:
- number:
- min: 1
- max: 300
- unit_of_measurement: seconds
- mode: slider
- trigger_event:
- name: Trigger Event
- description: Choose the trigger to start the light ramp-up (e.g., switch, button, or time).
- selector:
- trigger: {}
- trigger: !input trigger_event
- condition: []
- action:
- - service: light.turn_on
- target:
- entity_id: !input target_light
- data:
- brightness: 1 # Start at the lowest brightness level
- - service: light.turn_on
- target:
- entity_id: !input target_light
- data:
- brightness_pct: 100 # Full brightness
- transition: !input ramp_duration
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment