i tried removeing the blueprint and the unit from z2m, and readding both.
But i still get the same error, no matter what i do.
{
"trace": {
"last_step": "action/0",
"run_id": "78c39bd728e4819d23faf0bd6061db9b",
"state": "stopped",
"script_execution": "error",
"timestamp": {
"start": "2022-04-25T18:14:36.018722+00:00",
"finish": "2022-04-25T18:14:36.026991+00:00"
},
"domain": "automation",
"item_id": "1650910437476",
"error": "UndefinedError: 'dict object' has no attribute 'to_state'",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2022-04-25T18:14:36.018808+00:00",
"changed_variables": {
"force_brightness": false,
"this": {
"entity_id": "automation.z2m_ikea_five_button_remote_for_lights",
"state": "on",
"attributes": {
"last_triggered": "2022-04-24T16:03:23.951776+00:00",
"mode": "restart",
"current": 0,
"id": "1650910437476",
"friendly_name": "Z2M - IKEA five button remote for lights"
},
"last_changed": "2022-04-25T18:14:33.082940+00:00",
"last_updated": "2022-04-25T18:14:33.082940+00:00",
"context": {
"id": "25c1f24672a1ca44bdca848e09ce414a",
"parent_id": null,
"user_id": "5091a839e50c41c4894436f2365fe899"
}
},
"trigger": {
"platform": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2022-04-25T18:14:36.019878+00:00",
"changed_variables": {
"context": {
"id": "f29c33a70a2ed31e183802a8c95b36f1",
"parent_id": "14e3ff66aae7c942b9e3c20291ccad62",
"user_id": null
}
},
"error": "UndefinedError: 'dict object' has no attribute 'to_state'"
}
]
},
"config": {
"mode": "restart",
"max_exceeded": "silent",
"variables": {
"force_brightness": false
},
"trigger": [
{
"platform": "state",
"entity_id": "sensor.tradfri_rc_2_action",
"attribute": "action"
}
],
"action": [
{
"variables": {
"command": "{{ trigger.to_state.state }}"
}
},
{
"choose": [
{
"conditions": [
"{{ command == 'toggle' }}"
],
"sequence": [
{
"choose": [
{
"conditions": "{{ force_brightness }}",
"sequence": [
{
"service": "light.toggle",
"target": {
"entity_id": "light.lys_panel"
},
"data": {
"transition": 1,
"brightness_pct": 50
}
}
]
}
],
"default": [
{
"service": "light.toggle",
"target": {
"entity_id": "light.lys_panel"
},
"data": {
"transition": 1
}
}
]
}
]
},
{
"conditions": [
"{{ command == 'brightness_up_click' }}"
],
"sequence": [
{
"service": "light.turn_on",
"target": {
"entity_id": "light.lys_panel"
},
"data": {
"brightness_step_pct": 10,
"transition": 1
}
}
]
},
{
"conditions": [
"{{ command == 'brightness_up_hold' }}"
],
"sequence": [
{
"repeat": {
"until": [
{
"condition": "state",
"entity_id": "sensor.tradfri_rc_2_action",
"state": "brightness_up_release",
"attribute": "action"
}
],
"sequence": [
{
"service": "light.turn_on",
"data": {
"brightness_step_pct": 10,
"transition": 1
},
"target": {
"entity_id": "light.lys_panel"
}
},
{
"delay": "1"
}
]
}
}
]
},
{
"conditions": [
"{{ command == 'brightness_down_click' }}"
],
"sequence": [
{
"service": "light.turn_on",
"target": {
"entity_id": "light.lys_panel"
},
"data": {
"brightness_step_pct": -10,
"transition": 1
}
}
]
},
{
"conditions": [
"{{ command == 'brightness_down_hold' }}"
],
"sequence": [
{
"repeat": {
"until": [
{
"condition": "state",
"entity_id": "sensor.tradfri_rc_2_action",
"state": "brightness_down_release",
"attribute": "action"
}
],
"sequence": [
{
"service": "light.turn_on",
"data": {
"brightness_step_pct": -10,
"transition": 1
},
"target": {
"entity_id": "light.lys_panel"
}
},
{
"delay": "1"
}
]
}
}
]
},
{
"conditions": [
"{{ command == 'arrow_left_click' }}"
],
"sequence": []
},
{
"conditions": [
"{{ command == 'arrow_left_hold' }}"
],
"sequence": []
},
{
"conditions": [
"{{ command == 'arrow_right_click' }}"
],
"sequence": []
},
{
"conditions": [
"{{ command == 'arrow_right_hold' }}"
],
"sequence": []
}
]
}
],
"id": "1650910437476",
"alias": "Z2M - IKEA five button remote for lights",
"description": ""
},
"blueprint_inputs": {
"id": "1650910437476",
"alias": "Z2M - IKEA five button remote for lights",
"description": "",
"use_blueprint": {
"path": "starbuck93/zigbee2mqtt-ikea-five-button-remote.yaml",
"input": {
"remote": "sensor.tradfri_rc_2_action",
"light": {
"entity_id": "light.lys_panel"
}
}
}
},
"context": {
"id": "f29c33a70a2ed31e183802a8c95b36f1",
"parent_id": "14e3ff66aae7c942b9e3c20291ccad62",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Z2M - IKEA five button remote for lights",
"message": "has been triggered",
"source": null,
"entity_id": "automation.z2m_ikea_five_button_remote_for_lights",
"context_id": "f29c33a70a2ed31e183802a8c95b36f1",
"when": "2022-04-25T18:14:36.018927+00:00",
"domain": "automation"
}
]
}