Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "trace": {
- "last_step": "action/0",
- "run_id": "cdc309af551a96b61f571a15d7f1dfe5",
- "state": "stopped",
- "script_execution": "error",
- "timestamp": {
- "start": "2023-08-09T07:09:39.886593+00:00",
- "finish": "2023-08-09T07:09:40.288782+00:00"
- },
- "domain": "automation",
- "item_id": "1691505294721",
- "error": "device_name is empty",
- "trigger": "event 'tag_scanned'",
- "trace": {
- "trigger/0": [
- {
- "path": "trigger/0",
- "timestamp": "2023-08-09T07:09:39.886742+00:00",
- "changed_variables": {
- "media_players": {
- "4a88bb7aaa057a3156f82ae8e0dc6fcd": "media_player.m7"
- },
- "tags": {
- "2364753d-879f-4e49-9560-448a7a883666": {
- "media_content_id": "spotify:track:1Sa4Pbf15yPm2HgfxnKdwh",
- "media_content_type": "track"
- },
- "9c05c7af-57f8-495f-9dcc-900cf37285fa": {
- "uri": "spotify:playlist:37RoMTxvLh9BHuJnJiyZNN",
- "media_content_type": "album"
- }
- },
- "this": {
- "entity_id": "automation.nfc_jukebox_test",
- "state": "on",
- "attributes": {
- "id": "1691505294721",
- "last_triggered": "2023-08-09T07:09:15.719429+00:00",
- "mode": "single",
- "current": 0,
- "friendly_name": "NFC Jukebox test"
- },
- "last_changed": "2023-08-09T06:50:35.347366+00:00",
- "last_updated": "2023-08-09T07:09:16.269073+00:00",
- "context": {
- "id": "01H7CJ1P26TXCGFFX2AN0432CK",
- "parent_id": "01H7CJ1P22GH2M5WZRY69ZRB0Y",
- "user_id": null
- }
- },
- "trigger": {
- "id": "0",
- "idx": "0",
- "alias": null,
- "platform": "event",
- "event": {
- "event_type": "tag_scanned",
- "data": {
- "tag_id": "9c05c7af-57f8-495f-9dcc-900cf37285fa",
- "device_id": "4a88bb7aaa057a3156f82ae8e0dc6fcd"
- },
- "origin": "LOCAL",
- "time_fired": "2023-08-09T07:09:39.885502+00:00",
- "context": {
- "id": "01H7CJ2DNDV7XM8X18Z22DC2YC",
- "parent_id": null,
- "user_id": "d6e891cc40ea4f82ab29af38bc126129"
- }
- },
- "description": "event 'tag_scanned'"
- }
- }
- }
- ],
- "condition/0": [
- {
- "path": "condition/0",
- "timestamp": "2023-08-09T07:09:39.886888+00:00",
- "result": {
- "result": true,
- "entities": []
- }
- }
- ],
- "condition/1": [
- {
- "path": "condition/1",
- "timestamp": "2023-08-09T07:09:39.887465+00:00",
- "result": {
- "result": true,
- "entities": []
- }
- }
- ],
- "action/0": [
- {
- "path": "action/0",
- "timestamp": "2023-08-09T07:09:39.893044+00:00",
- "changed_variables": {
- "context": {
- "id": "01H7CJ2DNEPBG7H5D0GC7X6Z12",
- "parent_id": "01H7CJ2DNDV7XM8X18Z22DC2YC",
- "user_id": null
- }
- },
- "error": "device_name is empty",
- "result": {
- "params": {
- "domain": "spotcast",
- "service": "start",
- "service_data": {
- "entity_id": "",
- "uri": ""
- },
- "target": {}
- },
- "running_script": false
- }
- }
- ]
- },
- "config": {
- "id": "1691505294721",
- "alias": "NFC Jukebox test",
- "description": "",
- "trigger": [
- {
- "platform": "event",
- "event_type": "tag_scanned"
- }
- ],
- "condition": [
- "{{ trigger.event.data.tag_id in tags }}",
- "{{ trigger.event.data.device_id in media_players }}"
- ],
- "action": [
- {
- "service": "spotcast.start",
- "data": {
- "entity_id": "{{ media_player_entity_id }}",
- "uri": "{{ media_content_id }}"
- }
- },
- {
- "delay": "1"
- }
- ],
- "mode": "single",
- "max_exceeded": "silent",
- "variables": {
- "media_players": {
- "4a88bb7aaa057a3156f82ae8e0dc6fcd": "media_player.m7"
- },
- "tags": {
- "2364753d-879f-4e49-9560-448a7a883666": {
- "media_content_id": "spotify:track:1Sa4Pbf15yPm2HgfxnKdwh",
- "media_content_type": "track"
- },
- "9c05c7af-57f8-495f-9dcc-900cf37285fa": {
- "uri": "spotify:playlist:37RoMTxvLh9BHuJnJiyZNN",
- "media_content_type": "album"
- }
- }
- }
- },
- "blueprint_inputs": null,
- "context": {
- "id": "01H7CJ2DNEPBG7H5D0GC7X6Z12",
- "parent_id": "01H7CJ2DNDV7XM8X18Z22DC2YC",
- "user_id": null
- }
- },
- "logbookEntries": [
- {
- "name": "NFC Jukebox test",
- "message": "triggered by event 'tag_scanned'",
- "source": "event 'tag_scanned'",
- "entity_id": "automation.nfc_jukebox_test",
- "context_id": "01H7CJ2DNEPBG7H5D0GC7X6Z12",
- "when": 1691564979.888027,
- "domain": "automation"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment