smarthomeNG / smarthome

Device integration platform for your smart home
https://www.smarthomeNG.de
GNU General Public License v3.0
122 stars 92 forks source link

Delay in scenes #612

Open CaeruleusAqua opened 9 months ago

CaeruleusAqua commented 9 months ago

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.

Morg42 commented 7 months ago

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)...?

CaeruleusAqua commented 7 months ago

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.

Morg42 commented 6 months ago

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.

msinn commented 6 months ago

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.