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

[New device support]: Add missing feature to Xiaomi WS-USC02 WS-USC03 and WS-USC04 like the WS-USC01 have. #15402

Closed
marc3k18 opened this issue Dec 6, 2022 · 8 comments
Labels
new device support New device support request stale Stale issues

Comments

@marc3k18
Copy link

marc3k18 commented Dec 6, 2022

Link

https://www.zigbee2mqtt.io/supported-devices/#v=Xiaomi

Database entry

{"id":43,"type":"Router","ieeeAddr":"0x54ef4410003c83b3","nwkAddr":35499,"manufId":4447,"manufName":"LUMI","powerSource":"Mains (single phase)","modelId":"lumi.switch.b1naus01","epList":[1,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,2,3,4,5,6,9,1794,2820],"outClusterList":[10,25],"clusters":{"genBasic":{"attributes":{"modelId":"lumi.switch.b1naus01","manufacturerName":"LUMI","powerSource":1,"zclVersion":3,"appVersion":31,"stackVersion":2,"hwVersion":1,"dateCode":"12-28-2021"}},"genOnOff":{"attributes":{"onOff":1}}},"binds":[{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0026b69f97","endpointID":1}],"configuredReportings":[{"cluster":6,"attrId":0,"minRepIntval":0,"maxRepIntval":3600,"repChange":0}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":31,"stackVersion":2,"hwVersion":1,"dateCode":"12-28-2021","zclVersion":3,"interviewCompleted":true,"meta":{"configured":1},"lastSeen":1670355837628,"defaultSendRequestWhen":"immediate"}

Comments

The USC01 have all those feature: switch, action, flip_indicator_light, operation_mode, mode_switch. The USC02 should have the same.

USC03 and USC04 should also have the energy option since it's available in the Aqara apps.

Thanks!

External converter

No response

Supported color modes

No response

Color temperature range

No response

@CarlosGomez-dev
Copy link

I updated WS-USC01/02 as I recently bought them and was able to test them. I do not own the USC03/04 but if you have them you can create an external converter copying USC01 and USC02 and adding e.power(), e.energy(), e.voltage() to the exposes array (not sure if they support all 3)

@visualage
Copy link

I have WS-USC04. Here is the PR to bring the feature list up to USC02.
Koenkk/zigbee-herdsman-converters#5242

@visualage
Copy link

visualage commented Jan 1, 2023

Updated the PR to include power, energy and voltage for WS-USC04, as well as power_outage_memory support for USC02 and USC04. I don't have USC01 or USC03, so I can't test the change and thus did not include them in the PR. But I suspect we can simply copy the changes needed for those. Someone who has the device(s) can make an external converter and test. If anybody has trouble making the external converter, please let me know.

@CrazyCoder
Copy link

Getting this with WS-USC04 when trying to Refresh the power in Exposes settings tab:

Debug 2023-01-03 08:31:49 Received MQTT message on 'zigbee2mqtt/Patio Switch/get' with data '{"power":""}'
Debug 2023-01-03 08:31:49 Publishing get 'get' 'power' to 'Patio Switch'
Error 2023-01-03 08:31:49 Publish 'get' 'power' to 'Patio Switch' failed: 'TypeError: Cannot read properties of undefined (reading 'read')'

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2023

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 Feb 3, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2023
@eobando00
Copy link

Hello, I have the USC03 and I really need the de-attach relay mode. I am happy to test if someone helps me a bit.

@tmkhoa
Copy link

tmkhoa commented May 21, 2023

Hello, I have the USC03 and I really need the de-attach relay mode. I am happy to test if someone helps me a bit.

Hi eobando00, I created a PR for WS-USC03 to expose the power, energy, etc. including the operational mode: Koenkk/zigbee-herdsman-converters#5770

@eobando00
Copy link

All set ! Thank you for your help! AWESOME!

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

No branches or pull requests

6 participants