Hi,
I’m new to HA and I’m trying to make blueprint for managing the Tuya’s Zigbee wireless button based on events. I’m using LocalTuya fork for that integration.
Here is my template:
blueprint:
name: LocalTuya Button Event
description: Automatyzacja dla zdarzeń przycisków LocalTuya
domain: automation
input:
button_device:
name: Wybierz urządzenie
description: Wybierz przycisk LocalTuya z listy urządzeń
selector:
device:
entity:
- domain: select
multiple: false
button_device_id:
name: ID urządzenia
description: Podaj ID urządzenia przycisku
selector:
text:
click_type:
name: Typ kliknięcia
description: Wybierz typ naciśnięcia
selector:
select:
options:
- single_click
- double_click
- long_press
action:
name: Akcja
description: Co ma się wydarzyć po wykryciu zdarzenia.
selector:
action: {}
trigger:
- trigger: event
event_type: localtuya_device_dp_triggered
event_data:
device_id: !input button_device_id
value: !input click_type
action:
- choose:
- conditions: []
sequence: !input action
I have an issue with extracting Tuya’s device_id when choosing the device from the list.
When I use device_id: !input button_device_id
in trigger
section, everything works fine, but I don’t know how to get rid of text input button_device_id
and use only device input button_device
.
Can someone help me with that?