here is the latest trace and YAML for the automation:
YAML:
alias: Truenas app update
description: Send a notification if there is an app update for truenas apps
trigger: []
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.truenas_apps_unifi_controller
attribute: Update available
state: "1"
sequence: []
enabled: true
mode: single
Trace:
{
"trace": {
"last_step": "action/0/choose/0/conditions/0/entity_id/0",
"run_id": "59ed2b22a44146e9566c79d400d4eac0",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2024-08-02T18:27:41.576651+00:00",
"finish": "2024-08-02T18:27:41.577273+00:00"
},
"domain": "automation",
"item_id": "1722001115960",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2024-08-02T18:27:41.576712+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.truenas_app_update",
"state": "on",
"attributes": {
"id": "1722001115960",
"last_triggered": "2024-08-02T18:25:04.684844+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Truenas app update"
},
"last_changed": "2024-08-02T18:27:38.312443+00:00",
"last_reported": "2024-08-02T18:27:38.312443+00:00",
"last_updated": "2024-08-02T18:27:38.312443+00:00",
"context": {
"id": "01J4A5HVP849TQS4YNNX20AWDN",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"platform": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2024-08-02T18:27:41.576919+00:00",
"changed_variables": {
"context": {
"id": "01J4A5HYW8M6N4BG7SH14X36F6",
"parent_id": "01J4A5HYW8B796CB70V5G409WN",
"user_id": null
}
}
}
],
"action/0/choose/0": [
{
"path": "action/0/choose/0",
"timestamp": "2024-08-02T18:27:41.577022+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/0/conditions/0": [
{
"path": "action/0/choose/0/conditions/0",
"timestamp": "2024-08-02T18:27:41.577040+00:00",
"result": {
"result": false
}
}
],
"action/0/choose/0/conditions/0/entity_id/0": [
{
"path": "action/0/choose/0/conditions/0/entity_id/0",
"timestamp": "2024-08-02T18:27:41.577068+00:00",
"result": {
"result": false,
"state": 1,
"wanted_state": "1"
}
}
]
},
"config": {
"id": "1722001115960",
"alias": "Truenas app update",
"description": "Send a notification if there is an app update for truenas apps",
"trigger": [],
"condition": [],
"action": [
{
"choose": [
{
"conditions": [
{
"condition": "state",
"entity_id": "binary_sensor.truenas_apps_unifi_controller",
"attribute": "Update available",
"state": "1"
}
],
"sequence": []
}
],
"enabled": true
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01J4A5HYW8M6N4BG7SH14X36F6",
"parent_id": "01J4A5HYW8B796CB70V5G409WN",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Truenas app update",
"message": "triggered",
"source": null,
"entity_id": "automation.truenas_app_update",
"context_id": "01J4A5HYW8M6N4BG7SH14X36F6",
"when": 1722623261.5767622,
"domain": "automation"
}
]
}