Hello, up until now I’ve been creating scenes using groups, but I think it’s a great idea to simply add items to a scene and set target states.
However, I’d like to be able to retrieve a scene’s status without too much effort.
For example: if I lower all the blinds to 80% in the evening and then move one blind, I press the scene button again and that one blind returns to its previous state.
Up until now, I’ve had oh-buttons on a page:
- component: oh-button
config:
action: command
actionCommand: "=(items.szeneGruppeRolloSchlafen.state > '79' &&
items.szeneGruppeRolloSchlafen.state < '81') ? '0' : '80'"
actionItem: szeneGruppeRolloSchlafen
active: "=(items.szeneGruppeRolloSchlafen.state > '79' &&
items.szeneGruppeRolloSchlafen.state < '81') ? true :
false"
outline: true
style:
width: 92px
text: Schlafen
That allowed me to read the status, but if I now need two groups (100% and 80%), I can evaluate both groups under ‘active’, but I can’t send two ‘actionCommands’ to both groups at the same time. At least not in a way that’s easy to maintain.
To reliably generate the status of a scene, complex approaches are always required, which no longer justify the simplicity and clarity of the scene.
It is easier, then, to link all items into groups by scene/state.
Is there another way to achieve this more simply?
The best option I can think of:
Create sub-groups for all types and states of a scene
- bedtime_rollershutter_100%
- bedtime_rollershutter_80%
- bedtime_lights_on
- bedtime_lights_10%
- bedtime_revert_rollershutter_100%
- bedtime_revert_rollershutter_80%
- bedtime_revert_lights_on
- bedtime_revert_lights_10%
Then create two rules (normal + revert) that trigger all groups accordingly.
and then trigger the rule using an OH button and set ‘active:’ for each group.
But here too, I have to make a lot of changes in many places to maintain it.
I hope it’s clear what I’m trying to achieve. I’m actually an advanced user, but I’m stuck here because I don’t really like any of the approaches and they all seem too much hassle.
It would be great if the groups had a status of active:true when all items are in their target state.



