Third Reality Smart Button Model 3RSB01085Z Configurable Automation

I created a Blueprint for the latest Third Reality Smart Multi Button Remote (3RSB01085Z) for ZHA.

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

blueprint:
  name: Third Reality Button - 3RSB01085Z Multi-Button Multi-Action
  description: >
    Trigger three configurable actions from a three button ZHA device based on
    single press, double press, hold, and release actions. Originally designed for Third Reality Smart Button Model: 3RSB01085Z set up in ZHA.
  domain: automation
  input:
    smart_button_zb2:
      name: Smart Button ZB2
      description: The ZHA device for your Smart buttons.
      selector:
        device:
          integration: zha
          manufacturer: Third Reality, Inc
          model: 3RSB01085Z
          multiple: false
    button_one_short_press:
      name: Button 1, single press
      description: Action to run on button 1 single press
      default: []
      selector:
        action: {}
    button_one_double_press:
      name: Button 1, double press
      description: Action to run on button 1 double press
      default: []
      selector:
        action: {}
    button_one_long_press:
      name: Button 1, long press
      description: Action to run on button 1 long press
      default: []
      selector:
        action: {}
    button_two_short_press:
      name: Button 2, single press
      description: Action to run on button 2 single press
      default: []
      selector:
        action: {}
    button_two_double_press:
      name: Button 2, double press
      description: Action to run on button 2 double press
      default: []
      selector:
        action: {}
    button_two_long_press:
      name: Button 2, long press
      description: Action to run on button 2 long press
      default: []
      selector:
        action: {}
    button_three_short_press:
      name: Button 3, single press
      description: Action to run on button 3 single press
      default: []
      selector:
        action: {}
    button_three_double_press:
      name: Button 3, double press
      description: Action to run on button 3 double press
      default: []
      selector:
        action: {}
    button_three_long_press:
      name: Button 3, long press
      description: Action to run on button 3 long press
      default: []
      selector:
        action: {}
  source_url: https://gist.github.com/Rodney-Smith/b09398bef9883f38c84eedbd03ad422d
  author: Rodney Smith
mode: restart
max_exceeded: silent
trigger:
- platform: event
  event_type: zha_event
  event_data:
    device_id: !input smart_button_zb2
conditions: []
action:
- variables:
    command: '{{ trigger.event.data.command }}'
    endpoint_id: '{{ trigger.event.data.endpoint_id }}'
- choose:
  - conditions: '{{ command == ''single'' }}'
    sequence:
    - choose:
      - conditions: '{{ endpoint_id == 1 }}'
        sequence: !input button_one_short_press
      - conditions: '{{ endpoint_id == 2 }}'
        sequence: !input button_two_short_press
      - conditions: '{{ endpoint_id == 3 }}'
        sequence: !input button_three_short_press
  - conditions: '{{ command == ''double'' }}'
    sequence:
    - choose:
      - conditions: '{{ endpoint_id == 1 }}'
        sequence: !input button_one_double_press
      - conditions: '{{ endpoint_id == 2 }}'
        sequence: !input button_two_double_press
      - conditions: '{{ endpoint_id == 3 }}'
        sequence: !input button_three_double_press
  - conditions: '{{ command == ''release'' }}'
    sequence:
    - choose:
      - conditions: '{{ endpoint_id == 1 }}'
        sequence: !input button_one_long_press
      - conditions: '{{ endpoint_id == 2 }}'
        sequence: !input button_two_long_press
      - conditions: '{{ endpoint_id == 3 }}'
        sequence: !input button_three_long_press

I hope this helps someone else incorporate the button into their HA implementation.

1 Like

Brilliant! I was just trying to find the documentation to get this setup and came across your new blueprint. Helps so much with clutter.

For long presses, you have to release the button for activation. I have my long presses on their own automations for now, but it's really nice to combine the rest into 1 automation. Thank you Rodney!

I updated the blueprint command to trap 'hold' as long press instead of 'release'. I tested and uploaded the yaml to the same gist in the import button. Sorry for the confusion.

Anyone that copies the blueprint from this post instead of using the import button should use find and replace, ''release'' with ''hold'' and everything should work as expected.

Edit: My P400 disconnected after I updated my Mesh, the blueprint is fine.

1 Like

You got the message?

This blueprint already exists

Importing it will override the existing blueprint. If the updated blueprint is not compatible, it can break your automations. Automations will have to be adjusted manually.

If you chose Override blueprint, you need to restart Home Assistant for the updated yaml file to be read into the system.

1 Like

Much appreciated, I just worked out that my P400 was the 3rd button issue, this solved the first 2 buttons. Thank you so much!

1 Like