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]: lumi.remote.b186acn03 (Xiaomi Aqara T1 single rocker wireless remote switch) #19332

Closed
jeong840 opened this issue Oct 18, 2023 · 4 comments
Labels
new device support New device support request

Comments

@jeong840
Copy link

Link

https://smartstore.naver.com/aqarakorea/products/5712908829

Database entry

{"id":19,"type":"EndDevice","ieeeAddr":"0x54ef4410001ddd8c","nwkAddr":39275,"manufId":4447,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.remote.b186acn03","epList":[1,2,3,4,5,6],"endpoints":{"1":{"profId":260,"epId":1,"devId":259,"inClusterList":[0,3,1],"outClusterList":[3,6],"clusters":{"genBasic":{"attributes":{"modelId":"lumi.remote.b186acn03","appVersion":29,"manufacturerName":"LUMI","powerSource":3,"zclVersion":3,"stackVersion":2,"hwVersion":1,"dateCode":"20200324","swBuildId":"2019\u0000www."}},"genPowerCfg":{"attributes":{"batteryVoltage":32}},"aqaraOpple":{"attributes":{"247":{"type":"Buffer","data":[1,33,168,12,3,40,25,4,33,168,19,5,33,58,0,6,36,1,0,0,0,0,8,33,29,1,10,33,72,53,12,32,1,100,16,0]},"252":0}},"genMultistateInput":{"attributes":{"presentValue":1}}},"binds":[],"configuredReportings":[],"meta":{}},"2":{"epId":2,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"3":{"epId":3,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"4":{"epId":4,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"5":{"epId":5,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}},"6":{"epId":6,"inClusterList":[],"outClusterList":[],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":29,"stackVersion":2,"hwVersion":1,"dateCode":"20200324","swBuildId":"2019\u0000www.","zclVersion":3,"interviewCompleted":true,"meta":{},"lastSeen":1697616457154,"defaultSendRequestWhen":"immediate"}

Comments

I bought this from a Korean aqara official seller and it is certified under the name WXKG05LM.

External converter

No response

Supported color modes

No response

Color temperature range

No response

@jeong840 jeong840 added the new device support New device support request label Oct 18, 2023
@jeong840
Copy link
Author

jeong840 commented Oct 28, 2023

I configured the external converter as shown below and it works without any problems. I will try to add code to check the battery status.

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;

const definition = {
        zigbeeModel: ['lumi.remote.b186acn03'],
        model: 'WXKG05LM',
        vendor: 'Xiaomi',
        description: 'Aqara T1 wireless switch',
        fromZigbee: [fz.xiaomi_on_off_action, fz.xiaomi_multistate_action],
        toZigbee: [],
        exposes: [e.action(['single','double','hold'])],
};

module.exports = definition;

@Koenkk
Copy link
Owner

Koenkk commented Oct 29, 2023

Does battery work with: https://gist.github.com/Koenkk/be39ac8d30be8f5bab5f25fab98d1210 ?

@jeong840
Copy link
Author

Does battery work with: https://gist.github.com/Koenkk/be39ac8d30be8f5bab5f25fab98d1210 ?

It works perfectly. Thank you 👍

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Oct 30, 2023
@Koenkk
Copy link
Owner

Koenkk commented Oct 30, 2023

Added, thanks!

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)

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
Projects
None yet
Development

No branches or pull requests

2 participants