Proximity Presence with iPhone 12 Error "Cannot be processed as a number"

Running automation to turn on/off alarm when leaving or approaching Home Zone.

This was working fine as set alarm on leaving and turned off on arriving. But now has the home nearest error. See below.

Don’t understand as distant is numeric in my mind.

I have reset the HA OS ( restored to backup that was working) , restarted all iPhones…re-installed Companion app, made sure that Always ALLOW LOCATION, maximum accuracy…

Below is my configuration and the automation code (set up in HA UI)

Error:
"In ‘numeric_state’ condition: entity sensor.home_nearest_device state ‘XXiphone’ cannot be processed as a number.

Current system on x64 running HA OS

  • Core2024.12.5
  • Supervisor2024.12.0
  • Operating System14.1
  • Frontend20241127.8

Autiomation Code:
Preformatted text` alias: Alarm Step 1 Proximity Toggle - Leave Armed. Arrived Disarrm`
description: >-
Proximity test to see if Owners are leaving or entering the Home Zone. Sets
ALARM State to ARMED AWAY or DISARMED. Sets up next automation If triggeredwhile away alarm will sound and a notification will be sent


mode: single
triggers:

  • entity_id:
    • zone.home
      to: “0”
      id: Leaving
      trigger: state
  • entity_id:
    • sensor.home_nearest_device
      id: Leaving
      above: 200
      trigger: numeric_state
  • entity_id:
    • sensor.home_nearest_device
      below: 200
      id: Approaching
      trigger: numeric_state
  • entity_id:
    • zone.home
      above: 0
      id: Approaching
      trigger: numeric_state
      conditions:
      actions:
  • choose:
    • conditions:
      • condition: trigger
        id:
        • Leaving
          sequence:
      • action: alarm_control_panel.alarm_arm_away
        metadata: {}
        data: {}
        target:
        entity_id: alarm_control_panel.home_alarm
      • action: notify.mobile_app_XXiphone
        data:
        message: Good Bye. Home Alarm Arm away
    • conditions:
      • condition: and
        conditions:
        • condition: trigger
          id:
          • Approaching
        • condition: state
          entity_id: alarm_control_panel.home_alarm
          state: armed_away
          sequence:
      • action: alarm_control_panel.alarm_disarm
        metadata: {}
        data:
        code: “XXXX”
        target:
        entity_id: alarm_control_panel.home_alarm
      • action: notify.mobile_app_ssiphone15p
        data:
        message: Welcome Home. Alarm Disarmed
      • action: notify.XXXXX
        metadata: {}
        data:
        message: Twilo Test
        target: 1XXXXXXXX