question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enocean PTM 216Z: missing command

See original GitHub issue

Hi @Koenkk, I’ve already created an issue in the zigbee2mqtt repository for this topic (Koenkk/zigbee2mqtt#13804), but after some investigation I think I’ve found the problem, which is related to the converter.

In the following snippet the ID is put together by the commandID and the whole commandFrame. https://github.com/Koenkk/zigbee-herdsman-converters/blob/811789fbae0d3570d666f1141dde2b9091a9a99a/converters/fromZigbee.js#L5122

According to the log, the commandFrame does include more than the needed information. For example if I press the top left button the following commandID and commandFrame is sent: data '{"commandFrame":{"raw":{"data":[1,254,165,76],"type":"Buffer"}},"commandID":105 The expected ID is 105_1 but with the code mentioned above the ID is 105_1_254_165_76. So only the first item of the commandFrame must be appended. The last item (here value 76) seems to be the link quality.

What do you think about this?

I use zigbee2mqtt as an addon in home assistant and unfortunately I do not know how I could test the adaption.

Best regards,

Thorsten

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Koenkkcommented, Sep 8, 2022

Great, integrated the fix!

Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)

0reactions
THorst92commented, Sep 7, 2022

After changing the line to const ID = '${commandID}_${msg.data.commandFrame.raw.slice(0,1).join('_')}'; and adding the line const { precisionRound, mapNumberRange, isLegacyEnabled, toLocalISOString, numberWithinRange, hasAlreadyProcessedMessage, calibrateAndPrecisionRoundOptions, addActionGroup, postfixWithEndpointName, getKey, batteryVoltageToPercentage, getMetaValue, } = require('zigbee-herdsman-converters/lib/utils'); it is working!

Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

PTM 216Z - EnOcean
If the new radio channel is different from the previously used radio channel then PTM 216Z will send a decommissioning command (0xE1) on...
Read more >
Zigbee2MQTT enOcean PTM 215Z (Friends of Hue) switch
The switch only send button press and release. The held is emulated by counting the time when the press command is received without...
Read more >
Koenkk/zigbee2mqtt 1.28.0 on GitHub - NewReleases.io
... #13876 Fix Eco-Dim.07/Eco-Dim.10 not detected as supported; #4621 Fix Enocean PTM 216Z missing command error; #13919 Expose battery for TuYa TS0202_1 ...
Read more >
EnOcean Equipment Profiles EEP
battery-free radio switch, which can produce a full radio command ... T21 = 0 = PTM switch module of type 1 / synonymous...
Read more >
Wireless Technologies - Rutronik
3GPP TS27.005, 27.007 and customized Telit AT commands. □ VoLTE (planned) ... EnOcean. PTM 215B. 4.2. 2. Energy har- vesting light ... The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found