-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support for Aqara Smart Wall Switch (No Neutral, Double Rocker) #3566
Comments
Can you share your |
Here is a link to the item. and here is the line from database.db regarding this item.
Ive also updated the model number in my system to correctly show |
With the following definition: {
zigbeeModel: ['lumi.switch.b2laus01'],
model: 'WS-USC02',
vendor: 'Xiaomi',
description: 'Aqara smart wall switch (no neutral, double rocker)',
supports: 'on/off',
fromZigbee: [fz.on_off],
toZigbee: [tz.on_off],
meta: {multiEndpoint: true},
endpoint: (device) => {
return {'top': 1, 'bottom': 2};
},
}, You should be able to control it with |
You are awesome sir. It's working! (albeit with correcting the typo). I've manually added in two switches into my HomeAssistant, and they appear to be working well. Unless there's more to do, I'd say this ticket can be closed. |
I typed too soon. Controlling from mqtt both ways works. But button presses on physical device are not updated on mqtt. |
And with: {
zigbeeModel: ['lumi.switch.b2laus01'],
model: 'WS-USC02',
vendor: 'Xiaomi',
description: 'Aqara smart wall switch (no neutral, double rocker)',
supports: 'on/off',
fromZigbee: [fz.on_off],
toZigbee: [tz.on_off],
meta: {multiEndpoint: true, configureKey: 1},
endpoint: (device) => {
return {'top': 1, 'bottom': 2};
},
configure: async (device, coordinatorEndpoint) => {
const endpoint1 = device.getEndpoint(1);
await bind(endpoint1, coordinatorEndpoint, ['genOnOff']);
await configureReporting.onOff(endpoint1);
const endpoint2 = device.getEndpoint(2);
await bind(endpoint2, coordinatorEndpoint, ['genOnOff']);
await configureReporting.onOff(endpoint2);
},
}, |
Awesome. That last bit did it. It's all working now. |
Added, will be supported in the latest dev branch in a few hours. https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html |
Is it possible to add the option 「 Power outage memory」to WS-USC01, WS-USC02, WS-USC03, WS-USC04 ? |
The following PR includes this for WS-USC02 and WS-USC04. I don't have WS-USC01 nor WS-USC03 to test, so I cannot include them in this PR. I suspect it would be the same for WS-USC01 and WS-USC03. |
Hello team, I have the USC03 and I really need the operation_mode (de-attach mode) .. I am happy to test but I need some help. |
Bug Report
What happened
I'm trying to add support for the switch. I've tried using
{
zigbeeModel: ['lumi.switch.b2laus01'],
model: 'WSDCGQ01LM',
vendor: 'Aqara',
description: 'Smart Wall Switch (No Neutral, Double Rocker)',
supports: '',
fromZigbee: [],
toZigbee: [],
},
`
But the device ends up being seen as a WSDCGQ01LM
What did you expect to happen
How to reproduce it (minimal and precise)
Debug Info
Zigbee2mqtt version: 1.13.0
Adapter hardware: CC2531
Adapter firmware version:
The text was updated successfully, but these errors were encountered: