zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Missing Device Actions in HA

Open jamesonuk opened this issue 1 year ago • 7 comments

What happened?

After restarting Z2M and HA I am missing some device actions that existed previously and are used in automations.

I can see the issue but not identify where this is not working. The action topic appears to be working fine image

but the HA device_automation topic is not image

This is a three button switch (https://www.zigbee2mqtt.io/devices/QBKG25LM.html#aqara-qbkg25lm) and I have automations built around "single_left" and "single_centre" actions but these just don't show up here and hence don't appear in HA. My understanding was that they would appear once first seen but whist clicking the buttons are generating the appropriate action topic but not the device_automation one.

If I manually publish a message to homeassistant/device_automation/0x54ef4410009737dd/action_single_left/config with payload

{
  "automation_type": "trigger",
  "device": {
    "identifiers": [
      "zigbee2mqtt_0x54ef4410009737dd"
    ],
    "manufacturer": "Aqara",
    "model": "Smart wall switch D1 (no neutral, triple rocker) (QBKG25LM)",
    "name": "Kitchen Light Switch",
    "via_device": "zigbee2mqtt_bridge_0x00212effff070ec3"
  },
  "origin": {
    "name": "Zigbee2MQTT",
    "sw": "1.37.0",
    "url": "https://www.zigbee2mqtt.io"
  },
  "payload": "single_left",
  "subtype": "single_left",
  "topic": "zigbee2mqtt/Kitchen Light Switch/action",
  "type": "action"
}

then it appears in HA.

I have also experience this on some Hue Wall Switch Modules (the only other switches I am using)

What did you expect to happen?

Actions would get passed to HA

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.37.0

Adapter firmware version

0x26780700

Adapter

Conbee II

Setup

Docker

Debug log

No response

jamesonuk avatar May 06 '24 20:05 jamesonuk

Now I am really confused.... I just added a new Hue Wall Swich Module and this is what I get image no device automation messages at all even though actions are being fired and recorded image but the triggers are showing up in HA.... image

but the docs suggest this should only show up with an MQTT device trigger message.... https://www.home-assistant.io/integrations/device_trigger.mqtt/

I also realised I have a Sonoff SNZB-01P button and this also stopped working and I can see the action messages flowing fine but there are no device_automation messages and no actual button press actions show up in HA (should have single, double and long) image

jamesonuk avatar May 07 '24 08:05 jamesonuk

Happened to me too a ~week ago. Five seemingly random lights lost it's action - however some other entities (update_available, power_on_behaviour) from those same units are still reachable in HA.

The groups containing the entities are also not reachable in HA, which makes me think it's a Z2M issue.

tehvicke avatar May 13 '24 06:05 tehvicke

Happened to me too a ~week ago. Five seemingly random lights lost it's action - however some other entities (update_available, power_on_behaviour) from those same units are still reachable in HA.

The groups containing the entities are also not reachable in HA, which makes me think it's a Z2M issue.

This was resolved by restoring to a previous version.

tehvicke avatar May 13 '24 07:05 tehvicke

Hi,

I can repeat this bug with latest development release. sha256:58c7c45534f275f1b68caa1354f99bfdb2734f95de6e9576d1e59d12b49e37d5. When I revert to latest it started to work again in HA automations.

akinomeroglu avatar May 26 '24 16:05 akinomeroglu

Happened to me too a ~week ago. Five seemingly random lights lost it's action - however some other entities (update_available, power_on_behaviour) from those same units are still reachable in HA. The groups containing the entities are also not reachable in HA, which makes me think it's a Z2M issue.

This was resolved by restoring to a previous version.

What version would that be? Is it save to just roll-back? some remotes dont work anymore, giving empty string

Ruvetuve avatar Jul 26 '24 06:07 Ruvetuve

Any updatges on thsi topic? I experience the same problem.

jeroen7103 avatar Sep 19 '24 14:09 jeroen7103

I added a new button (SONOFF SNZB-01P) today; I have never had one before. But I also can't use this button; no actions are triggered. Not in the developer tools, not in Node-RED, in Zgibee2MQTT, I get this message on pressing the button:

String ohne Inhalt("")

See also the screenshot:

Bildschirmfoto 2024-10-02 um 13 24 00

EDIT: A Level 8 Issue... problem solved, I have used the wrong device -.-

NeoBlack avatar Oct 02 '24 11:10 NeoBlack

I'm having maybe a variant of this issue? This 8-button remote

Is supposed to have 4 groups of actions:

  • on_#
  • off_#
  • brightness_move_up_#
  • brightness_move_down_#
  • brightness_stop_#

I've tried to reset, pair, re-interview, remove battery, the device several times. But only one group out of 4 updates the "Action" state.

On my first pairing attempt this was group 1. On later attempts this was group 4.

I have another one of these remotes with the same firmware, which I paired months ago and that works correctly. So that is more reason to think it's a regression in a newer Z2M version.

Beanow avatar Oct 08 '24 08:10 Beanow

Ok some rebooting of haos later, the actions work fine without needing to reset or anything. :shrug:

Beanow avatar Oct 08 '24 11:10 Beanow