[Small bounty] Default values for lights

I would like to have a default turn-on value (color, brightness, whatever’s supported by the light) configurable for each light individually. I know there are workarounds, however I believe doing this in an abstract way (right on the light component) would be greatly beneficial. The default value should only be used if the light is being turned on without any specific value (e.g. if I set the light from 0 to 50% it should go to 50 even if the default is 80. If I just turn on the light, it should go to 80 if the default is 80.).

I have implemented a prototype for this that hooks in at https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/light/__init__.py#L359 and if params is empty sets some values that’s stored in a config. It works well but the code needs cleaning up (currently defaults come from a globally defined “fake” component that triggers an error on the home page, for example), and for certain reasons it’s complicated for me to post or submit code publicly. So I’d prefer if somebody knowledgable with homeassistant implemented this feature.

I’m offering 50 USD to whoever submits this code into the homeassistant repo. The solution needs to be bug-free (which I don’t think is a huge requirement for such a small change). I’d prefer to pay over PayPal but am flexible if required (crypto, bank transfer, etc.).

Sine nobody seemed interested I ended up going through the hoops and implementing this properly. I’ll try to get it submitted.

Any update? Also looking to do this properly with Sonoff B1 and MagicHome Led flashed with tasmota.

It’s implemented albeit in a not-very-nice way: https://www.home-assistant.io/components/light/#default-turn-on-values

Yeah i went away from that one. just added some mqtt commands in the automations i use. Most of my LED strips dont support the default value method you linked anyway.

Thanks