lsismeiro / awesome-ha-blueprints

A curated collection of automation blueprints for Home Assistant.
https://epmatt.github.io/awesome-ha-blueprints
GNU General Public License v3.0
83 stars 19 forks source link

Bug - IKEA E1743 only works with Z2M legacy triggers #26

Open auanasgheps opened 1 week ago

auanasgheps commented 1 week ago

Blueprint name

IKEA E1743 TRÅDFRI On/Off Switch & Dimmer

Home Assistant Core Version

2024.10

Home Assistant Installation Type

Home Assistant Operating System

Description

Hi, I've been using the original version of the blueprint and I wanted to update to the current one.

In the process, I noticed that in my Z2M installation I have "Home Assistant legacy triggers" enabled. If I disable these, I can't get this blueprint to work, because the "Action" entity is missing.

Nobody is mentioning this option, so I must be doing something wrong. Also, such option will be removed from Z2M in the future.

I tried re-paring my E1743 (I've got two) but nothing changes:

Automation YAML config

alias: Camera Luci
description: ""
use_blueprint:
  path: lsismeiro/ikea_e1743.yaml
  input:
    integration: Zigbee2MQTT
    helper_last_controller_event: input_text.camera_interruttore_helper
    action_button_up_short:
      - action: light.turn_on
        metadata: {}
        data:
          transition: 3
          brightness_pct: 25
        target:
          entity_id: light.camera_luci
    action_button_up_long:
      - device_id: e4320c1e509817bfbb90f631fce302ce
        domain: light
        entity_id: 93a992693de8b2b53c3703f273ddd059
        type: brightness_increase
      - device_id: 2de771f50013a1cbba763ff3c214d484
        domain: light
        entity_id: 749337bdf0c1ea5fe8bd2a2fadb5dbf8
        type: brightness_increase
    action_button_down_short:
      - action: light.turn_off
        target:
          entity_id:
            - light.camera_luci
        data:
          transition: 3
    action_button_down_long:
      - device_id: e4320c1e509817bfbb90f631fce302ce
        domain: light
        entity_id: 93a992693de8b2b53c3703f273ddd059
        type: brightness_decrease
      - device_id: 2de771f50013a1cbba763ff3c214d484
        domain: light
        entity_id: 749337bdf0c1ea5fe8bd2a2fadb5dbf8
        type: brightness_decrease
    controller_entity: sensor.camera_interruttore_action

To Reproduce

  1. Disable Z2M option "Home Assistant legacy triggers"
  2. Try to configure the template
  3. Action entity is not available

Expected behavior

Action entity is visible to be used for this template

Actual Behaviour

Action entity is missing

Additional Details

Screenshots

No response

Additional context

No response

LewisSpring commented 4 days ago

I have a feeling that this is unavoidable and a refactor of the whole blueprint ecosystem would be needed to resolve this.

I don't have the time or expertise to look into this in depth but that is my opinion at first glance. I'm not even sure what the "modern" trigger system is but I would bet it is probably difficult to make it work with these automations?

If anyone has any thoughts on this please do let me know.