It was your template I cut & pasted into the automation, there are still the previous triggers & conditions listed, but they are disabled.
{
"trace": {
"last_step": "condition/0",
"run_id": "44c1dea59e3d8b20d3dd15f2ddba193d",
"state": "stopped",
"script_execution": "failed_conditions",
"timestamp": {
"start": "2024-02-14T09:30:34.092309+00:00",
"finish": "2024-02-14T09:30:34.093572+00:00"
},
"domain": "automation",
"item_id": "1707828504602",
"trigger": "state of sensor.mysensor",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2024-02-14T09:30:34.092912+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.alexa_announcement",
"state": "on",
"attributes": {
"id": "1707828504602",
"last_triggered": "2024-02-13T23:30:34.094383+00:00",
"mode": "restart",
"current": 0,
"friendly_name": "Alexa Announcement"
},
"last_changed": "2024-02-14T09:15:56.154524+00:00",
"last_updated": "2024-02-14T09:15:56.154524+00:00",
"context": {
"id": "01HPKEDFBT101S2RPHHD2R6NAD",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "state",
"entity_id": "sensor.mysensor",
"from_state": {
"entity_id": "sensor.mysensor",
"state": "20933.71",
"attributes": {
"state_class": "measurement",
},
"last_changed": "2024-02-14T09:10:34.091304+00:00",
"last_updated": "2024-02-14T09:10:34.091304+00:00",
"context": {
"id": "01HPKE3MVBASPETXHGJWSJGAAD",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.mysensor",
"state": "21263.11",
"attributes": {
"state_class": "measurement",
},
"last_changed": "2024-02-14T09:30:34.089207+00:00",
"last_updated": "2024-02-14T09:30:34.089207+00:00",
"context": {
"id": "01HPKF88Q9YRXAXK8C76V1FV76",
"parent_id": null,
"user_id": null
}
},
"for": null,
"attribute": null,
"description": "state of sensor.mysensor"
}
}
}
],
"condition/0": [
{
"path": "condition/0",
"timestamp": "2024-02-14T09:30:34.093005+00:00",
"result": {
"result": false,
"entities": []
}
}
]
},
"config": {
"id": "1707828504602",
"alias": "Alexa Announcement",
"description": "",
"trigger": [
{
"platform": "state",
"entity_id": "sensor.mysensor"
},
{
"platform": "template",
"value_template": "{% set val = states('sensor.mysensor')|int % 1000 %}\n{{ 100 < val < 500 }}",
"alias": "Trigger above 100 but below 500",
"enabled": false
},
{
"platform": "template",
"value_template": "{% set val = states('sensor.mysensor')|int % 1000 %}\n{{ val > 500 }}",
"id": "five",
"alias": "Trigger above 500",
"enabled": false
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.mysensor"
],
"above": 100,
"id": "message_100",
"value_template": "{{ (states.sensor.mysensor|int) % 1000 }}",
"enabled": false
},
{
"platform": "numeric_state",
"entity_id": [
"sensor.mysensor"
],
"above": 500,
"id": "message_500",
"value_template": "{{ (states.sensor.mysensor.state|int) % 1000 }}",
"enabled": false
}
],
"condition": [
{
"condition": "template",
"value_template": "{% set old = trigger.from_state.state %} {% set new = trigger.to_state.state %} {% set oldpre = old[:-3] %} {% set newpre = new[:-3] %} {% set oldsuf = old[-3:]|int %} {% set newsuf = new[-3:]|int %} {{ (oldsuf <= 100 and newsuf > 100) or\n (oldsuf <= 500 and newsuf > 500) or\n (oldpre != newpre and newsuf > 100) or\n (oldpre != newpre and newsuf > 500) }}\n"
},
{
"condition": "template",
"value_template": "{% set diff = trigger.from_state.state |int % 1000 %}\n{{ diff <= 500 if trigger.id == 'five' else ( 100 >= diff or diff >= 500 )}}",
"enabled": false
},
{
"condition": "time",
"after": "08:00:00",
"before": "00:00:00",
"weekday": [
"mon",
"tue",
"wed",
"thu",
"fri",
"sat",
"sun"
]
}
],
"action": [
{
"service": "notify.alexa_media_echo_dot",
"data": {
"message": "\"<amazon:emotion name='excited' intensity='high'>Hey, Sensor is {{ states('sensor.mysensor')|int }}</amazon:emotion>\"",
"data": {
"type": "announce",
"method": "emotion"
}
},
"alias": "Send announcement to Alexa"
}
],
"mode": "restart"
},
"blueprint_inputs": null,
"context": {
"id": "01HPKF88QCG5HQGQZ0GTTJJ6AK",
"parent_id": "01HPKF88Q9YRXAXK8C76V1FV76",
"user_id": null
}
},
"logbookEntries": []
}