Visibility Based on State Value Comparison

The following is tile card.

I have a “Live Alarms” section where I want to make certain cards visible based on various state values.

I was able to successful use the visibility feature with states on/off, but I am not able to make a number comparison.

Anyone have any idea why this is not working (no errors messages):

type: tile
grid_options:
  columns: full
visibility:
  - condition: or
    conditions:
      - condition: state
        entity: sensor.flrmr_emr_air_temp_1_lts
        state: '{{ states("sensor.flrmr_emr_air_temp_1_lts") | float(0) > 85 }}'
      - condition: state
        entity: input_boolean.view_inactive_alarms
        state: 'on'
entity: sensor.flrmr_emr_air_temp_1_lts
name: Room A Temperature
state_content:
  - state
  - last_changed
vertical: false
features_position: bottom

I don’t think you can use templates here, it’s quite rare for a core card to allow templates.

That said I think you’re looking for a numeric_state condition.

Numeric state visibility docs

type: tile
grid_options:
  columns: full
visibility:
  - condition: or
    conditions:
      - condition: numeric_state
        entity: sensor.flrmr_emr_air_temp_1_lts
        above: 85
      - condition: state
        entity: input_boolean.view_inactive_alarms
        state: 'on'
entity: sensor.flrmr_emr_air_temp_1_lts
name: Room A Temperature
state_content:
  - state
  - last_changed
vertical: false
features_position: bottom