Missing entities for actions from Zigbee2MQTT (Z2M)

Hi

I’ve got a weird problem with actions comming from my buttons. Especially form E1743 (IKEA E1743 control via MQTT | Zigbee2MQTT).

In Z2M the action is present and reacts to ON or OFF, but this does not go to an entity in the MQTT integration in Home Assistant.

Does someone know what I can do to solve this?

Kind regards,
Maarten.

just a guess, maybe it doesn’t create a switch/sensor in HA, but publishes an event (mqtt trigger) instead?

I’m now trying to create the event in an automation like the suggestion from another topic: https://community.home-assistant.io/t/hue-tap-dial-missing-action-entity-via-zigbee2mqtt/751046/3

See: https://www.zigbee2mqtt.io/guide/usage/integrations/home_assistant.html#responding-to-button-clicks

Hi, Here is the solution. For everyone thas is having the same issue with Zigbee2MQTT and the TRADFRI on/off switch, type E1743.

Automations in YALM

ON switch:

alias: Kerstlichtjes aan
description: ""
triggers:
  - trigger: mqtt
    topic: zigbee2mqtt/Kerstlichtjes schakelaar/action
    payload: "on"
conditions: []
actions:
  - action: light.turn_on
    metadata: {}
    data: {}
    target:
      device_id: c5784515f2cbdd1209770007e2d82942
mode: single

OFF switch:

alias: Kerstlichtjes uit
description: ""
triggers:
  - trigger: mqtt
    topic: zigbee2mqtt/Kerstlichtjes schakelaar/action
    payload: "off"
conditions: []
actions:
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      device_id: c5784515f2cbdd1209770007e2d82942
mode: single
  • The Topic is discovered through the MQTT integration and then press ‘Configure’.
  • At the bottom you can ‘Listen to Topic’ ("Luisteren naar “onderwerp” in dutch).
  • Insert # into the input field and press ‘Start listening’ (“Start met luisteren” in dutch).
  • Then press the button on the on/off switch.

Here is the message I got:

{
    "level": "info",
    "message": "z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Kerstlichtjes schakelaar/action', payload 'on'"
}

The topic = zigbee2mqtt/Kerstlichtjes schakelaar/action
The payload = on

And then choose you own action to perform in Home Assistant. In my example the action is to turn on the Christmas lights. :smiley:

Kind regards and happy holidays!
Maarten.