#Question for the team can I set an

1 messages · Page 1 of 1 (latest)

earnest valley
#

I believe this will work:

          sequence: 
            - !input dimmer_up_1x
            - service: light.turn_on
              data:
                brightness_pct: 100
              target:
                entity_id: !input target_light
#

, but I recommend checking that that is not empty first.

variables:
  var_dimmer_up_1x: !input 'dimmer_up_1x'
---
    sequence:
    - alias: Do the user input
      if: "{{ var_dimmer_up_1x | default('') }}"
      then: !input 'dimmer_up_1x'
    - alias: Light on
      service: light.turn_on
        data:
          brightness_pct: 100
        target:
           entity_id: !input target_light

to prevent errors if it's empty.