Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.21k stars 1.68k forks source link

PTM 215 ZE does not show action in HA #22578

Closed tluethi71 closed 2 months ago

tluethi71 commented 6 months ago

What happened?

Hello I have paired 2 PTM 215 ZE to zigbee2mqtt successfully. It shows the the linkquality and the status of the action (when pressing a button) in zigbee2mqtt but in Home Assistant it only shows the linkquality and no sensor called action. Somehow the action does not come through zigbee2mqtt to HA. Is this a known bug? Thanks for any help Br Tom

What did you expect to happen?

When pressing a button (e.g. press_1, release_1) it should be shown in the according mqtt-device in HomeAssistant. The action is shown in zigbee2mqtt but not in HA. I can not trigger any button clicks in HA

How to reproduce it (minimal and precise)

Click a button on the PTM 215 ZE and check what happens in zigbee2mqtt (status, see pic) and then check in HA the according device (see pic). It does not show the action "press_1" or "release_1" and there is no action sensor.

Bildschirmfoto 2024-05-10 um 11 03 49 Bildschirmfoto 2024-05-10 um 11 03 33

Zigbee2MQTT version

1.37.1

Adapter firmware version

0x26720700

Adapter

ConBee2/RaspBee2

Setup

Intel NUC 11

Debug log

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.5.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.12.2", "docker": true, "arch": "x86_64", "timezone": "Europe/Zurich", "os_name": "Linux", "os_version": "6.6.29-haos", "supervisor": "2024.05.1", "host_os": "Home Assistant OS 12.3", "docker_version": "25.0.5", "chassis": "embedded", "run_as_root": true }, "custom_components": { "daily_min_max": { "documentation": "https://github.com/philsson/HomeAssistantCustomComponents", "version": "1.0", "requirements": [] }, "proconip_pool_controller": { "documentation": "https://github.com/ylabonte/proconip-hass", "version": "v1.2.0", "requirements": [ "proconip>=1.3.0" ] }, "swisscom_internetbox": { "documentation": "https://github.com/schmidtfx/swisscom-internetbox-hass", "version": "0.1.1", "requirements": [ "sc_inetbox_adapter==0.1.2" ] }, "meteoswiss": { "documentation": "https://github.com/Rudd-O/homeassistant-meteoswiss", "version": "1.3.1", "requirements": [ "hamsclientfork==0.2.8", "geopy>=2.0" ] }, "hacs": { "documentation": "https://hacs.xyz/docs/configuration/start", "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "homematicip_local": { "documentation": "https://github.com/danielperna84/custom_homematic", "version": "1.61.0", "requirements": [ "hahomematic==2024.5.0" ] }, "gardena_smart_system": { "documentation": "https://github.com/py-smart-gardena/hass-gardena-smart-system", "version": "1.0.0", "requirements": [ "py-smart-gardena==1.3.8" ] }, "aarlo": { "documentation": "https://github.com/twrecked/hass-aarlo/blob/master/README.md", "version": "0.8.1.2", "requirements": [ "unidecode", "pyaarlo>=0.8.0.7" ] } }, "integration_manifest": { "domain": "mqtt", "name": "MQTT", "codeowners": [ "@emontnemery", "@jbouwh", "@bdraco" ], "config_flow": true, "dependencies": [ "file_upload", "http" ], "documentation": "https://www.home-assistant.io/integrations/mqtt", "iot_class": "local_push", "quality_scale": "platinum", "requirements": [ "paho-mqtt==1.6.1" ], "is_built_in": true }, "data": { "connected": true, "mqtt_config": { "broker": "core-mosquitto", "port": 1883, "username": "REDACTED", "password": "REDACTED", "advanced_options": false, "discovery": true, "discovery_prefix": "homeassistant", "birth_message": { "topic": "homeassistant/status", "payload": "online", "qos": 0, "retain": false }, "will_message": { "topic": "homeassistant/status", "payload": "offline", "qos": 0, "retain": false } }, "device": { "id": "670cb5e49af3a5eb2687d90eec4f6f2a", "name": "zb2m_taster_pendelleuchte", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [ { "device_class": null, "disabled_by": null, "disabled": false, "entity_category": "diagnostic", "entity_id": "sensor.0x0000000001567624_linkquality", "icon": null, "original_device_class": null, "original_icon": "mdi:signal", "state": { "entity_id": "sensor.0x0000000001567624_linkquality", "state": "127", "attributes": { "state_class": "measurement", "unit_of_measurement": "lqi", "icon": "mdi:signal", "friendly_name": "zb2m_taster_pendelleuchte Linkquality" }, "last_changed": "2024-05-09T21:54:02.742608+00:00", "last_reported": "2024-05-09T21:54:02.742608+00:00", "last_updated": "2024-05-09T21:54:02.742608+00:00" }, "unit_of_measurement": "lqi" } ] }, "mqtt_debug_info": { "entities": [ { "entity_id": "sensor.0x0000000001567624_linkquality", "subscriptions": [ { "topic": "zigbee2mqtt/bridge/state", "messages": [ { "payload": "{\"state\":\"online\"}", "qos": 0, "retain": 1, "time": "2024-05-09T21:53:27.599445+00:00", "topic": "zigbee2mqtt/bridge/state" } ] }, { "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte", "messages": [ { "payload": "{\"action\":\"press_2\",\"elapsed\":56172,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T08:53:48.667354+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"release_2\",\"elapsed\":306,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T08:53:48.973130+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"press_1\",\"elapsed\":3173,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T08:53:52.146138+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"release_1\",\"elapsed\":229,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T08:53:52.375326+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"release_2\",\"elapsed\":618,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T08:53:52.993212+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"release_1\",\"elapsed\":442653,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T09:01:15.646574+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"press_2\",\"elapsed\":380,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T09:01:16.026716+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"release_2\",\"elapsed\":182,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T09:01:16.208490+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"press_2\",\"elapsed\":960,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T09:01:17.172376+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" }, { "payload": "{\"action\":\"release_2\",\"elapsed\":243,\"linkquality\":127}", "qos": 0, "retain": 0, "time": "2024-05-10T09:01:17.411584+00:00", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte" } ] } ], "discovery_data": { "topic": "homeassistant/sensor/0x0000000001567624/linkquality/config", "payload": { "availability": [ { "topic": "zigbee2mqtt/bridge/state", "value_template": "{{ value_json.state }}" } ], "device": { "identifiers": [ "zigbee2mqtt_0x0000000001567624" ], "manufacturer": "EnOcean", "model": "Pushbutton transmitter module (PTM 215ZE)", "name": "zb2m_taster_pendelleuchte", "via_device": "zigbee2mqtt_bridge_0x00212effff0985cb" }, "enabled_by_default": false, "entity_category": "diagnostic", "icon": "mdi:signal", "name": "Linkquality", "object_id": "zb2m_taster_pendelleuchte_linkquality", "origin": { "name": "Zigbee2MQTT", "sw_version": "1.37.1", "support_url": "https://www.zigbee2mqtt.io" }, "state_class": "measurement", "state_topic": "zigbee2mqtt/zb2m_taster_pendelleuchte", "unique_id": "0x0000000001567624_linkquality_zigbee2mqtt", "unit_of_measurement": "lqi", "value_template": "{{ value_json.linkquality }}", "platform": "mqtt" } }, "transmitted": [] } ], "triggers": [ { "discovery_data": { "topic": "homeassistant/device_automation/0x0000000001567624/action_press_2/config", "payload": { "automation_type": "trigger", "device": { "identifiers": [ "zigbee2mqtt_0x0000000001567624" ], "manufacturer": "EnOcean", "model": "Pushbutton transmitter module (PTM 215ZE)", "name": "zb2m_taster_pendelleuchte", "via_device": "zigbee2mqtt_bridge_0x00212effff0985cb" }, "origin": { "name": "Zigbee2MQTT", "sw_version": "1.37.0", "support_url": "https://www.zigbee2mqtt.io" }, "payload": "press_2", "subtype": "press_2", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte/action", "type": "action", "platform": "mqtt" } }, "trigger_key": [ "device_automation", "0x0000000001567624 action_press_2" ] }, { "discovery_data": { "topic": "homeassistant/device_automation/0x0000000001567624/action_release_2/config", "payload": { "automation_type": "trigger", "device": { "identifiers": [ "zigbee2mqtt_0x0000000001567624" ], "manufacturer": "EnOcean", "model": "Pushbutton transmitter module (PTM 215ZE)", "name": "zb2m_taster_pendelleuchte", "via_device": "zigbee2mqtt_bridge_0x00212effff0985cb" }, "origin": { "name": "Zigbee2MQTT", "sw_version": "1.37.0", "support_url": "https://www.zigbee2mqtt.io" }, "payload": "release_2", "subtype": "release_2", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte/action", "type": "action", "platform": "mqtt" } }, "trigger_key": [ "device_automation", "0x0000000001567624 action_release_2" ] }, { "discovery_data": { "topic": "homeassistant/device_automation/0x0000000001567624/action_press_1/config", "payload": { "automation_type": "trigger", "device": { "identifiers": [ "zigbee2mqtt_0x0000000001567624" ], "manufacturer": "EnOcean", "model": "Pushbutton transmitter module (PTM 215ZE)", "name": "zb2m_taster_pendelleuchte", "via_device": "zigbee2mqtt_bridge_0x00212effff0985cb" }, "origin": { "name": "Zigbee2MQTT", "sw_version": "1.37.0", "support_url": "https://www.zigbee2mqtt.io" }, "payload": "press_1", "subtype": "press_1", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte/action", "type": "action", "platform": "mqtt" } }, "trigger_key": [ "device_automation", "0x0000000001567624 action_press_1" ] }, { "discovery_data": { "topic": "homeassistant/device_automation/0x0000000001567624/action_release_1/config", "payload": { "automation_type": "trigger", "device": { "identifiers": [ "zigbee2mqtt_0x0000000001567624" ], "manufacturer": "EnOcean", "model": "Pushbutton transmitter module (PTM 215ZE)", "name": "zb2m_taster_pendelleuchte", "via_device": "zigbee2mqtt_bridge_0x00212effff0985cb" }, "origin": { "name": "Zigbee2MQTT", "sw_version": "1.37.0", "support_url": "https://www.zigbee2mqtt.io" }, "payload": "release_1", "subtype": "release_1", "topic": "zigbee2mqtt/zb2m_taster_pendelleuchte/action", "type": "action", "platform": "mqtt" } }, "trigger_key": [ "device_automation", "0x0000000001567624 action_release_1" ] } ] } } }

AlexandreKueny commented 6 months ago

How did you manage to pair it ? I've been trying for several hours without any success :/

tluethi71 commented 6 months ago

It is very tricky, I needed a couple of try.

it is important that you follow exactly the instruction on how to pair on zigbee2mqtt.io.

  1. press a button
  2. Press another button
  3. Press a buton for 7s
  4. Press the same for less than 2 sec
  5. Press the same for another 7s
  6. Press the same button again if you operate on channel 11 (if other channel see manu
  7. press another button

you have to enable Elapsed in the settings of zigbee2mqtt. Very important.

does it help?

extreme4u commented 6 months ago

Hello, I've been having issues with the PTM 215 ZE switches since the update as well. They either don't respond at all anymore or only very sporadically. A factory reset and repairing is no longer possible. I'm using the SkyConnect Zigbee dongle from Homeassistant. Fortunately, I had a Zigbee dongle from Deconz available. Relearning with it worked without any problems. So, I assume the update has somehow caused damage here.

tluethi71 commented 6 months ago

does anyone has a clue about this topic? it is still not working.

dzerrenner commented 6 months ago

I'm also confused. I plan to integrate a second zigbee network in my setup and bought a new adapter (UZG-01, zstack, CC2652P7). My legacy network runs on Channel 11, my new is planned to run on channel 20. But i'm not able to pair my PTM 215Z to the new network. The reset-and-switch-channel procedure is a bit of a hassle, so at first I thought i failed at the button sequence. But after setting the switch to channel 20 and seeing nothing at all in the logs i switched the switch back to channel 11 and could re-pair it without problems to the old instance.

Versions:

dzerrenner commented 6 months ago

How did you manage to pair it ? I've been trying for several hours without any success :/

There is another way to do this if you want to use one of 4 predefined channels (11, 15, 20 or 25) and have the possibility to press more than one button at once:

There should be a log message for commissioning after the second step. The third step seems to store the new channel in the switch.

These steps are taken from the manual for the PTM 216 Z, but this worked for me on my PTM 215 Z. I'm unable to find a manual for the PTM 215 Z.

tluethi71 commented 5 months ago

still have the problem. In the zigbee2mqtt I can see the status the following:

{ "linkquality": 127, "action": "release_1", "elapsed": 230 }

But it does not come through HA... I only see the linkquality 127 in the device..

larstobi commented 5 months ago

I also have successfully paired an PTM 215 Z, and I can see the button presses under Exposes -> Action in the ZigbeeqMQTT web UI, but it looks like Zigbee2MQTT doesn't export the action field correctly in the MQTT message for the device config.

My device is a Senic Smart Switch.

Support was added in this PR by @fredericseiler and merged by @Koenkk: https://github.com/Koenkk/zigbee-herdsman-converters/pull/2885

Here is the database.db for my device:

{
    "id": 35,
    "type": "GreenPower",
    "ieeeAddr": "0x0000000001771892",
    "nwkAddr": 6290,
    "manufId": null,
    "modelId": "GreenPower_2",
    "epList": [
        242
    ],
    "endpoints": {
        "242": {
            "epId": 242,
            "inClusterList": [],
            "outClusterList": [],
            "clusters": {},
            "binds": [],
            "configuredReportings": [],
            "meta": {}
        }
    },
    "interviewCompleted": true,
    "meta": {},
    "lastSeen": 1716027601583
}

The logs say it's publishing button presses:

2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:50:04: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_release_2/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"release_2","subtype":"release_2","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:50:04: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_press_3/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"press_3","subtype":"press_3","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:50:04: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_release_3/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"release_3","subtype":"release_3","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:50:04: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_press_1_and_3/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"press_1_and_3","subtype":"press_1_and_3","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:50:04: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_release_1_and_3/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"release_1_and_3","subtype":"release_1_and_3","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-18 12:19:52: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_press_2_and_4/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"press_2_and_4","subtype":"press_2_and_4","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-18 12:19:53: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_release_2_and_4/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"release_2_and_4","subtype":"release_2_and_4","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'

Could this be related to https://github.com/Koenkk/zigbee2mqtt/issues/18088 ?

From the inclusion logs, it publishes the action configuration under action_unknown_104. I can also see this configuration using MQTT Explorere under the topic homeassistant/device_automation/0x0000000001771892/action_unknown_104/config.

Skjermbilde 2024-06-07 kl  11 02 01

Here is the inclusion log lines:

2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:43:30: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Pushbutton transmitter module","exposes":[{"access":1,"category":"diagnostic","description":"Triggered action (e.g. a button click)","label":"Action","name":"action","property":"action","type":"enum","values":["press_1","release_1","press_2","release_2","press_3","release_3","press_4","release_4","press_1_and_3","release_1_and_3","press_2_and_4","release_2_and_4","press_energy_bar"]},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"PTM 215Z","options":[],"supports_ota":false,"vendor":"EnOcean"},"friendly_name":"0x0000000001771892","ieee_address":"0x0000000001771892","status":"successful","supported":true},"type":"device_interview"}'
2024-04-28.16-22-49/log2.txt:debug 2024-05-15 23:43:30: Received MQTT message on 'homeassistant/sensor/0x0000000001771892/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"0x0000000001771892","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"Linkquality","object_id":"0x0000000001771892_linkquality","origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x0000000001771892","unique_id":"0x0000000001771892_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:44:12: MQTT publish: topic 'homeassistant/sensor/0x0000000001771892/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"Linkquality","object_id":"fjernkontroll_ulla_sitt_rom_linkquality","origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom","unique_id":"0x0000000001771892_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:44:12: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_unknown_104/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"unknown_104","subtype":"unknown_104","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
2024-04-28.16-22-49/log2.txt:info  2024-05-15 23:44:12: MQTT publish: topic 'homeassistant/device_automation/0x0000000001771892/action_press_1/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x0000000001771892"],"manufacturer":"EnOcean","model":"Pushbutton transmitter module (PTM 215Z)","name":"fjernkontroll_ulla_sitt_rom","via_device":"zigbee2mqtt_bridge_0x00124b0021cc3cc5"},"origin":{"name":"Zigbee2MQTT","sw":"1.36.1","url":"https://www.zigbee2mqtt.io"},"payload":"press_1","subtype":"press_1","topic":"zigbee2mqtt/fjernkontroll_ulla_sitt_rom/action","type":"action"}'
robertjanquist commented 3 months ago

Starting from version 1.37.0 my Friends of Hue switch (PTM215Z) is not working anymore.

When I press and release any button in version 1.37.0 I get this debug log:

[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP data notification
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP_DATA_INDICATION - src id: 0x174ce96 cmd id: 0x12 frameCounter: 0x170a
[2024-08-23 20:42:27] debug:    zh:controller:greenpower: Received unhandled command '0x12' from '24432278'
[2024-08-23 20:42:27] debug:    zh:controller: Data is from unknown device with address '24432278', skipping...
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP data notification
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP data notification
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: DEVICE_STATE changed: 10101010
[2024-08-23 20:42:27] debug:    zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
[2024-08-23 20:42:27] debug:    zh:deconz:driver: query aps data indication
[2024-08-23 20:42:27] debug:    zh:deconz:driver: DATA_INDICATION - sending read data request - SeqNr. 34
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: DATA_INDICATION RESPONSE - seqNr. 34 srcAddr: 0xc988 destAddr: 0x0 profile id: 0xa1e0 cluster id: 0x21 lqi: 255
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: response payload: 17,115,0,136,84,150,206,116,1,10,23,0,0,18,0,136,201,219
[2024-08-23 20:42:27] debug:    zh:controller:greenpower: Received unhandled command '0x12' from '51592'
[2024-08-23 20:42:27] debug:    zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
[2024-08-23 20:42:27] debug:    zh:controller: Data is from unknown device with address '51592', skipping...
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP data notification
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP_DATA_INDICATION - src id: 0x174ce96 cmd id: 0x16 frameCounter: 0x170b
[2024-08-23 20:42:27] debug:    zh:controller:greenpower: Received unhandled command '0x16' from '24432278'
[2024-08-23 20:42:27] debug:    zh:controller: Data is from unknown device with address '24432278', skipping...
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP data notification
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: GP data notification
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: DEVICE_STATE changed: 10101010
[2024-08-23 20:42:27] debug:    zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 1 configChanged: 0 apsRequestFreeSlots: 1
[2024-08-23 20:42:27] debug:    zh:deconz:driver: query aps data indication
[2024-08-23 20:42:27] debug:    zh:deconz:driver: DATA_INDICATION - sending read data request - SeqNr. 35
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: DATA_INDICATION RESPONSE - seqNr. 35 srcAddr: 0xc988 destAddr: 0x0 profile id: 0xa1e0 cluster id: 0x21 lqi: 255
[2024-08-23 20:42:27] debug:    zh:deconz:frameparser: response payload: 17,116,0,136,84,150,206,116,1,11,23,0,0,22,0,136,201,218
[2024-08-23 20:42:27] debug:    zh:controller:greenpower: Received unhandled command '0x16' from '51592'
[2024-08-23 20:42:27] debug:    zh:deconz:driver: networkstate: 2 apsDataConfirm: 0 apsDataIndication: 0 configChanged: 0 apsRequestFreeSlots: 1
[2024-08-23 20:42:27] debug:    zh:controller: Data is from unknown device with address '51592', skipping...

When downgrading to version 1.36.1 it all works.

Does anyone know what is changed in version 1.37.0?

coendaar commented 2 months ago

@robertjanquist seems to me you have the same issue I have: #23814 Did you get it resolved?

robertjanquist commented 2 months ago

@coendaar I did not have the time to dive into this issue. So currently I did not upgrade to version 1.37.0 or higher.

Koenkk commented 2 months ago

Let's continue in https://github.com/Koenkk/zigbee2mqtt/issues/23814

tluethi71 commented 2 months ago

Solved:

  1. you have to set legacy_triggers: true in the configuration.yaml in zigbee2mqtt
  2. you have to create an automation to trigger the state action. in my following automation I am only triggering 2 buttons (3 and 4)

alias: "Taster: Buero Lightstrip" description: "" trigger: