EPMatt / 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
860 stars 254 forks source link

Bug - Philips 324131092621 Hue Dimmer switch - Zigbee2MQTT #216

Open mjhcdk opened 2 years ago

mjhcdk commented 2 years ago

Blueprint name

Controller - Philips 324131092621 Hue Dimmer switch

Home Assistant Core Version

2021.12.1

Home Assistant Installation Type

Home Assistant Supervised

Description

Hi, seems there might be an issue with the action names triggered from Z2M is with "_" while the blueprint (
Version 2021.11.19 ) is using "-" in action names i.e for off_press. This is causing no action is performed when the automation/blueprint is triggered.

Mq log entry: MQTT publish: topic 'zigbee2mqtt/lænestol_dim', payload '{"action":"off_press","battery":69.5,"last_seen":"2021-12-14T00:42:48+01:00","linkquality":129,"update":{"state":"idle"},"update_available":null}'

in Blueprint automation zigbee2mqtt: button_on_short:

z2m - Device info.

Zigbee Model RWL021 Zigbee Manufacturer Philips Description Hue dimmer switch Firmware version 6.1.1.28573 Manufacturer Philips Model 324131092621

Automation YAML config

alias: 'Controller - Fars Lampe '
description: ''
use_blueprint:
  path: EPMatt/philips_324131092621.yaml
  input:
    integration: Zigbee2MQTT
    controller_entity: sensor.laenestol_dim_action
    helper_last_controller_event: input_text.laenestol_dim_last
    action_button_on_short:
      - service: light.turn_on
        target:
          device_id: 9419bbee5ebc4c4d9592c642dd4f2d2b
    action_button_off_short:
      - service: light.turn_off
        target:
          device_id: 9419bbee5ebc4c4d9592c642dd4f2d2b

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Trigger the automation '....'
  4. See error

Expected behavior

when pressing the off button (4) it should trigger the action_button_off_short: The same goes for the other actions.

Actual Behaviour

No action is performed See screenshot below

Additional Details

Screenshots

image

Additional context

No response

SHxKM commented 2 years ago

I may be jumping the gun blindly here but could it be that you have legacy_mode==false for the remote? I remember spending hours debugging a problem that just didn't make sense only to realize I had changed this legacy mode to false (as Z2M recommends) hours before..