Hold-to-fade when turning off a light, or default setting for light.turn_off transition

Fairly new to HA, loving the versatility and interoperability of the platform!

The LIFX app has a nifty feature that allows you to fade out any bulb or group by pressing then holding the entity. You’re then presented with a choice of six durations ranging from 10 seconds to 30 minutes.

The feature is useful because it allows you to make smooth, ad-hoc changes to your scenes without the jarring effect of a bunch of lights just switching off. For instance, fading the lights out in the dining area when you’ve finished eating and moved to the lounge.

I suggest this feature be added into HA either through a similar mechanism as the LIFX app, or perhaps by allowing a default transition time to be set for light.turn_off that could be overridden by other presets.

I have some scene setup to turn on/off by fading it, maybe you could try this way?

scene:
  - name: theater light normal
    entities:
      light.mqtt_theater_room_light:
        state: on
        transition: 2
        brightness: 75
  - name: theater light dim
    entities:
      light.mqtt_theater_room_light:
        state: on
        transition: 2
        brightness: 20
  - name: theater light off
    entities:
      light.mqtt_theater_room_light:
        state: off
        transition: 2

This is true, but it does depend on setting everything up in advance. It’s not a scene I’m aiming for, but instead a quick way to get a little bit more control out of light.turn_off.

I argue that you shouldn’t need a scene or automation to account for every light or group of lights you want to fade out. It should be possible to quickly do it straight from the UI.