The template value is “false” but the notification is fired.
{
"trace": {
"last_step": "action/0",
"run_id": "542ff884bedad516748948d4dbb6a220",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2024-10-14T07:10:01.616830+00:00",
"finish": "2024-10-14T07:10:01.625945+00:00"
},
"domain": "automation",
"item_id": "1728856272802",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2024-10-14T07:10:01.618305+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.prova2",
"state": "on",
"attributes": {
"id": "1728856272802",
"last_triggered": "2024-10-13T22:03:07.274784+00:00",
"mode": "single",
"current": 0,
"friendly_name": "test2"
},
"last_changed": "2024-10-13T22:11:51.669588+00:00",
"last_reported": "2024-10-13T22:11:51.669588+00:00",
"last_updated": "2024-10-13T22:11:51.669588+00:00",
"context": {
"id": "01JA3Z05QNCYVE5KR4DQ3M5N4F",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"platform": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2024-10-14T07:10:01.624246+00:00",
"changed_variables": {
"context": {
"id": "01JA4XSJWGMJSTXBN8DGWT4Z3C",
"parent_id": "01JA4XSJWBS9WQ0VDH8BD7EGPF",
"user_id": null
}
},
"result": {
"params": {
"domain": "persistent_notification",
"service": "create",
"service_data": {
"message": "accendi"
},
"target": {}
},
"running_script": false
}
}
]
},
"config": {
"id": "1728856272802",
"alias": "prova2",
"description": "",
"triggers": [
{
"trigger": "template",
"value_template": "{{state_attr('climate.trv', 'current_temperature') > state_attr('climate.trv', 'temperature')}}"
}
],
"conditions": [],
"actions": [
{
"action": "persistent_notification.create",
"metadata": {},
"data": {
"message": "heat on"
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01JA4XSJWGMJSTXBN8DGWT4Z3C",
"parent_id": "01JA4XSJWBS9WQ0VDH8BD7EGPF",
"user_id": null
}
},
"logbookEntries": []
}