openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Scenes within Scenes

Open robkamp opened this issue 2 years ago • 3 comments

In order to reduce the manual labor and increase manageability I would like to request that a scene can have a scene as a child object. It would make a scene a reusable building block and reusing scenes across scenarios possible.

Scenes within Scene drawio

robkamp avatar Nov 02 '23 16:11 robkamp

To implement this I think it would take adding the ability in MainUI to select Rules to call in a scene in addition to Items to command. Given that, it might not require any changes in core at all, just changes in MainUI to allow this selection and converting it to a "run rule" action.

Looking at what Scenes turn into in the JSONDB, I don't think core needs do anything to implement this. This issue might need to be moved to openhab-webui.

rkoshak avatar Nov 02 '23 16:11 rkoshak

I rather would like to be able to select a scene from within a scene next to the ability to select items and things in scenes, which we can already.

And yes, scenes should then be able to propagate the execution to other scenes.

robkamp avatar Nov 02 '23 17:11 robkamp

Isn't that exactly what @rkoshak is suggesting? Anyway, this is only UI, core can already do that. @kaikreuzer can you transfer this issue?

J-N-K avatar Nov 02 '23 17:11 J-N-K