I’m working on setting up a blueprint to handle Sonoff Zigbee buttons. To know which button is being pressed I used the “unique_id” in the event data and I just hardcoded that and everything worked great. Trying to make a blueprint around this and figuring out what the unique_id is seems to not be possible.
I’m getting the device using a device selector
input:
button:
name: Button
description: The button to configure.
selector:
device:
manufacturer: eWeLink
model: WB01
In the variables I’m trying to convert from the device id that is provided by the input to the unique_id I need
variables:
button: !input 'button'
zigbee_id: "{{ button['IEEE'] }}:1:0x0006"
Then triggering using the unique_id of the event_data to ensure it is the button I’m looking for
trigger:
- platform: event
event_type: zha_event
event_data:
endpoint_id: 1
unique_id: '{{ ''zigbee_id'' }}'
Anyone know how I could get this property to build the unique_id?