How to see/ display the Active Scene/ Rule in Semantic Model

Hi,

having OH version: 4.3.3, I use 4gang ZigBee switch to modify items and rules.
For each switch (from the 4), the binding can interpret 3 event types: SHORT, DOUBLE and LONG PRESSED.
On top of that, the Binding offer 3 profiles for the switch behavior:

  1. toggle switch (ON/OFF, regardless of event type), total of 8 states (4x2)
  2. generic command (user defined command for each event type), total of 12 states (4x3)
  3. generic toggle switch (ON/OFF for each user defined event type), total of 24 states (4x2x3)

For my purpose, number 2 from above it seems to be most convenient. But, it has a disadvantage: while the Item Type is defined by default as Switch, it will not react in OH when the channel is triggered, nor the user defined COMMAND if manually change the switch in OH. The point is, having say 6 Rules (as scenes) managed by this physicals buttons, I do not know , I do not see in OH which is ON at a certain moment, nor I can activate one or another rule from OH, only from the physical buttons.

Is it possible to have a visual switch (or dropdown list) with say 6 positions, where only 1 can be ON at the time?

thank you

Pal

Later edit: one possible workaround would be to use option 3 (generic toggle switch), where I would:

  • add additional trigger for each rule/scene, for when the switch Item state is ON (beside the user defined command)
  • add rule to switch OFF all the other switch Items when one is turned ON
    I think this could work, but is there other solution?

I’m not sure I fully understand what’s being described so I don’t know if my answer will be off base or not.

Yes. You’d use a String Item and set State Description → Command Options metadata on the Item. That should cause the Item’s default widget to render as a list to choose from.

If it doesn’t you can set the “default X widget” metadata and choose and configure an oh-list type widget.

The selected option will command the String Item. From there you can command the appropriate Switch Items or do what ever you need to.

Thank you very Rich. I will explore your suggestion . Ill come back.with feedback.