Protokoll WARNUNG

Hi.

Ich habe eine Protokollwarnung die ich nicht so richtig ermitteln kann und dementsprechend den “Fehler” nicht finde…

Kann vielleicht einer helfen?

Logger: homeassistant.helpers.script
Quelle: helpers/script.py:859
Erstmals aufgetreten: 1. Januar 2025 um 12:02:18 (199 Vorkommnisse)
Zuletzt protokolliert: 11:10:49

Error in ‘choose[2]’ evaluation: In ‘numeric_state’: In ‘numeric_state’ condition: entity cover.hm_lc_bl1pbu_fm_qeq1924460 state ‘open’ cannot be processed as a number

Es kann sich hier nur um meinen HM Rolladenaktor “Kraftraum” handeln.
Auf diesen habe ich eine Automation laufen:

alias: Rolladen Kraftraum
description: ""
triggers:
  - trigger: state
    entity_id:
      - sensor.hmip_slo_000d5be9a4defd_durchschnittliche_beleuchtungsstarke
    id: Lichtsensor
  - trigger: state
    entity_id:
      - sun.sun
    id: Sonnenstand
  - trigger: state
    entity_id:
      - sensor.hmip_swo_b_0017dbe99e9150_temperatur
    id: Temperatur
  - trigger: state
    entity_id:
      - input_boolean.rolladensperre
    to: "off"
    id: Rolladensperre AUS
  - trigger: state
    entity_id:
      - sensor.tempkraftraumzigbee_temperature
    id: TempKraftraum
  - trigger: state
    entity_id:
      - input_boolean.sturm
    id: Sturm
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Lichtsensor
              - Rolladensperre AUS
              - TempKraftraum
              - Temperatur
              - Sturm
          - condition: time
            after: "09:30:00"
            before: "17:30:00"
            weekday:
              - mon
              - tue
              - wed
              - thu
              - fri
              - sat
              - sun
          - condition: numeric_state
            entity_id: cover.hm_lc_bl1pbu_fm_qeq1924460
            above: 50
          - condition: numeric_state
            entity_id: >-
              sensor.hmip_slo_000d5be9a4defd_durchschnittliche_beleuchtungsstarke
            above: 3000
          - condition: numeric_state
            entity_id: sensor.hmip_swo_b_0017dbe99e9150_temperatur
            above: 25
          - condition: numeric_state
            entity_id: sensor.tempkraftraumzigbee_temperature
            above: 23
          - condition: state
            entity_id: input_boolean.rolladensperre
            state: "off"
          - condition: state
            entity_id: input_boolean.sturm
            state: "off"
        sequence:
          - action: cover.set_cover_position
            metadata: {}
            data:
              position: 40
            target:
              device_id: 1a4d77ab4fdf59ad7527200a7236dc3d
        alias: Rolladen auf 40%
      - conditions:
          - condition: trigger
            id:
              - Rolladensperre AUS
              - Sturm
              - Lichtsensor
              - TempKraftraum
              - Temperatur
          - condition: time
            after: "09:30:00"
            before: "17:30:00"
            weekday:
              - mon
              - tue
              - wed
              - thu
              - fri
              - sat
              - sun
          - condition: numeric_state
            entity_id: cover.hm_lc_bl1pbu_fm_qeq1924460
            above: 50
            attribute: current_position
          - condition: numeric_state
            entity_id: sensor.hmip_swo_b_0017dbe99e9150_temperatur
            above: 18
          - condition: numeric_state
            entity_id: sensor.tempkraftraumzigbee_temperature
            above: 23
          - condition: state
            entity_id: input_boolean.rolladensperre
            state: "off"
          - condition: state
            entity_id: input_boolean.sturm
            state: "off"
        sequence:
          - device_id: 1a4d77ab4fdf59ad7527200a7236dc3d
            domain: cover
            entity_id: fd7e305c1907f4e13eea175f3bcd42c4
            type: set_position
            position: 60
        alias: Rolladen auf 60%
      - conditions:
          - condition: trigger
            id:
              - Rolladensperre AUS
              - Sturm
              - Sonnenstand
          - condition: state
            entity_id: input_boolean.rolladensperre
            state: "off"
          - condition: not
            conditions:
              - condition: device
                device_id: 1a4d77ab4fdf59ad7527200a7236dc3d
                domain: cover
                entity_id: fd7e305c1907f4e13eea175f3bcd42c4
                type: is_open
          - condition: numeric_state
            entity_id: sun.sun
            attribute: azimuth
            above: 265
          - condition: or
            conditions:
              - condition: state
                entity_id: input_boolean.sturm
                state: "on"
        sequence:
          - device_id: 1a4d77ab4fdf59ad7527200a7236dc3d
            domain: cover
            entity_id: fd7e305c1907f4e13eea175f3bcd42c4
            type: open
        alias: Rolladen AUF
mode: single

hat wohl den Zustand ‘open’ und keinen nummerischen Zustand.

Jup, ok, das ist richtig. Aber was muss ich jetzt anpassen? Muss ich überhaupt? Oder kann ich das einfach ignorieren?

Ich meine es ist heute bis jetzt 260mal vorgekommen… Kann ich das irgendwie verhindern das diese Protokollwarnung erstellt wird?

Dann solltest du diese Bedingung ändern

Wenn ich mir die Entitätszustände in den Entwicklerwerkzeugen ansehe habe ich aber nichts was ich verwenden könnte außer current_position?

Aber egal was ich mit der GUI in der Automation erstelle bekomme ich niemals die current_position raus.

Ich habe einmal die Entität genommen mit auswahl des Attributes current_position.
Aber da bekomme ich dennoch die Logeinträge.

          - condition: numeric_state
            entity_id: cover.hm_lc_bl1pbu_fm_qeq1924460
            above: 50
            attribute: current_position

Veruche ich es mit dem Device:

          - condition: device
            device_id: 1a4d77ab4fdf59ad7527200a7236dc3d
            domain: cover
            entity_id: fd7e305c1907f4e13eea175f3bcd42c4
            type: is_position
            above: 50

leider das gleiche Problem…

Ich brauch aber die Auswertung der Position denn danach funktioniert nun mal die Automatisierung.
Nach NUR open oder closed wäre es zu einfach…

Damit sollte es aber funktionieren. Ist der Log-Eintrag wirklich der selbe?