Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledPromiseRejectionWarning for MKS-CM-W5 #4252

Closed
HB9VCT opened this issue Sep 3, 2020 · 5 comments
Closed

UnhandledPromiseRejectionWarning for MKS-CM-W5 #4252

HB9VCT opened this issue Sep 3, 2020 · 5 comments
Labels
stale Stale issues

Comments

@HB9VCT
Copy link

HB9VCT commented Sep 3, 2020

Bug Report

Issue with 2 gang switch identified as "1, 2, 3 or 4 gang switch (MKS-CM-W5)
by Norklmes".
Most probably misinterpreted device since the real manufacturer is not Norkmles.

What happened

UnhandledPromiseRejectionWarning when sending the command to the device.
Nothing received from the device.

What did you expect to happen

Ideally it should handle this device correctly.

How to reproduce it (minimal and precise)

Join the ZigBee switch and send On or Off command.

Debug Info

Zigbee2MQTT version: 1.14.4
Adapter hardware: CC2531
Adapter firmware version: "maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20190608,"transportrev":2
Log:
Zigbee2MQTT:info 2020-09-03 10:07:09: MQTT publish: topic 'zigbee2mqtt/0xec1bbdfffe782154', payload {"state_l1":"ON","state_l2":"OFF","state_l3":"OFF","state_l4":"OFF"}'
(node:234) UnhandledPromiseRejectionWarning: Error: Command 0xec1bbdfffe782154/1 manuSpecificTuyaDimmer.setData({"status":0,"transid":84,"dp":257,"fn":0,"data":[1,1]}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Data request failed with error: 'MAC no ack' (233))
at ZStackAdapter. (/zigbee2mqtt-1.14.4/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:311:27)
at Generator.next ()
at fulfilled (/zigbee2mqtt-1.14.4/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:24:58)
(node:234) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

@HB9VCT
Copy link
Author

HB9VCT commented Sep 3, 2020

This is what the device send when the button 1 is pressed and switch 1 is going to ON state:

Zigbee2MQTT:debug 2020-09-03 11:34:28: Received Zigbee message from '0xec1bbdfffe782154', type 'commandSetDataResponse', cluster 'manuSpecificTuyaDimmer', data '{"data":{"data":[1],"type":"Buffer"},"dp":257,"fn":0,"status":0,"transid":59}' from endpoint 1 with groupID 0
Zigbee2MQTT:debug 2020-09-03 11:34:28: No converter available for 'MKS-CM-W5' with cluster 'manuSpecificTuyaDimmer' and type 'commandSetDataResponse' and data '{"data":{"data":[1],"type":"Buffer"},"dp":257,"fn":0,"status":0,"transid":59}'

@HB9VCT
Copy link
Author

HB9VCT commented Sep 3, 2020

@Koenkk
Copy link
Owner

Koenkk commented Sep 4, 2020

  • Fixed UnhandledPromiseRejectionWarning
  • Marked it as TuYa and added Somgoms as whitelabel
  • Fixed No converter available for
  • MAC no ack' (233)) might still appear, this means the device is not reachable from the coordinator. Make sure to connect the CC2531 through a USB extension cable to improve range.

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2020

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Oct 5, 2020
@HB9VCT HB9VCT closed this as completed Oct 5, 2020
@HB9VCT
Copy link
Author

HB9VCT commented Oct 5, 2020

I can confirm that the updated version solved this issue. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issues
Projects
None yet
Development

No branches or pull requests

2 participants