Last active
October 15, 2025 07:45
-
-
Save Soulfly999/312df9b907333fbfa848eb09ed7fa0a8 to your computer and use it in GitHub Desktop.
Zigbee2MQTT v 2.0 - Tuya 4-Button Scene Switch blueprint for Homassistant
This file contains hidden or 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: Tuya Zigbee Z2M 4 button remote (MQTT Sensor) | |
| description: "TS0044_1 via Zigbee2MQTT Action-Sensor" | |
| domain: automation | |
| input: | |
| action_entity: | |
| name: Zigbee2MQTT Action Entity | |
| description: Wähle den MQTT-Sensor mit den Button-Events (z. B. sensor.tuya_remote_action) | |
| selector: | |
| entity: | |
| domain: sensor | |
| integration: mqtt | |
| button_1_short_press: | |
| name: Single Press - Button 1 | |
| default: [] | |
| selector: { action: {} } | |
| button_1_double_press: | |
| name: Double Press - Button 1 | |
| default: [] | |
| selector: { action: {} } | |
| button_1_hold: | |
| name: Hold - Button 1 | |
| default: [] | |
| selector: { action: {} } | |
| button_2_short_press: | |
| name: Single Press - Button 2 | |
| default: [] | |
| selector: { action: {} } | |
| button_2_double_press: | |
| name: Double Press - Button 2 | |
| default: [] | |
| selector: { action: {} } | |
| button_2_hold: | |
| name: Hold - Button 2 | |
| default: [] | |
| selector: { action: {} } | |
| button_3_short_press: | |
| name: Single Press - Button 3 | |
| default: [] | |
| selector: { action: {} } | |
| button_3_double_press: | |
| name: Double Press - Button 3 | |
| default: [] | |
| selector: { action: {} } | |
| button_3_hold: | |
| name: Hold - Button 3 | |
| default: [] | |
| selector: { action: {} } | |
| button_4_short_press: | |
| name: Single Press - Button 4 | |
| default: [] | |
| selector: { action: {} } | |
| button_4_double_press: | |
| name: Double Press - Button 4 | |
| default: [] | |
| selector: { action: {} } | |
| button_4_hold: | |
| name: Long Press - Button 4 | |
| default: [] | |
| selector: { action: {} } | |
| mode: queued | |
| max_exceeded: silent | |
| trigger: | |
| - platform: state | |
| entity_id: !input action_entity | |
| action: | |
| - choose: | |
| - conditions: "{{ trigger.to_state.state == '1_single' }}" | |
| sequence: !input button_1_short_press | |
| - conditions: "{{ trigger.to_state.state == '1_double' }}" | |
| sequence: !input button_1_double_press | |
| - conditions: "{{ trigger.to_state.state == '1_hold' }}" | |
| sequence: !input button_1_hold | |
| - conditions: "{{ trigger.to_state.state == '2_single' }}" | |
| sequence: !input button_2_short_press | |
| - conditions: "{{ trigger.to_state.state == '2_double' }}" | |
| sequence: !input button_2_double_press | |
| - conditions: "{{ trigger.to_state.state == '2_hold' }}" | |
| sequence: !input button_2_hold | |
| - conditions: "{{ trigger.to_state.state == '3_single' }}" | |
| sequence: !input button_3_short_press | |
| - conditions: "{{ trigger.to_state.state == '3_double' }}" | |
| sequence: !input button_3_double_press | |
| - conditions: "{{ trigger.to_state.state == '3_hold' }}" | |
| sequence: !input button_3_hold | |
| - conditions: "{{ trigger.to_state.state == '4_single' }}" | |
| sequence: !input button_4_short_press | |
| - conditions: "{{ trigger.to_state.state == '4_double' }}" | |
| sequence: !input button_4_double_press | |
| - conditions: "{{ trigger.to_state.state == '4_hold' }}" | |
| sequence: !input button_4_hold |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment