smarthome icon indicating copy to clipboard operation
smarthome copied to clipboard

Delay in scenes

Open CaeruleusAqua opened this issue 1 year ago • 4 comments

Hello everyone

Do you think it makes sense to include a possibility to define a delay in the scenes?

The background is that I currently have some Ikea lights here which do not allow me to change the color temperature until the last transition has been completed. I therefore need a delay between setting the brightness and the color temperature.

I am currently working on a workaround with a logic but such a function might also be helpful for other things.

CaeruleusAqua avatar Jan 02 '24 20:01 CaeruleusAqua

I'm guessing this might better be fixed in the plugin responsible for controlling the light bulb.

I don't think scenes are well designed to include such flexibility; especially, if there is not a lot more effect.

Maybe this can be solved for you with two scenes - one only with brightness and the other with color temp (or vice versa)...?

Morg42 avatar Mar 03 '24 15:03 Morg42

I'm not looking for an alternative solution, I've already given it a lot of thought. Multiple scenes don't make sense because I would like to control both parameters via a KNX scene. I can't fix it in the plugin because the light bulb is controlled directly via Zigbee2Mqtt. As already described, I already have a workaround with a logic that solves the problem. I wanted to propose a feature and present a use case so that others could solve the problem with much less effort.

If you want, I can also implement the feature myself and propose it again.

I just don't want to invest time if the PR is rejected either way.

Of course, we can also discuss beforehand how this could look in the configuration.

CaeruleusAqua avatar Mar 05 '24 09:03 CaeruleusAqua

Looking at the scenes implementation, I don't really see a simple an universal solution, but I don't really have much experience with that.

If you feel that you need a suitable extension, feel free to propose an adequate piece of code. Please try to keep in mind that this should be a mostly universal extension, i.e. not bound to a specific plugin or value type.

Morg42 avatar Mar 10 '24 17:03 Morg42

From the original design in KNX, scenes are thought of as doing everything at once. There is no idea of a timeline. Without a timeline a delay has nothing to act on.

msinn avatar Mar 10 '24 18:03 msinn