blueprint: name: Minoston MR40Z S2 Remote Control Switch description: Create an automation for the Minoston MR40Z 4 button remote using ZWAVE-JS integration domain: automation input: minoston_mr40z: name: Minoston MR40Z description: The Minoston MR40Z to interact with. selector: device: integration: zwave_js manufacturer: Minoston model: MR40Z button_1_1: name: Press Button One (Top Large) 1x description: Action to run on button press once. default: [] selector: action: {} button_1_2: name: Press Button One (Top Large) 2x description: Action to run on button press twice. default: [] selector: action: {} button_1_3: name: Press Button One (Top Large) 3x description: Action to run on button press thrice. default: [] selector: action: {} button_1_held: name: Hold Button One (Top Large) description: Action to run on button hold. default: [] selector: action: {} button_1_released: name: Release Button One (Top Large) description: Action to run on button release. default: [] selector: action: {} button_2_1: name: Press Button Two (Bottom Large) 1x description: Action to run on button press once. default: [] selector: action: {} button_2_2: name: Press Button Two (Bottom Large) 2x description: Action to run on button press twice. default: [] selector: action: {} button_2_3: name: Press Button Two (Bottom Large) 3x description: Action to run on button press thrice. default: [] selector: action: {} button_2_held: name: Hold Button Two (Bottom Large) description: Action to run on button hold. default: [] selector: action: {} button_2_released: name: Release Button Two (Bottom Large) description: Action to run on button release. default: [] selector: action: {} button_3_1: name: Press Button Three (Left Small) 1x description: Action to run on button press once. default: [] selector: action: {} button_3_2: name: Press Button Three (Left Small) 2x description: Action to run on button press twice. default: [] selector: action: {} button_3_3: name: Press Button One (Left Small) 3x description: Action to run on button press thrice. default: [] selector: action: {} button_3_held: name: Hold Button Three (Left Small) description: Action to run on button hold. default: [] selector: action: {} button_3_released: name: Release Button Three (Left Small) description: Action to run on button release. default: [] selector: action: {} button_4_1: name: Press Button Four (Right Small) 1x description: Action to run on button press once. default: [] selector: action: {} button_4_2: name: Press Button Four (Right Small) 2x description: Action to run on button press twice. default: [] selector: action: {} button_4_3: name: Press Button One (Right Small) 3x description: Action to run on button press thrice. default: [] selector: action: {} button_4_held: name: Hold Button Four (Right Small) description: Action to run on button hold. default: [] selector: action: {} button_4_released: name: Release Button Four (Right Small) description: Action to run on button release. default: [] selector: action: {} trigger: platform: event event_type: zwave_js_value_notification event_data: command_class_name: Central Scene device_id: !input minoston_mr40z action: - variables: scene_id: "{{ trigger.event.data.property_key_name }}" scene_value_id: "{{ trigger.event.data.value }}" - choose: - conditions: "{{ scene_id == '001' and scene_value_id == 'KeyPressed' }}" sequence: !input button_1_1 - conditions: "{{ scene_id == '001' and scene_value_id == 'KeyPressed2x' }}" sequence: !input button_1_2 - conditions: "{{ scene_id == '001' and scene_value_id == 'KeyPressede3x' }}" sequence: !input button_1_3 - conditions: "{{ scene_id == '001' and scene_value_id == 'KeyHeldDown' }}" sequence: !input button_1_held - conditions: "{{ scene_id == '001' and scene_value_id == 'KeyReleased' }}" sequence: !input button_1_released - conditions: "{{ scene_id == '002' and scene_value_id == 'KeyPressed' }}" sequence: !input button_2_1 - conditions: "{{ scene_id == '002' and scene_value_id == 'KeyPressed2x' }}" sequence: !input button_2_2 - conditions: "{{ scene_id == '002' and scene_value_id == 'KeyPressed3x' }}" sequence: !input button_2_3 - conditions: "{{ scene_id == '002' and scene_value_id == 'KeyHeldDown' }}" sequence: !input button_2_held - conditions: "{{ scene_id == '002' and scene_value_id == 'KeyReleased' }}" sequence: !input button_2_released - conditions: "{{ scene_id == '003' and scene_value_id == 'KeyPressed' }}" sequence: !input button_3_1 - conditions: "{{ scene_id == '003' and scene_value_id == 'KeyPressed2x' }}" sequence: !input button_3_2 - conditions: "{{ scene_id == '003' and scene_value_id == 'KeyPressed3x' }}" sequence: !input button_3_3 - conditions: "{{ scene_id == '003' and scene_value_id == 'KeyHeldDown' }}" sequence: !input button_3_held - conditions: "{{ scene_id == '003' and scene_value_id == 'KeyReleased' }}" sequence: !input button_3_released - conditions: "{{ scene_id == '004' and scene_value_id == 'KeyPressed' }}" sequence: !input button_4_1 - conditions: "{{ scene_id == '004' and scene_value_id == 'KeyPressed2x' }}" sequence: !input button_4_2 - conditions: "{{ scene_id == '004' and scene_value_id == 'KeyPressed3x' }}" sequence: !input button_4_3 - conditions: "{{ scene_id == '004' and scene_value_id == 'KeyHeldDown' }}" sequence: !input button_4_held - conditions: "{{ scene_id == '004' and scene_value_id == 'KeyReleased' }}" sequence: !input button_4_released mode: single max_exceeded: silent