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 - Light Hook Not Firing Anymore #496

Open
1 task done
juuukaaay opened this issue Jan 19, 2023 · 4 comments
Open
1 task done

Bug - Light Hook Not Firing Anymore #496

juuukaaay opened this issue Jan 19, 2023 · 4 comments
Labels
blueprint An issue related to a blueprint bug Something isn't working

Comments

@juuukaaay
Copy link

Blueprint name

Hook - Light

Home Assistant Core Version

2023.1.5

Home Assistant Installation Type

Home Assistant Operating System

Description

Woke up today to all my Dimmer Switches not working anymore. They were working fine yesterday.
The Controller automation works as it should, but the Hook is not firing.
The MQTT signals are coming in fine, the Controller automation works as intended.

Already tried:

  • Restarting System
  • Removing all automations & helpers and redoing only one for testing.
  • Renaming the switch in z2m & ha, redoing the automations with the new entities/device.

Automation YAML config

This is the Hook:

alias: Büro / Schalter
description: ""
use_blueprint:
  path: EPMatt/light.yaml
  input:
    controller_device: fe86268b1c376b04a9480974f4cae08d
    controller_entity: sensor.buro_schalter_action
    controller_model: Philips 324131092621 Hue Dimmer switch
    light: light.buro_licht
    light_color_mode: None
    light_transition: 500
    force_brightness: true
    on_brightness: 204

This is the Controller:

alias: Büro / Schalter Controller
description: ""
use_blueprint:
  path: EPMatt/philips_324131092621.yaml
  input:
    integration: Zigbee2MQTT
    helper_last_controller_event: input_text.buro_schalter_helper_text
    controller_entity: sensor.buro_schalter_action

To Reproduce

  1. Press a button the Dimmer Switch
  2. See that the Controller automation fires
  3. See that the Hook doesn't fire

Expected behavior

The Hook should fire and ajdust the lights accordingly.

Actual Behaviour

Hook doesn't fire.

Additional Details

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

Screenshots

No response

Additional context

No response

@juuukaaay juuukaaay added blueprint An issue related to a blueprint bug Something isn't working labels Jan 19, 2023
@juuukaaay
Copy link
Author

I got it to work again!

In the controller yaml, there's this code
zigbee2mqtt: button_on_short: [on-press] button_on_long: [on-hold] button_on_release: [on-hold-release] button_off_short: [off-press] button_off_long: [off-hold] button_off_release: [off-hold-release] button_up_short: [up-press] button_up_long: [up-hold] button_up_release: [up-hold-release] button_down_short: [down-press] button_down_long: [down-hold] button_down_release: [down-hold-release]

I replaced the "-" with "_", and it's working again.

@arthurspa
Copy link

arthurspa commented Jan 25, 2023

Same for me. It does not work. I got the following error:

Stopped because an error was encountered at 25 January 2023 at 16:05:10 (runtime: 0.02 seconds)

not a valid value for dictionary value @ data['entity_id']

@juuukaaay which file did you change exactly? Was it /config/blueprints/automation/EPMatt/ikea_e1524_e1810.yaml ?

My automation is very simple:

alias: Office Light Remote Control
description: ""
use_blueprint:
  path: EPMatt/ikea_e1524_e1810.yaml
  input:
    integration: deCONZ
    controller_device: fa12a8ab8c6598e20b0ecac815c5bf73
    action_button_center_short:
      - type: toggle
        device_id: c6f1a20f4651316dbf527ff73718e5b4
        entity_id: light.office
        domain: light
    action_button_center_long: []

@trackhacs
Copy link

n the controller yaml, t

where is this file?

@KayuHD
Copy link

KayuHD commented Jan 30, 2023

Thanks @juuukaaay, that solved my problem.
I wanted to integrate a Controller - Philips 324131092621 Hue Dimmer switch over Zigbee2MQTT, but didn't work before.

The file can be found in the file editor. Go to the path: config/blueprints/automation/EPMatt and there they are.

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

4 participants