[OH3] Main UI - main_widget - part 1.1 - The main_widget_Home_Card

[: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.1

  • initial release

Resources

uid: main_widget_Home_Card
tags: []
props:
  parameters:
    - description: Name for your weather location
      label: Weather Location
      name: locationTitle
      required: false
      type: TEXT
    - context: item
      description: Name of scenes group item
      label: Scenes Group
      name: scenesGroup
      required: false
      type: TEXT
    - context: item
      description: Name of security group item
      label: Security Group
      name: securityGroup
      required: false
      type: TEXT
    - context: item
      description: Security Mode Item
      label: Security Mode
      name: securityMode
      required: true
      type: TEXT
    - context: item
      description: Security PIN Item
      label: Security PIN
      name: referencePIN
      required: false
      type: TEXT
  parameterGroups: []
component: f7-block
config:
  style:
    flex: 1 1 auto
    overflow: scroll
    margin-top: -1em
    margin-bottom: -1em
slots:
  default:
    - component: widget:main_widget_Weather_Card
      config:
        bigCard: true
        dateFormat: true
        itemPrefix: OneCallAPIweatherandforecast_
        locationTitle: =props.locationTitle
        sunIndicator: true
        visible: '=(!vars.objVar || ((vars.objVar.selectSection=="SECTION0") && !vars.objVar.selectThing)) ? true : false'
    - component: oh-repeater
      config:
        fetchMetadata: semantics,metadata,listWidget
        for: sceneItem
        groupItem: =props.scenesGroup
        sourceType: itemsInGroup
      slots:
        default:
          - component: widget:main_widget_Scene_Card
            config:
              scene: =loop.sceneItem.name
              sceneName: =loop.sceneItem.label
              visible: '=vars.objVar ? ((vars.objVar.selectSection + vars.objVar.selectThing)=="SECTION0Scenes") ? true : false : false'
    - component: widget:main_widget_Security_Card
      config:
        securityGroup: =props.securityGroup
        securityMode: =props.securityMode
        referencePIN: =props.referencePIN
        visible: '=vars.objVar ? ((vars.objVar.selectSection + vars.objVar.selectThing)=="SECTION0Security") ? true : false : false'