So i wrote this script which should increase the brightness until it is 255. When i run the script nothing happens. Not even an error message. Does anybody has a solution?
alias: increasing_brightness_lightbuld_1
sequence:
- repeat:
while:
- condition: numeric_state
entity_id: light.led_lampe_1
attribute: brightness
below: 255
sequence:
- service: light.turn_on
data_template:
entity_id: light.led_lampe_1
transition: '60'
brightness: >
{% set n = states.light.led_lampe_1.attributes.brightness + 25 %}
{% if n > 255 %}
255
{% else %}
{{ n }}
{% endif %}
mode: single
icon: 'hass:lightbulb'