Seite 1 von 1

Luftfeuchtigkeit wird nicht im PopUp Widget angezeigt

Verfasst: 8. Jul 2021 20:23
von Kahzia
Hallo zusammen,

Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 5.10.17-v7+
Platform = Raspberry Pi 3 Model B Rev 1.2
Openhabian 3.1.0


aktuell stehe ich vor einem Problem, welches für mich keinen Sinn ergibt.

Meine Overview Page, zeigt mir korrekt die Luftfeuchtigkeit für die einzelnen Räume an.
Sobald ich allerdings auf meinen "Raum" raufklicke um das PopUp zu öffnen, wird mir darin NICHT mehr die Luftfeuchtigkeit angezeigt.

Obwohl beide das gleiche Item zugewiesen haben.
Das Item funktioniert einwandfrei, ist ja eigentlich auch zu sehen an der Overview Seite (gleiche Item)

Wähle ich jetzt testweise ein "anderes" Luftfeuchtigkeits Item" funktioniert es...
Mir scheint es so, dass man ein und das selbe Item nicht mehrmals verwenden kann ?
Das würde aber für mich keinen Sinn ergeben finde ich.

Habt Ihr eine Idee, warum das Item im Popup nicht funktioniert ?

Anbei noch die Bilder dazu.

Re: Luftfeuchtigkeit wird nicht im PopUp Widget angezeigt

Verfasst: 9. Jul 2021 07:21
von Quautiputzli
Hi, das wird einfach an diesem Widget liegen. Damit hattest du doch auch schon in dem anderen Thread das Problem.
Ist etwas komisch. Hast du schonmal einen anderen Browser benutzt? Ist es in der App auch so?

Aber schön ist deine Seite mittlerweile geworden.

Re: Luftfeuchtigkeit wird nicht im PopUp Widget angezeigt

Verfasst: 9. Jul 2021 10:13
von Kahzia
Hi,

ja ich dachte mir, dass der erste Thread sich nicht mehr darauf fokusieren wird bzw die Überschrift dazu nicht passt.
Eigentlich kann es nicht am Widget liegen, dass es ja nur das Item anzeigt.

Es ist halt komisch, dass ich jedes Item verwenden kann.
Nur sobald ich ein Item 2x verwende in Kombination mit der Overview Seite funktioniert es nicht mehr.

Ich möchte einfach verstehen, wieso es nicht angezeigt werden kann / wird.

Bzw ich wüsste nicht wo der Fehler im Widget liegt.

Code: Alles auswählen

uid: Cell_Temp_Card_1
tags: []
props:
  parameters:
    - description: Small title on top of the card
      label: Title
      name: title
      required: false
      type: TEXT
    - description: Icon on top of the card (only f7 icons (without f7:))
      label: Icon
      name: icon
      required: false
      type: TEXT
    - description: in rgba() or HEX or empty
      label: Background Color
      name: bgcolor
      required: false
      type: TEXT
    - context: item
      label: Current Temperature
      name: temp_item
      required: false
      type: TEXT
    - context: item
      label: Set Temperature
      name: set_temp_item
      required: false
      type: TEXT
    - context: item
      label: Current Humidity
      name: humidity_item
      required: false
      type: TEXT
    - context: item
      description: on/off item
      label: Heating control item
      name: heating_item
      required: false
      type: TEXT
  parameterGroups: []
timestamp: Jul 1, 2021, 4:39:28 PM
component: f7-card
config:
  style:
    noShadow: false
    padding: 0px
    border-radius: var(--f7-card-expandable-border-radius)
    box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
    background-color: "=props.bgcolor ? props.bgcolor : ''"
    height: 120px
    margin-left: 5px
    margin-right: 5px
slots:
  content:
    - component: f7-block
      config:
        style:
          position: absolute
          top: -5px
          left: 16px
          flex-direction: row
          display: flex
      slots:
        default:
          - component: f7-icon
            config:
              f7: =props.icon
              size: 18
              style:
                margin-right: 10px
              visible: "=props.icon ? true : false"
          - component: Label
            config:
              text: "=props.title ? props.title : ''"
              style:
                font-size: 12px
                margin-top: 0px
    - component: f7-block
      config:
        style:
          position: absolute
          bottom: -20px
          left: 16px
          flex-direction: row
      slots:
        default:
          - component: Label
            config:
              text: "=items[props.temp_item].displayState ? items[props.temp_item].displayState : items[props.temp_item].state"
              style:
                font-size: 22px
                font-weight: 400
                margin-left: 0px
                margin-top: 0px
    - component: f7-block
      config:
        style:
          position: absolute
          bottom: -40px
          left: 12px
          flex-direction: row
          display: flex
      slots:
        default:
          - component: f7-icon
            config:
              f7: drop
              size: 18
              visible: "=props.humidity_item ? true : false"
          - component: Label
            config:
              visible: "=props.humidity_item ? true : false"
              text: =items[props.humidity_item].displayState
              style:
                font-size: 12px
                margin-left: 5px
                margin-top: 0px
    - component: f7-block
      config:
        style:
          position: absolute
          bottom: -63px
          left: 12px
          flex-direction: row
          display: flex
      slots:
        default:
          - component: f7-icon
            config:
              visible: "=props.heating_item ? true : false"
              f7: flame
              size: 18
          - component: Label
            config:
              visible: "=props.heating_item ? true : false"
              text: =items[props.heating_item].state
              style:
                font-size: 12px
                margin-left: 5px
                margin-top: 0px
    - component: oh-button
      config:
        visible: "=props.set_temp_item ? true : false"
        iconColor: red
        iconF7: arrow_up_circle
        iconSize: 35
        action: command
        actionItem: =props.set_temp_item
        actionCommand: =Number(items[props.set_temp_item].state.split(' ')[0]) + 0.5
        style:
          position: absolute
          top: 12px
          right: 10px
          height: 35px
          background: transparent
    - component: oh-button
      config:
        visible: "=props.set_temp_item ? true : false"
        iconColor: red
        iconF7: arrow_down_circle
        iconSize: 35
        action: command
        actionItem: =props.set_temp_item
        actionCommand: =Number(items[props.set_temp_item].state.split(' ')[0]) - 0.5
        style:
          position: absolute
          top: 74px
          right: 10px
          height: 35px
          background: transparent
    - component: Label
      config:
        visible: "=props.set_temp_item ? true : false"
        text: =items[props.set_temp_item].state
        style:
          font-size: 12px
          position: absolute
          right: 15px
          top: 50px
    - component: f7-block
      config:
        style:
          position: absolute
          top: 15px
          left: 15px
          width: "=props.set_temp_item ? 'calc(100% - 55px)' : '100%' "
          height: 120px
      slots:
        default:
          - component: oh-trend
            config:
              trendItem: =props.temp_item
              trendGradient:
                - "#aa2b1d"
                - "#cc561e"
                - "#ef8d32"
                - "#beca5c"
              style:
                --f7-theme-color-bg-color: transparent
                background: var(--f7-theme-color-bg-color)
                filter: opacity(30%)
                position: absolute
                width: 100%
                height: 100%
                top: 0px
                left: 0px
                z-index: 1
    - component: oh-link
      config:
        actionAnalyzerChartType: day
        action: analyzer
        actionAnalyzerItems: "=props.set_temp_item ? [props.temp_item, props.humidity_item, props.set_temp_item] : (props.humidity_item ? [props.temp_item, props.humidity_item] : [props.temp_item])"
        actionAnalyzerCoordSystem: time
        style:
          position: absolute
          left: 0px
          top: 0px
          height: 120px
          width: "=props.set_temp_item ? 'calc(100% - 55px)' : '100%' "
Leider ist es in der App genauso.

Re: Luftfeuchtigkeit wird nicht im PopUp Widget angezeigt

Verfasst: 9. Jul 2021 14:23
von Kahzia
irgendwas stimmt doch nicht mit OH3 !?
Ich habe NICHTS verändert und aufeinmal ist die Anzeige da, ich habe nur zufällig mal wieder reingeschaut.

Wie kann das sein.......
Das Phänomen habe ich ganz am Anfang auch schon beobachtet, ich wette wenn ich heute Abend wieder reinschaue sind die Werte wieder ohne Einwirkung verschwunden.... obwohl diese über CONBEE ständig aktualisiert werden und natürlich auch weiterhin in der Overview Seite angezeigt werden.
Es geht um die "Küche"

Kann es daran liegen, dass ich nach wie vor alle Items über "Code" definiert habe ?!
Ich habe halt alle Dateien aus OH2 mitgenommen.

Ist OH3 dafür ausgelegt damit klarzukommen ?
Das neue Model "doppelt" ja gefühlt die Items.
Ich könnte natürlich alle items aus OH2 mal löschen... hat den Nachteil, dass meine BasicUI nicht mehr funktionieren würde.
Allerdings hätte ich dann die doppelte Belegung eliminert...
AKtuell sieht es ja so aus, dass ich im Model auf ein "Thing" "pointen" kann, das hat zur Folge dass ein z.B der Sensor Luftfeuchtigkeit -> 2 Items zugewiesen kriegt, einmal über meine .items Datei und einmal über das neue "Model".
Kann das zu Problemen führen ?
Dann würde ich aber ein anderes Fehlerbild erwarten ehrlich gesagt.
Irgendwie bleibt OH3 sehr verwirrend für mich...

Re: Luftfeuchtigkeit wird nicht im PopUp Widget angezeigt

Verfasst: 9. Jul 2021 15:03
von Kahzia
uuund verschwunden.... ohne Einwirkung...
Overview Seite funktioniert nach wie vor einwandfrei...

das ergibt keinen Sinn für mich .... <.<