Last active
August 5, 2024 03:43
-
-
Save Fiser12/33ecfb2e28847876022347efab470afd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zigbee2MQTT - Tuya TS0043 3 button remote | |
description: Automate your Tuya TS0043 3 button remote using Zigbee2MQTT events. | |
domain: automation | |
input: | |
mqtt_topic: | |
name: MQTT Topic | |
description: The MQTT topic to subscribe to for button presses | |
default: 'zigbee2mqtt/[ESTUDIO] Boton Persiana/action' | |
selector: | |
text: {} | |
tuya_ts0043: | |
name: Tuya TS0043 3 button remote | |
description: Tuya TS0043 3 button remote to use | |
selector: | |
device: | |
integration: mqtt | |
button_one_single_press: | |
name: Button 1 (single press) | |
description: Action to run on button 1 single press | |
default: [] | |
selector: | |
action: {} | |
button_one_double_press: | |
name: Button 1 (double press) | |
description: Action to run on button 1 double press | |
default: [] | |
selector: | |
action: {} | |
button_one_long_press: | |
name: Button 1 (long press) | |
description: Action to run on button 1 long press | |
default: [] | |
selector: | |
action: {} | |
button_two_single_press: | |
name: Button 2 (single press) | |
description: Action to run on button 2 single press | |
default: [] | |
selector: | |
action: {} | |
button_two_double_press: | |
name: Button 2 (double press) | |
description: Action to run on button 2 double press | |
default: [] | |
selector: | |
action: {} | |
button_two_long_press: | |
name: Button 2 (long press) | |
description: Action to run on button 2 long press | |
default: [] | |
selector: | |
action: {} | |
button_three_single_press: | |
name: Button 3 (single press) | |
description: Action to run on button 3 single press | |
default: [] | |
selector: | |
action: {} | |
button_three_double_press: | |
name: Button 3 (double press) | |
description: Action to run on button 3 double press | |
default: [] | |
selector: | |
action: {} | |
button_three_long_press: | |
name: Button 3 (long press) | |
description: Action to run on button 3 long press | |
default: [] | |
selector: | |
action: {} | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
- platform: mqtt | |
topic: !input mqtt_topic | |
action: | |
- variables: | |
command: '{{ trigger.payload }}' | |
- choose: | |
- conditions: | |
- '{{ command == "1_single" }}' | |
sequence: !input 'button_one_single_press' | |
- conditions: | |
- '{{ command == "1_double" }}' | |
sequence: !input 'button_one_double_press' | |
- conditions: | |
- '{{ command == "1_long" }}' | |
sequence: !input 'button_one_long_press' | |
- conditions: | |
- '{{ command == "2_single" }}' | |
sequence: !input 'button_two_single_press' | |
- conditions: | |
- '{{ command == "2_double" }}' | |
sequence: !input 'button_two_double_press' | |
- conditions: | |
- '{{ command == "2_long" }}' | |
sequence: !input 'button_two_long_press' | |
- conditions: | |
- '{{ command == "3_single" }}' | |
sequence: !input 'button_three_single_press' | |
- conditions: | |
- '{{ command == "3_double" }}' | |
sequence: !input 'button_three_double_press' | |
- conditions: | |
- '{{ command == "3_long" }}' | |
sequence: !input 'button_three_long_press' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment