CustomWidget PopOver - Item from parameter does not use the configuration of the specific widget, but the last widget

Interesting that you (almost) achieved to do it like this.
I’d suggest another approach that is likely to work better:

Create a widget for the contents of your popover.
Define props for the title and the item.

uid: heating_control
props:
  parameterGroups: []
  parameters:
    - name: title
      label: Title
      type: TEXT
      description: The title
    - name: item
      label: Item
      type: TEXT
      context: item
      description: An item to control
tags: []
component: oh-slider-card
config:
  title: =props.title
  item: =props.item
  min: 10
  max: 25
  label: true
  scale: true

Then on your button use a popover action to open your other widget.

component: oh-button
config:
  ...
  action: popover
  actionModal: widget:heating_control
  actionModalConfig:
    title: =props.room
    item: =props.itemTargetTemp
2 Likes