[OH3] Main UI - main_widget - part 1.3 - The main_widget_Room_Card [3.3.0;3.4.9)

[:crayon: Add a primary screenshot or a logo here. The first image of the post will be promoted seen in the add-on list in the UI.]

[:crayon: Replace with your description.]

Screenshots

[:crayon: Upload other screenshots if necessary or remove the section.]

Changelog

Version 0.2

  • fixed missing label for rollershutter an radiator control

Version 0.1

  • initial release

Resources

uid: main_widget_Room_Card
tags: []
props:
  parameters:
    - description: A text prop
      label: Prop 1
      name: prop1
      required: false
      type: TEXT
    - context: item
      description: An item to control
      label: Item
      name: item
      required: false
      type: TEXT
  parameterGroups: []
component: f7-block
config:
  visible: '=!vars.objVar ? false : !vars.objVar.selectSection=="SECTION2" ? false : !vars.objVar.selectThing ? false : true'
  style:
    flex: 1 1 auto
    overflow: scroll
    margin-top: 1em
    margin-bottom: -1em
slots:
  default:
    - component: oh-repeater
      config:
        fetchMetadata: semantics,metadata,listWidget
        for: equipmentItem
        sourceType: itemsWithTags
        itemTags: Blinds
        filter: loop.equipmentItem.metadata.semantics.config.hasLocation == vars.objVar.room
      slots:
        default:
          - component: oh-repeater
            config:
              fetchMetadata: semantics,metadata,listWidget
              filter: '(loop.shutterItem.type=="Rollershutter") ? true : false'
              for: shutterItem
              groupItem: =loop.equipmentItem.name
              sourceType: itemsInGroup
            slots:
              default:
                - component: widget:main_widget_Rollershutter_Card
                  config:
                    RollerItem: =loop.shutterItem.name
                    Title: =loop.shutterItem.label
                    visible: '=vars.objVar.selectThing=="Rollers" ? true : false'
    - component: oh-repeater
      config:
        fetchMetadata: semantics,metadata,listWidget
        for: equipmentItem
        sourceType: itemsWithTags
        itemTags: Lightbulb
        filter: loop.equipmentItem.metadata.semantics.config.hasLocation == vars.objVar.room
      slots:
        default:
          - component: widget:main_widget_Light_Card
            config:
              equipmentItem: =loop.equipmentItem.name
              visible: '=vars.objVar.selectThing=="Lights" ? true : false'
    - component: oh-repeater
      config:
        fetchMetadata: semantics,metadata,listWidget
        for: equipmentItem
        sourceType: itemsWithTags
        itemTags: RadiatorControl
        filter: loop.equipmentItem.metadata.semantics.config.hasLocation == vars.objVar.room
      slots:
        default:
          - component: widget:main_widget_RadiatorControl_Card
            config:
              groupItem: =loop.equipmentItem.name
              Title: =loop.equipmentItem.label
              visible: '=vars.objVar.selectThing=="Climate" ? true : false'