Moes ZT-B-EU2 2 buttons scene switch MQTT blueprint

Hello, here is the blueprint for MOES ZT-B-EU2 used in home assistant with Zigbee2mqtt. I didn’t find one so I made one from this 4 buttons model : Moes 4-Button Scene Controller - Zigbee2MQTT (Model: TS0044)

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

blueprint:
  name: Moes 2-Button Scene Switch (ZT-B-EU2)
  description: >
    Controls various entities based on single and double press actions from a Moes 2-Button Scene Switch.
  domain: automation
  input:
    switch_topic:
      name: MQTT Topic
      description: The MQTT topic for the scene switch.
      selector:
        text:
    single_1:
      name: Action for 1 Single Press
      description: Action to run when button 1 is single pressed.
      selector:
        action: {}
    single_2:
      name: Action for 2 Single Press
      description: Action to run when button 2 is single pressed.
      selector:
        action: {}
    double_1:
      name: Action for 1 Double Press
      description: Action to run when button 1 is double pressed.
      selector:
        action: {}
    double_2:
      name: Action for 2 Double Press
      description: Action to run when button 2 is double pressed.
      selector:
        action: {}

trigger:
  - platform: mqtt
    topic: !input switch_topic

action:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.payload == '1_single' }}"
        sequence: !input single_1

      - conditions:
          - condition: template
            value_template: "{{ trigger.payload == '2_single' }}"
        sequence: !input single_2

      - conditions:
          - condition: template
            value_template: "{{ trigger.payload == '1_double' }}"
        sequence: !input double_1

      - conditions:
          - condition: template
            value_template: "{{ trigger.payload == '2_double' }}"
        sequence: !input double_2

mode: single

Hello Frederic MELLE,

Thanks for contributing to the community with a new Blueprint.
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.
Create a link – My Home Assistant

OK, I updated the post :slight_smile: Thank-you for the advice.

1 Like