yousaf465
(Yousaf465)
June 27, 2024, 2:36pm
1
I have set up moes smart knob with a blueprint by Amrutprabhu. it was working fine until a few weeks ago. now it is throwing an error
Error: UndefinedError: list object has no element 1
yaml
alias: ZHA - Moes Smart Knob for lights
description: bedroom light
use_blueprint:
path: amrutprabhu/zha_moes_smart_knob_lights.yaml
input:
remote: 4ed125ba5e5296bb05ce78539d1a5bec
light:
entity_id:
- light.lifx_a19_23eb28
- light.bedroom_lifx_3
step_percent: 20
press_light:
entity_id: light.bedroom_bulb
press_step_percent: 100
single_press:
- service: light.toggle
metadata: {}
data: {}
target:
entity_id: light.bedroom_bulb
petro
(Petro)
June 27, 2024, 3:09pm
2
Click on the changed variables tab and post the full results here.
yousaf465
(Yousaf465)
June 27, 2024, 4:07pm
3
this:
entity_id: automation.zha_moes_smart_knob_for_lights
state: 'on'
attributes:
id: '1714385410453'
last_triggered: '2024-06-27T16:05:34.999365+00:00'
mode: restart
current: 0
friendly_name: ZHA - Moes Smart Knob for lights
last_changed: '2024-06-27T15:16:38.742052+00:00'
last_reported: '2024-06-27T16:05:35.007364+00:00'
last_updated: '2024-06-27T16:05:35.007364+00:00'
context:
id: 01J1D73W4P8ZG8X8D95H10PS2Y
parent_id: 01J1D73W4PX5SVA9GSFE6E9SPG
user_id: null
trigger:
id: '0'
idx: '0'
alias: null
platform: event
event:
event_type: zha_event
data:
device_ieee: 90:39:5e:ff:fe:4d:07:4e
unique_id: 90:39:5e:ff:fe:4d:07:4e:1:0x0006
device_id: 4ed125ba5e5296bb05ce78539d1a5bec
endpoint_id: 1
cluster_id: 6
command: rotate_type
args:
- 1
params:
rotate_type: 1
origin: LOCAL
time_fired: '2024-06-27T16:05:35.008695+00:00'
context:
id: 01J1D73W50KXR51R269M97B14G
parent_id: null
user_id: null
description: event 'zha_event'
petro
(Petro)
June 27, 2024, 4:08pm
4
you aren’t on the correct node. It should show you the trigger. nm you edited
petro
(Petro)
June 27, 2024, 4:12pm
5
Your event only has 1 argument
But your code is looking for 2.
petro
(Petro)
June 27, 2024, 4:15pm
7
Contact the blueprint maker. I don’t have the device, so I can’t fix it for you. You’ll need to talk with someone who has the device and knows what the event data means.
yousaf465
(Yousaf465)
June 27, 2024, 4:20pm
8
asked him on his youtube channel
yousaf465
(Yousaf465)
June 27, 2024, 7:33pm
9
found an odd issue, “Bedroom Lifx 3” is added in blueprint but on device page automation is not shown?