Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - Hook - Lights Automation loops thousands of times when used with E1743 and LED1836G9 bulb #557

Open
1 task
mark1foley opened this issue Jul 16, 2023 · 3 comments
Labels
blueprint An issue related to a blueprint bug Something isn't working

Comments

@mark1foley
Copy link

Blueprint name

Hook - Light

Home Assistant Core Version

2023.7.2

Home Assistant Installation Type

Home Assistant Operating System

Description

I recently purchase some Ikea 1743 switches and LED1836G9 bulbs. I used the "Controller - IKEA E1743 TRÅDFRI On/Off Switch & Dimmer" blueprint (thank you!) and created automations to turn the bulbs on and off using the switch that work great.

I then used the "Hook - Light" blueprint to create automations to adjust the brightness with a long press. However, when using a long press (either up or down) the automation seems to loop endlessly (or at least for several minutes). The bulb brightness goes for the lowest to the highest value (or vice versa for a long down press).

I increased the "Light brightness steps - long actions" option to 100 and, although it reduced change in brightness for each step it still has the same result. I even tried disabling the "Up button long press - loop until release" option in the 1743 automation but the problem persisted. Also, the traces for the Hook automation show them running for several minutes. I have 3 pairs of switches and bulbs and they all experience the same issue.

I'm presume it's something I done but can't work out what.

Automation YAML config

alias: Mqtt-SpareBedroomLampLeft
description: ""
use_blueprint:
  path: EPMatt/ikea_e1743.yaml
  input:
    integration: Zigbee2MQTT
    controller_entity: sensor.sw_dim_spare_bedroom_lamp1_action
    helper_last_controller_event: input_text.sw_dim_spare_bedroom_lamp1_action
    action_button_up_short:
      - service: switch.turn_on
        data: {}
        target:
          entity_id: switch.sw_pwr_4gn_spare_bedroom1_p2
    action_button_down_short:
      - service: switch.turn_off
        data: {}
        target:
          entity_id: switch.sw_pwr_4gn_spare_bedroom1_p2
    button_up_long_loop: false
    button_down_long_loop: false
    button_up_long_max_loop_repeats: 5
    button_down_long_max_loop_repeats: 5

To Reproduce

  1. Do long press, either up or down, on switch.

Expected behavior

Brightness steps should stop when button is released

Actual Behaviour

Automation runs after the button is released, even when looping is disabled.

Additional Details

  • I'd like to help developing a fix for this issue.

Screenshots

image

image

image

Zigbee2MQTT - Work - Microsoft​ Edge 2023-07-16 10-40-13.zip

Additional context

No response

@mark1foley mark1foley added blueprint An issue related to a blueprint bug Something isn't working labels Jul 16, 2023
@mark1foley mark1foley changed the title Bug - Bug - Hook - Lights Automation loops thousands of times when used with E1743 and LED1836G9 bulb Jul 16, 2023
@jeroen85
Copy link

Having the same issue since a few weeks. Previously it worked ok. Did not update the blueprint. Expect it to be related to z2m or HA. Need to investigate as soon as I have some more time

@jeroen85
Copy link

Fixed mine; have a look at this; #545

@mark1foley
Copy link
Author

Thanks @jeroen85 !!! #545 worked for me as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blueprint An issue related to a blueprint bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants