Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blueprint:
- name: Sunrise Light Ramp Up and Turn On
- description: "Gradually increases the brightness of a light at sunrise."
- domain: automation
- input:
- target_light:
- name: Target Light
- description: The light entity to gradually brighten at sunrise.
- 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
- sunrise_offset:
- name: Sunrise Offset (optional)
- description: Time offset for sunrise (positive or negative).
- default: "00:00:00"
- selector:
- time:
- trigger:
- - platform: sun
- event: sunrise
- offset: !input sunrise_offset
- 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