-
Notifications
You must be signed in to change notification settings - Fork 466
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
Aqara Wireless Remote Switch E1 (Single Rocker) #1249
Aqara Wireless Remote Switch E1 (Single Rocker) #1249
Conversation
Channel deleted. |
Test Results 56 files 360 suites 0s ⏱️ Results for commit 7134dc0. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against a60c69c |
test.mock_device.add_test_device(mock_device_t1) | ||
end | ||
|
||
test.set_test_init_function(test_init) | ||
|
||
test.register_coroutine_test( | ||
"Handle added lifecycle", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Handle added lifecycle", | |
"Handle added lifecycle -- e1", |
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra whitespace
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra whitespace
local PRIVATE_ATTRIBUTE_ID = 0x0009 | ||
local PRIVATE_SWITCH_MODE_ATTRIBUTE_ID = 0x0125 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local PRIVATE_ATTRIBUTE_ID = 0x0009 | |
local PRIVATE_SWITCH_MODE_ATTRIBUTE_ID = 0x0125 | |
local PRIVATE_ATTRIBUTE_ID_T1 = 0x0009 | |
local PRIVATE_ATTRIBUTE_ID_E1 = 0x0125 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I have modified!
@@ -1,3 +1,4 @@ | |||
---@diagnostic disable: param-type-mismatch, missing-parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
if device:get_model() == "lumi.remote.b1acn02" then | ||
device:send(cluster_base.write_manufacturer_specific_attribute(device, | ||
PRIVATE_CLUSTER_ID, PRIVATE_ATTRIBUTE_ID_T1, MFG_CODE, data_types.Uint8, 1)) | ||
elseif device:get_model() == "lumi.remote.acn003" then | ||
device:send(cluster_base.write_manufacturer_specific_attribute(device, | ||
PRIVATE_CLUSTER_ID, PRIVATE_ATTRIBUTE_ID_E1, MFG_CODE, data_types.Uint8, 2)) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a comment indicating what these both do would be helpful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,when the wireless switch T1 accesses the network, the gateway sends private attribute 0009 to make the device no longer distinguish between the standard gateway and the aqara gateway. When wireless switch E1 is connected to the network, the gateway delivers private attribute 0125 to enable the device to send double-click and long-press packets. Wireless switch T1 supports double and long press by default, while wireless switch E1 does not distinguish between standard gateway and aqara gateway by default. This is the point where they issue different instructions when they enter the network.
Invitation URL: |
|
No description provided.