Volt Monitor

I don’t get this to work.
I will run scrpt one if the volt is under 1, and run script two if the volt is over 9.
Under you se trace from Developer Tools and.

volt monitor 
Event 3 fired 21:11:

{
    "event_type": "state_changed",
    "data": {
        "entity_id": "sensor.smart_implant_voltage_3",
        "old_state": {
            "entity_id": "sensor.smart_implant_voltage_3",
            "state": "10.97",
            "attributes": {
                "state_class": "measurement",
                "unit_of_measurement": "V",
                "device_class": "voltage",
                "friendly_name": "Smart Implant: Voltage (3)"
            },
            "last_changed": "2022-01-07T20:08:41.736557+00:00",
            "last_updated": "2022-01-07T20:08:41.736557+00:00",
            "context": {
                "id": "f6633d976187f20e1bf9c814bad679ed",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "sensor.smart_implant_voltage_3",
            "state": "0.84",
            "attributes": {
                "state_class": "measurement",
                "unit_of_measurement": "V",
                "device_class": "voltage",
                "friendly_name": "Smart Implant: Voltage (3)"
            },
            "last_changed": "2022-01-07T20:11:02.282110+00:00",
            "last_updated": "2022-01-07T20:11:02.282110+00:00",
            "context": {
                "id": "437a5fc5ff44dcacecd596cf9df0eaf6",
                "parent_id": null,
                "user_id": null
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2022-01-07T20:11:02.282110+00:00",
    "context": {
        "id": "437a5fc5ff44dcacecd596cf9df0eaf6",
        "parent_id": null,
        "user_id": null
    }
}

My sugesten:

alias: SMART TEST
description: Smart Implant
trigger:
    - platform: state
      event_type: state_changed
    entity_id: sensor.smart_implant_voltage_3
    data:
	new_state: {{ trigger.old_state.attributes["state"] }} < 1
    id: SensIn1
    - platform: state
      event_type: state_changed
    entity_id: sensor.smart_implant_voltage_3
    data:
	new_state: {{ trigger.old_state.attributes["state"] }} > 9
    id: SensIn2
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id: SensIn1
        sequence:
          - service: script.scr_x001
      - conditions:
          - condition: trigger
            id: SensIn2
        sequence:
          - service: script.scr_x002
mode: single