Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernikr/6a276d5d82fa1f09d3419e405494ac54 to your computer and use it in GitHub Desktop.
Save bernikr/6a276d5d82fa1f09d3419e405494ac54 to your computer and use it in GitHub Desktop.
{
"trace": {
"last_step": "action/1/choose/10/conditions/3",
"run_id": "836a21f334149716f8d06dc3cbf5793a",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2022-04-06T19:08:47.442008+00:00",
"finish": "2022-04-06T19:08:47.508678+00:00"
},
"domain": "automation",
"item_id": "1648124061721",
"trigger": "event 'zha_event'",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2022-04-06T19:08:47.442578+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.controll_music_with_ikea_five_button_remote",
"state": "on",
"attributes": {
"last_triggered": "2022-04-06T19:08:25.679244+00:00",
"mode": "restart",
"current": 0,
"id": "1648124061721",
"friendly_name": "Controll bathroom Music with IKEA five button remote"
},
"last_changed": "2022-04-06T15:41:45.875547+00:00",
"last_updated": "2022-04-06T19:08:25.722045+00:00",
"context": {
"id": "4c6ee0bd05f8dd6b48438f58b22dae4e",
"parent_id": "f10ec3d38a778a236f9001ce22d2e2ee",
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"platform": "event",
"event": {
"event_type": "zha_event",
"data": {
"device_ieee": "68:0a:e2:ff:fe:a1:d9:92",
"unique_id": "68:0a:e2:ff:fe:a1:d9:92:1:0x0005",
"device_id": "646fdebbff2811ea9f7be3801aefb493",
"endpoint_id": 1,
"cluster_id": 5,
"command": "hold",
"args": [
3329,
0
]
},
"origin": "LOCAL",
"time_fired": "2022-04-06T19:08:47.435767+00:00",
"context": {
"id": "de6a2ab5b4e2bab806648f9d2beea944",
"parent_id": null,
"user_id": null
}
},
"description": "event 'zha_event'"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2022-04-06T19:08:47.449451+00:00",
"changed_variables": {
"context": {
"id": "09b25abeaefcdddf59bc447e9b0f2c0b",
"parent_id": "de6a2ab5b4e2bab806648f9d2beea944",
"user_id": null
}
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2022-04-06T19:08:47.459500+00:00",
"changed_variables": {
"command": "hold",
"cluster_id": 5,
"endpoint_id": 1,
"args": "hold(param1=3329, param2=0)"
}
}
],
"action/1/choose/0": [
{
"path": "action/1/choose/0",
"timestamp": "2022-04-06T19:08:47.460007+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/0/conditions/0": [
{
"path": "action/1/choose/0/conditions/0",
"timestamp": "2022-04-06T19:08:47.460242+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/1": [
{
"path": "action/1/choose/1",
"timestamp": "2022-04-06T19:08:47.461279+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/1/conditions/0": [
{
"path": "action/1/choose/1/conditions/0",
"timestamp": "2022-04-06T19:08:47.461541+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/2": [
{
"path": "action/1/choose/2",
"timestamp": "2022-04-06T19:08:47.462517+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/2/conditions/0": [
{
"path": "action/1/choose/2/conditions/0",
"timestamp": "2022-04-06T19:08:47.462733+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/3": [
{
"path": "action/1/choose/3",
"timestamp": "2022-04-06T19:08:47.463613+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/3/conditions/0": [
{
"path": "action/1/choose/3/conditions/0",
"timestamp": "2022-04-06T19:08:47.463936+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/4": [
{
"path": "action/1/choose/4",
"timestamp": "2022-04-06T19:08:47.464816+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/4/conditions/0": [
{
"path": "action/1/choose/4/conditions/0",
"timestamp": "2022-04-06T19:08:47.465035+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/5": [
{
"path": "action/1/choose/5",
"timestamp": "2022-04-06T19:08:47.465852+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/5/conditions/0": [
{
"path": "action/1/choose/5/conditions/0",
"timestamp": "2022-04-06T19:08:47.466159+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/6": [
{
"path": "action/1/choose/6",
"timestamp": "2022-04-06T19:08:47.466895+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/6/conditions/0": [
{
"path": "action/1/choose/6/conditions/0",
"timestamp": "2022-04-06T19:08:47.467152+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/7": [
{
"path": "action/1/choose/7",
"timestamp": "2022-04-06T19:08:47.472366+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/7/conditions/0": [
{
"path": "action/1/choose/7/conditions/0",
"timestamp": "2022-04-06T19:08:47.472648+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/8": [
{
"path": "action/1/choose/8",
"timestamp": "2022-04-06T19:08:47.473631+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/8/conditions/0": [
{
"path": "action/1/choose/8/conditions/0",
"timestamp": "2022-04-06T19:08:47.473846+00:00",
"result": {
"result": true,
"entities": []
}
}
],
"action/1/choose/8/conditions/1": [
{
"path": "action/1/choose/8/conditions/1",
"timestamp": "2022-04-06T19:08:47.474520+00:00",
"result": {
"result": true,
"entities": []
}
}
],
"action/1/choose/8/conditions/2": [
{
"path": "action/1/choose/8/conditions/2",
"timestamp": "2022-04-06T19:08:47.475132+00:00",
"result": {
"result": true,
"entities": []
}
}
],
"action/1/choose/8/conditions/3": [
{
"path": "action/1/choose/8/conditions/3",
"timestamp": "2022-04-06T19:08:47.475621+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/9": [
{
"path": "action/1/choose/9",
"timestamp": "2022-04-06T19:08:47.476353+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/9/conditions/0": [
{
"path": "action/1/choose/9/conditions/0",
"timestamp": "2022-04-06T19:08:47.476532+00:00",
"result": {
"result": false,
"entities": []
}
}
],
"action/1/choose/10": [
{
"path": "action/1/choose/10",
"timestamp": "2022-04-06T19:08:47.477173+00:00",
"result": {
"result": false
}
}
],
"action/1/choose/10/conditions/0": [
{
"path": "action/1/choose/10/conditions/0",
"timestamp": "2022-04-06T19:08:47.477340+00:00",
"result": {
"result": true,
"entities": []
}
}
],
"action/1/choose/10/conditions/1": [
{
"path": "action/1/choose/10/conditions/1",
"timestamp": "2022-04-06T19:08:47.477864+00:00",
"result": {
"result": true,
"entities": []
}
}
],
"action/1/choose/10/conditions/2": [
{
"path": "action/1/choose/10/conditions/2",
"timestamp": "2022-04-06T19:08:47.479834+00:00",
"result": {
"result": true,
"entities": []
}
}
],
"action/1/choose/10/conditions/3": [
{
"path": "action/1/choose/10/conditions/3",
"timestamp": "2022-04-06T19:08:47.481220+00:00",
"result": {
"result": false,
"entities": []
}
}
]
},
"config": {
"mode": "restart",
"max_exceeded": "silent",
"trigger": [
{
"platform": "event",
"event_type": "zha_event",
"event_data": {
"device_id": "646fdebbff2811ea9f7be3801aefb493"
}
}
],
"action": [
{
"variables": {
"command": "{{ trigger.event.data.command }}",
"cluster_id": "{{ trigger.event.data.cluster_id }}",
"endpoint_id": "{{ trigger.event.data.endpoint_id }}",
"args": "{{ trigger.event.data.args }}"
}
},
{
"choose": [
{
"conditions": [
"{{ command == 'toggle' }}",
"{{ cluster_id == 6 }}",
"{{ endpoint_id == 1 }}"
],
"sequence": [
{
"service": "media_player.media_play_pause",
"data": {},
"target": {
"entity_id": [
"media_player.bathroom_speaker"
]
}
}
]
},
{
"conditions": [
"{{ command == 'step_with_on_off' }}",
"{{ cluster_id == 8 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [0, 43, 5] }}"
],
"sequence": [
{
"service": "media_player.volume_up",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
]
},
{
"conditions": [
"{{ command == 'move_with_on_off' }}",
"{{ cluster_id == 8 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [0, 84] }}"
],
"sequence": []
},
{
"conditions": [
"{{ command == 'move_with_on_off' }}",
"{{ cluster_id == 8 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [0, 83] }}"
],
"sequence": []
},
{
"conditions": [
"{{ command == 'step' }}",
"{{ cluster_id == 8 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [1, 43, 5] }}"
],
"sequence": [
{
"service": "media_player.volume_down",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
]
},
{
"conditions": [
"{{ command == 'move' }}",
"{{ cluster_id == 8 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [1, 84] }}"
],
"sequence": []
},
{
"conditions": [
"{{ command == 'move' }}",
"{{ cluster_id == 8 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [1, 83] }}"
],
"sequence": []
},
{
"conditions": [
"{{ command == 'press' }}",
"{{ cluster_id == 5 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [257, 13, 0] }}"
],
"sequence": [
{
"service": "media_player.media_previous_track",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
]
},
{
"conditions": [
"{{ command == 'hold' }}",
"{{ cluster_id == 5 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [3329, 0] }}"
],
"sequence": [
{
"service": "spotcast.start",
"data": {
"entity_id": "media_player.bathroom_speaker",
"uri": "spotify:playlist:####",
"random_song": true,
"shuffle": true,
"start_volume": 40,
"account": "####"
}
}
]
},
{
"conditions": [
"{{ command == 'press' }}",
"{{ cluster_id == 5 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [256, 13, 0] }}"
],
"sequence": [
{
"service": "media_player.media_next_track",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
]
},
{
"conditions": [
"{{ command == 'hold' }}",
"{{ cluster_id == 5 }}",
"{{ endpoint_id == 1 }}",
"{{ args == [3328, 0] }}"
],
"sequence": [
{
"service": "spotcast.start",
"data": {
"entity_id": "media_player.bathroom_speaker",
"uri": "spotify:playlist:####",
"account": "####",
"random_song": true,
"shuffle": true,
"start_volume": 40
}
}
]
}
]
}
],
"id": "1648124061721",
"alias": "Controll bathroom Music with IKEA five button remote",
"description": ""
},
"blueprint_inputs": {
"id": "1648124061721",
"alias": "Controll bathroom Music with IKEA five button remote",
"description": "",
"use_blueprint": {
"path": "wormie_dk/zha-ikea-five-button-remote.yaml",
"input": {
"remote": "646fdebbff2811ea9f7be3801aefb493",
"button_on_off": [
{
"service": "media_player.media_play_pause",
"data": {},
"target": {
"entity_id": [
"media_player.bathroom_speaker"
]
}
}
],
"button_brightness_up_short": [
{
"service": "media_player.volume_up",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
],
"button_brightness_down_short": [
{
"service": "media_player.volume_down",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
],
"button_left_short": [
{
"service": "media_player.media_previous_track",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
],
"button_right_short": [
{
"service": "media_player.media_next_track",
"data": {},
"target": {
"entity_id": "media_player.bathroom_speaker"
}
}
],
"button_right_long": [
{
"service": "spotcast.start",
"data": {
"entity_id": "media_player.bathroom_speaker",
"uri": "spotify:playlist:####",
"account": "####",
"random_song": true,
"shuffle": true,
"start_volume": 40
}
}
],
"button_left_long": [
{
"service": "spotcast.start",
"data": {
"entity_id": "media_player.bathroom_speaker",
"uri": "spotify:playlist:####",
"random_song": true,
"shuffle": true,
"start_volume": 40,
"account": "####"
}
}
]
}
}
},
"context": {
"id": "09b25abeaefcdddf59bc447e9b0f2c0b",
"parent_id": "de6a2ab5b4e2bab806648f9d2beea944",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Controll bathroom Music with IKEA five button remote",
"message": "has been triggered by event 'zha_event'",
"source": "event 'zha_event'",
"entity_id": "automation.controll_music_with_ikea_five_button_remote",
"context_id": "09b25abeaefcdddf59bc447e9b0f2c0b",
"when": "2022-04-06T19:08:47.443221+00:00",
"domain": "automation"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment