Guest User

Untitled

a guest
Aug 9th, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. {
  2. "trace": {
  3. "last_step": "action/0",
  4. "run_id": "cdc309af551a96b61f571a15d7f1dfe5",
  5. "state": "stopped",
  6. "script_execution": "error",
  7. "timestamp": {
  8. "start": "2023-08-09T07:09:39.886593+00:00",
  9. "finish": "2023-08-09T07:09:40.288782+00:00"
  10. },
  11. "domain": "automation",
  12. "item_id": "1691505294721",
  13. "error": "device_name is empty",
  14. "trigger": "event 'tag_scanned'",
  15. "trace": {
  16. "trigger/0": [
  17. {
  18. "path": "trigger/0",
  19. "timestamp": "2023-08-09T07:09:39.886742+00:00",
  20. "changed_variables": {
  21. "media_players": {
  22. "4a88bb7aaa057a3156f82ae8e0dc6fcd": "media_player.m7"
  23. },
  24. "tags": {
  25. "2364753d-879f-4e49-9560-448a7a883666": {
  26. "media_content_id": "spotify:track:1Sa4Pbf15yPm2HgfxnKdwh",
  27. "media_content_type": "track"
  28. },
  29. "9c05c7af-57f8-495f-9dcc-900cf37285fa": {
  30. "uri": "spotify:playlist:37RoMTxvLh9BHuJnJiyZNN",
  31. "media_content_type": "album"
  32. }
  33. },
  34. "this": {
  35. "entity_id": "automation.nfc_jukebox_test",
  36. "state": "on",
  37. "attributes": {
  38. "id": "1691505294721",
  39. "last_triggered": "2023-08-09T07:09:15.719429+00:00",
  40. "mode": "single",
  41. "current": 0,
  42. "friendly_name": "NFC Jukebox test"
  43. },
  44. "last_changed": "2023-08-09T06:50:35.347366+00:00",
  45. "last_updated": "2023-08-09T07:09:16.269073+00:00",
  46. "context": {
  47. "id": "01H7CJ1P26TXCGFFX2AN0432CK",
  48. "parent_id": "01H7CJ1P22GH2M5WZRY69ZRB0Y",
  49. "user_id": null
  50. }
  51. },
  52. "trigger": {
  53. "id": "0",
  54. "idx": "0",
  55. "alias": null,
  56. "platform": "event",
  57. "event": {
  58. "event_type": "tag_scanned",
  59. "data": {
  60. "tag_id": "9c05c7af-57f8-495f-9dcc-900cf37285fa",
  61. "device_id": "4a88bb7aaa057a3156f82ae8e0dc6fcd"
  62. },
  63. "origin": "LOCAL",
  64. "time_fired": "2023-08-09T07:09:39.885502+00:00",
  65. "context": {
  66. "id": "01H7CJ2DNDV7XM8X18Z22DC2YC",
  67. "parent_id": null,
  68. "user_id": "d6e891cc40ea4f82ab29af38bc126129"
  69. }
  70. },
  71. "description": "event 'tag_scanned'"
  72. }
  73. }
  74. }
  75. ],
  76. "condition/0": [
  77. {
  78. "path": "condition/0",
  79. "timestamp": "2023-08-09T07:09:39.886888+00:00",
  80. "result": {
  81. "result": true,
  82. "entities": []
  83. }
  84. }
  85. ],
  86. "condition/1": [
  87. {
  88. "path": "condition/1",
  89. "timestamp": "2023-08-09T07:09:39.887465+00:00",
  90. "result": {
  91. "result": true,
  92. "entities": []
  93. }
  94. }
  95. ],
  96. "action/0": [
  97. {
  98. "path": "action/0",
  99. "timestamp": "2023-08-09T07:09:39.893044+00:00",
  100. "changed_variables": {
  101. "context": {
  102. "id": "01H7CJ2DNEPBG7H5D0GC7X6Z12",
  103. "parent_id": "01H7CJ2DNDV7XM8X18Z22DC2YC",
  104. "user_id": null
  105. }
  106. },
  107. "error": "device_name is empty",
  108. "result": {
  109. "params": {
  110. "domain": "spotcast",
  111. "service": "start",
  112. "service_data": {
  113. "entity_id": "",
  114. "uri": ""
  115. },
  116. "target": {}
  117. },
  118. "running_script": false
  119. }
  120. }
  121. ]
  122. },
  123. "config": {
  124. "id": "1691505294721",
  125. "alias": "NFC Jukebox test",
  126. "description": "",
  127. "trigger": [
  128. {
  129. "platform": "event",
  130. "event_type": "tag_scanned"
  131. }
  132. ],
  133. "condition": [
  134. "{{ trigger.event.data.tag_id in tags }}",
  135. "{{ trigger.event.data.device_id in media_players }}"
  136. ],
  137. "action": [
  138. {
  139. "service": "spotcast.start",
  140. "data": {
  141. "entity_id": "{{ media_player_entity_id }}",
  142. "uri": "{{ media_content_id }}"
  143. }
  144. },
  145. {
  146. "delay": "1"
  147. }
  148. ],
  149. "mode": "single",
  150. "max_exceeded": "silent",
  151. "variables": {
  152. "media_players": {
  153. "4a88bb7aaa057a3156f82ae8e0dc6fcd": "media_player.m7"
  154. },
  155. "tags": {
  156. "2364753d-879f-4e49-9560-448a7a883666": {
  157. "media_content_id": "spotify:track:1Sa4Pbf15yPm2HgfxnKdwh",
  158. "media_content_type": "track"
  159. },
  160. "9c05c7af-57f8-495f-9dcc-900cf37285fa": {
  161. "uri": "spotify:playlist:37RoMTxvLh9BHuJnJiyZNN",
  162. "media_content_type": "album"
  163. }
  164. }
  165. }
  166. },
  167. "blueprint_inputs": null,
  168. "context": {
  169. "id": "01H7CJ2DNEPBG7H5D0GC7X6Z12",
  170. "parent_id": "01H7CJ2DNDV7XM8X18Z22DC2YC",
  171. "user_id": null
  172. }
  173. },
  174. "logbookEntries": [
  175. {
  176. "name": "NFC Jukebox test",
  177. "message": "triggered by event 'tag_scanned'",
  178. "source": "event 'tag_scanned'",
  179. "entity_id": "automation.nfc_jukebox_test",
  180. "context_id": "01H7CJ2DNEPBG7H5D0GC7X6Z12",
  181. "when": 1691564979.888027,
  182. "domain": "automation"
  183. }
  184. ]
  185. }
Advertisement
Add Comment
Please, Sign In to add comment