IKEA RODRET Dimmer + SOMRIG Remotes - ZHA/Z2M - Control anything

Hey,

I’m not sure anything can be done as-is. I’m setting up both zha event and mqtt triggers, so if you dont have any mqtt integration, it’s probably causing this error log as it’s not recognized as a valid trigger in your setup.

The only thing that could be done would be to split the blueprint for ZHA on one hand and Z2M on the other hand, which is not something I’m planning.
If you’re comfortable enough, you could edit the blueprint to remove any reference to mqtt. Be careful though, as if you keep the source_url and reimport the blueprint in the future, all local changes would be overriden.

Thanks, I’ll try to manually remove mqtt although i am new to HA

Had the same errors.
I added # before every section with MQTT or Z2M and the errors dissapeared from the log

Stucking a bit.

I try to get a combo-key with this blueprint.

This here give me almost 100% the right persistent notifications:

alias: WC Automation Schalter
description: ""
use_blueprint:
  path: damru/ikea_E2201-E2213_ZHA-Z2M_control-anything.yaml
  input:
    remote_device: 31c3d27d3b3bb84d73b7e92251888b20
    on_press_action: []
    on_hold_action: []
    on_double_press_action:
      - target:
          entity_id: input_text.last_button_press
        data:
          value: "on"
        action: input_text.set_value
      - target:
          entity_id: input_text.last_press_time
        data:
          value: "{{ now() }}"
        action: input_text.set_value
      - data:
          message: "Double-Press ON erkannt - Zeit: {{ now() }}"
          title: Button Test
        action: persistent_notification.create
    on_double_press_exposed: true
    off_double_press_exposed: true
    off_double_press_action:
      - data:
          message: >
            {% set time_diff = (as_timestamp(now()) -
            as_timestamp(states('input_text.last_press_time'))) | int %} {% if
            time_diff <= 5 and states('input_text.last_button_press') == 'on' %}
              Double-Press OFF innerhalb 5 Sekunden nach ON! ({{ time_diff }} Sekunden)
            {% else %}
              Double-Press OFF, aber nicht in Sequenz ({{ time_diff }} Sekunden seit letztem ON)
            {% endif %}
          title: Button Test
        action: persistent_notification.create
    helper_double_press_delay: 400

So I try to replace / include some real hue lights and the combination (press double on and within 5sec double off) is not working anymore:

alias: WC Automation Schalter
description: ""
use_blueprint:
  path: damru/ikea_E2201-E2213_ZHA-Z2M_control-anything.yaml
  input:
    remote_device: 31c3d27d3b3bb84d73b7e92251888b20
    on_press_action: []
    on_hold_action: []
    on_double_press_action:
      - target:
          entity_id: input_text.last_button_press
        data:
          value: "on"
        action: input_text.set_value
      - target:
          entity_id: input_text.last_press_time
        data:
          value: "{{ now() }}"
        action: input_text.set_value
      - data:
          message: "Double-Press ON erkannt - Zeit: {{ now() }}"
          title: Button Test
        action: persistent_notification.create
      - delay:
          seconds: 5
      - condition: state
        entity_id: input_text.last_button_press
        state: "on"
      - service: light.toggle
        target:
          device_id: 2ce8d590602ed6416ba65221686a1562
    on_double_press_exposed: true
    off_double_press_exposed: true
    off_double_press_action:
      - data:
          message: >
            {% set time_diff = (as_timestamp(now()) -
            as_timestamp(states('input_text.last_press_time'))) | int %} {% if
            time_diff <= 5 and states('input_text.last_button_press') == 'on' %}
              Double-Press OFF innerhalb 5 Sekunden nach ON! ({{ time_diff }} Sekunden)
            {% else %}
              Double-Press OFF, aber nicht in Sequenz ({{ time_diff }} Sekunden seit letztem ON)
            {% endif %}
          title: Button Test
        action: persistent_notification.create
      - choose:
          - conditions:
              - condition: template
                value_template: >
                  {% set time_diff = (as_timestamp(now()) -
                  as_timestamp(states('input_text.last_press_time'))) | int %}
                  {{ time_diff <= 5 and states('input_text.last_button_press') == 'on' }}
            sequence:
              - service: light.toggle
                target:
                  device_id: 3c1ffa5b53410abd26f7b2cfcd04d21d
              - target:
                  entity_id: input_text.last_button_press
                data:
                  value: "none"
                action: input_text.set_value
          - conditions:
              - condition: template
                value_template: >
                  {% set time_diff = (as_timestamp(now()) -
                  as_timestamp(states('input_text.last_press_time'))) | int %}
                  {{ time_diff > 5 or states('input_text.last_button_press') != 'on' }}
            sequence:
              - service: light.toggle
                target:
                  device_id: d0150e3a4d2c83803d32045511eb9a26
    helper_double_press_delay: 400

Is there a reason why?

damru thank you very much for your super blueprint. It works very well, especially the double-click.

I use my rodret in direct bind with various hue lamps.
so now i really like to use the double-click to start different things, in my case the double-click off does a segment cleaning with my dreame x40 running valetudo. The double-click on switches off all the other lamps in the apartment. I love it!

well, in some areas it would be great to be able to open and close the curtains or the front door, for example.

I wondered if it would be possible, if double-click can be realized in blueprint, then why not:

  • on - off
    &
  • off - on

be a pattern that your blueprint can recognize.

I have adapted and extended the code but unfortunately it does not work:

@damru Do you have an idea why it doesn’t work?