# script: # indirect_brightness_increase: # sequence: # - service: light.turn_on # entity_id: light.indirect # data_template: # brightness: > # {% set incr = 10 %} # {% set current = (state_attr('light.indirect', 'brightness') | int) %} # {% set new = current | int + incr %} # {% if new > 255 %} 255 # {% else %} {{ new_brightness }} # {% endif %}