Minutes not a number?

Hi. I’m quite lost on this one.

I have 2 helpers defined and they both seem to work:

min: 0
max: 496
step: 1
mode: auto
unit_of_measurement: min
icon: mdi:timer-sync
friendly_name: næste forestilling om

and

min: 0
max: 240
step: 1
mode: auto
unit_of_measurement: min
icon: mdi:clock-time-eight-outline
friendly_name: nødvendig forvarmningstid

Which danish names can be translated to “next play in” and “nessesary time for heat up”

At the time of writing this post “nødvendig forvarmningstid” is 86.0 and “næste forestilling om” 31.0

I have (using web gui) created this automation:

alias: Varme aktiver komfortstatus
description: Forbered KINO til gæster
triggers:
  - trigger: state
    entity_id:
      - number.forestilling_om
conditions:
  - condition: numeric_state
    entity_id: number.forestilling_om
    attribute: mode
    below: number.nodvendig_forvarmningstid
actions:
  - metadata: {}
    data: {}
    target:
      entity_id: input_boolean.varme_aktiv
    action: input_boolean.turn_on
    enabled: false
mode: single

But the condition alwais claims not to be met. Tracking shows:

Error: In 'numeric_state': In 'numeric_state' condition: entity number.forestilling_om state 'auto' cannot be processed as a number
Error: In 'numeric_state' condition: entity number.forestilling_om state 'auto' cannot be processed as a number

Any ideas?

You are referencing the mode attribute not the number state

There is no need to reference the mode attribute in the conditions: Delete it.

Sorry, but this Yaml language is still quite alien to me, so I used the Gui built it. Can you be a little more specific on what I need til delete?
Or to put in others words, how can I trigger/allow my automation to run when the value of “time to next play” is below “nessesary heatup time”

The attribute setting (currently set to “mode”) in the condition. Remove that from your condition.

In other words leave this blank

Thanks a lot. That solved it (at least in the current state when it should run.)