Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sportluffi/71b416cb6508206621d74b274b35a8f1 to your computer and use it in GitHub Desktop.
Save sportluffi/71b416cb6508206621d74b274b35a8f1 to your computer and use it in GitHub Desktop.
This Blueprint is for the _TZ3000_axpdxqgu TS0044 Switch paired to the ZHA integration.
The Zigbee ID for this button is _TZ3000_axpdxqgu TS0044
It supports 3 functions:
Single press
Double press
Long press
The blueprint is heavily based on thedudeabides
Updated to support fuga version.
blueprint:
name: ZHA - _TZ3000_mh9px7cq TS0041 Switch
description: Automate your Fuga TS0044 Wireless Switch using ZHA events.
domain: automation
input:
ts0044_switch:
name: _TZ3000_axpdxqgu TS0044 Switch
description: _TZ3000_mh9px7cq TS0044 Switch to use
selector:
device:
integration: zha
manufacturer: _TZ3000_mh9px7cq
model: TS0044
button_single_press:
name: Single Press
description: Action to run on single press
default: []
selector:
action: {}
button_double_press:
name: Double Press
description: Action to run on double press
default: []
selector:
action: {}
button_long_press:
name: Long Press
description: Action to run when button is long pressed (held down)
default: []
selector:
action: {}
# source_url:
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input "ts0044_switch"
action:
- variables:
command: "{{ trigger.event.data.command }}"
- choose:
- conditions:
- "{{ command == 'remote_button_short_press' }}"
sequence: !input "button_single_press"
- conditions:
- "{{ command == 'remote_button_double_press' }}"
sequence: !input "button_double_press"
- conditions:
- "{{ command == 'remote_button_short_press' }}"
sequence: !input "button_long_press"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment