Zigbee2MQTT | HEIMAN HM1RC-2-E Smart remote controller button actions

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

Main features

Define actions for each button press (emergency, disarm, arm day zones, arm all zones).

Supported device

This blueprint support the HEIMAN HM1RC-2-E device through Zigbee2MQTT only.

Prerequisites

You need to have a sensor entity for the button you want to use from Zigbee2MQTT.
Choose the right sensor with your button name and the entity id which ends with ‘_action’, e.g. ‘sensor.kitchen.button_action’

Blueprint Code

blueprint:
  name: HEIMAN HM1RC-2-E button actions
  description: Define actions your HEIMAN HM1RC-2-E smart remote controller
  domain: automation
  input:
    button_sensor:
      name: HEIMAN HM1RC-2-E sensor entity
      description: Sensor for HEIMAN HM1RC-2-E to use (Use sensor with entity_id ends with _action)
      selector:
        entity:
          domain: sensor
          multiple: false
    emergency_press:
      name: Emergency button press
      description: Action to run on emergency button press
      default: []
      selector:
        action: {}
    disarm_press:
      name: Disarm button press
      description: Action to run on disarm button press
      default: []
      selector:
        action: {}
    arm_day_zones_press:
      name: Arm day zones button press
      description: Action to run on arm day zones button press
      default: []
      selector:
        action: {}
    arm_all_zones_press:
      name: Arm all zones button press
      description: Action to run on arm all zones button press
      default: []
      selector:
        action: {}
mode: restart
max_exceeded: silent
trigger:
  - platform: state
    entity_id: !input "button_sensor"
    to: emergency
  - platform: state
    entity_id: !input "button_sensor"
    to: disarm
  - platform: state
    entity_id: !input "button_sensor"
    to: arm_day_zones
  - platform: state
    entity_id: !input "button_sensor"
    to: arm_all_zones
action:
  - variables:
      action: "{{ trigger.to_state.state }}"
  - choose:
      - conditions: "{{ action == 'emergency' }}"
        sequence: !input "emergency_press"
      - conditions: "{{ action == 'disarm' }}"
        sequence: !input "disarm_press"
      - conditions: "{{ action == 'arm_day_zones' }}"
        sequence: !input "arm_day_zones_press"
      - conditions: "{{ action == 'arm_all_zones' }}"
        sequence: !input "arm_all_zones_press"