Flash led until condition

Hi,
I am pretty new in ESPhome, therefore maybe some beginners questions, apologize for them.

I have set up some LED as light, could also control them through HA, so far OK.
Now I just want to flash one LED as long as input_boolean from Home Assistant is set.
Could anybody help me on this, how to implement it? Thanks in advance - JJ

Not sure what type of LED you’re using. Assuming that it’s part of light domain, can do something like this:

light:
  - platform: ...
    id: your_led
    effects:
      # uses default pulse parameters. See doc for more options
      - pulse:

binary_sensor:
  - platform: ...
    on_press:
      then:
        - light.turn_on: your_led
    on_release:
      then:
        - light.turn_off: your_led

Thanks, I am using a simple binary light. So most of those effects do not work on simple light output (binary) . It’s just a simple green LED. Thanks JJ

The Binary Light does support the flash effect, which you were looking for, right?