OH 3 Widget with Phillips Hue "Scenes" List Card

Hi All

I am trying to access the Phillips Hue Scenes via the OpenHab 3 Pages.

I have created a Page with a List Card, then added a Label List Item which is “linked” to my Phillips Hue Scene Items.

However in a sitemap using:

	Default item=LoungeRoom_Scene label="Lounge Scene"

I get a list of possible scenes to select from.

However I cannot see how to achieve this with OH3? I have tried all the Action combinations but just cannot find the correct combination so that I am offered a list of scenes to choose from.

My Current YAML for the List Card is:

component: oh-list-card
config: {}
slots:
  default:
    - component: oh-label-item
      config:
        item: LoungeRoom_Scene
        actionItem: LoungeRoom_Scene
      slots: null

Any suggestions on how to access the list of scenes in an OH 3 page?

I also have to been able to find any OH3 Phillips Hue widgets to use as examples.

Thanks
Mark

1 Like

So I made some progress using an oh-link “widget”?

component: oh-list-card
config:
  title: Lounge Lights
slots:
  default:
    - component: oh-colorpicker-item
      config:
        title: Lounge Colour
        item: LoungeRoom_Color
        modules:
          - hs-spectrum
    - component: oh-slider-item
      config:
        title: Lounge Temperature
        item: LoungeRoom_ColorTemperature
    - component: oh-slider-item
      config:
        title: Lounge Brightness
        item: LoungeRoom_Brightness
    - component: oh-link
      config:
        style:
          color: black
          font-weight: bold
          justify-content: right
        text: =items[PhilipsHueLounge_Scene]
        action: options
        actionItem: PhilipsHueLounge_Scene

However since this is in a list card I do nto seem to be able to edit the list item, but have to edit the YAML to make any changes?

Also cant work out how to:
Make the text be the current state of the item - as would be the case when displaying with a sitemap.
How the centre the text .

What I am getting currently:

Any pointers?
Thanks
Mark