blueprint:
name: Zemismart ZMR4 - ZHA Events
description: Easily setup your Zemismart ZMR4 4-Button Switch using ZHA events
domain: automation
source_url: https://github.com/YOUR_USERNAME/zemismart-zmr4-blueprint
author: YOUR_NAME
input:
zemismart_device:
name: Zemismart ZMR4 Device
description: Select your Zemismart ZMR4 device you want to configure actions for.
selector:
device:
multiple: false
button1_sp:
name: Action SP Button 1 (Endpoint 1)
default:
description: Action Type for single pressing Button 1 (Endpoint 1)
selector:
action: {}
button1_dp:
name: Action DP Button 1 (Endpoint 1)
default:
description: Action Type for double pressing Button 1 (Endpoint 1)
selector:
action: {}
button1_lp:
name: Action LP Button 1 (Endpoint 1)
default:
description: Action Type for long pressing Button 1 (Endpoint 1)
selector:
action: {}
button2_sp:
name: Action SP Button 2 (Endpoint 2)
default:
description: Action Type for single pressing Button 2 (Endpoint 2)
selector:
action: {}
button2_dp:
name: Action DP Button 2 (Endpoint 2)
default:
description: Action Type for double pressing Button 2 (Endpoint 2)
selector:
action: {}
button2_lp:
name: Action LP Button 2 (Endpoint 2)
default:
description: Action Type for long pressing Button 2 (Endpoint 2)
selector:
action: {}
button3_sp:
name: Action SP Button 3 (Endpoint 3)
default:
description: Action Type for single pressing Button 3 (Endpoint 3)
selector:
action: {}
button3_dp:
name: Action DP Button 3 (Endpoint 3)
default:
description: Action Type for double pressing Button 3 (Endpoint 3)
selector:
action: {}
button3_lp:
name: Action LP Button 3 (Endpoint 3)
default:
description: Action Type for long pressing Button 3 (Endpoint 3)
selector:
action: {}
button4_sp:
name: Action SP Button 4 (Endpoint 4)
default:
description: Action Type for single pressing Button 4 (Endpoint 4)
selector:
action: {}
button4_dp:
name: Action DP Button 4 (Endpoint 4)
default:
description: Action Type for double pressing Button 4 (Endpoint 4)
selector:
action: {}
button4_lp:
name: Action LP Button 4 (Endpoint 4)
default:
description: Action Type for long pressing Button 4 (Endpoint 4)
selector:
action: {}
trigger_variables:
var_device_id: !input zemismart_device
trigger:
- platform: event
id: B1
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 1
command: remote_button_short_press
- platform: event
id: B1_DP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 1
command: remote_button_double_press
- platform: event
id: B1_LP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 1
command: remote_button_long_press
- platform: event
id: B2
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 2
command: remote_button_short_press
- platform: event
id: B2_DP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 2
command: remote_button_double_press
- platform: event
id: B2_LP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 2
command: remote_button_long_press
- platform: event
id: B3
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 3
command: remote_button_short_press
- platform: event
id: B3_DP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 3
command: remote_button_double_press
- platform: event
id: B3_LP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 3
command: remote_button_long_press
- platform: event
id: B4
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 4
command: remote_button_short_press
- platform: event
id: B4_DP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 4
command: remote_button_double_press
- platform: event
id: B4_LP
event_type: zha_event
event_data:
device_id: "{{ var_device_id }}"
endpoint_id: 4
command: remote_button_long_press
action:
- choose:
- conditions:
- condition: trigger
id: B1
sequence: !input button1_sp
- conditions:
- condition: trigger
id: B1_DP
sequence: !input button1_dp
- conditions:
- condition: trigger
id: B1_LP
sequence: !input button1_lp
- conditions:
- condition: trigger
id: B2
sequence: !input button2_sp
- conditions:
- condition: trigger
id: B2_DP
sequence: !input button2_dp
- conditions:
- condition: trigger
id: B2_LP
sequence: !input button2_lp
- conditions:
- condition: trigger
id: B3
sequence: !input button3_sp
- conditions:
- condition: trigger
id: B3_DP
sequence: !input button3_dp
- conditions:
- condition: trigger
id: B3_LP
sequence: !input button3_lp
- conditions:
- condition: trigger
id: B4
sequence: !input button4_sp
- conditions:
- condition: trigger
id: B4_DP
sequence: !input button4_dp
- conditions:
- condition: trigger
id: B4_LP
sequence: !input button4_lp
Hello Billnyc,
Is it your intention to share this on the Blueprint Exchange?
If so this is the wrong category (you can change that with the pencil in the title line) and I suggest adding a little more text to explain what it is and why it’s different from the other ones for the same hardware.
Also I have a suggestion for you. Many people who are not familiar with directory structures will have problems installing this without the Home Assistant MY tools.
Adding a MY link for this Blueprint to your top post would help them a lot.
Here is the link to make that.
ah thank you! yes I want to add to the blueprint exchange, was not sure how to do this.