-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Hue smart button doesn't pair with CC1352P-2 #2625
Comments
I don't think this is specific to the CC1352; I have a CC2531 and it exhibits the same behaviour (pairs, but button does nothing). I think it's to do with something more complex being required. I wrote it up here: I'm a bit stumped as to what to do next.. |
@magnayn the configure probably fails because the device is sleeping, try waking up the device by pressing it while the configure happens (on start of zigbee2mqtt or when doing it manually via https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttbridgeconfigure) |
I got a response in the log that config isn't required (I reset the device itself, it wa definitely awake with a flashing light):
My configuration.yaml lists it, so pairing seemed to work:
|
(The initial setup logs showed this, not sure if it is of any use)
|
I'm somewhat confused by the zigbee 3.0 vs zigbee 1.2 stuff - maybe this is part of the issue? I have a 1.2 firmware on my CC2531 (I tried the 3.0.x firmware and it did not seem to be able to pair with anything at all). |
This is probably not part of the issue, I think the device requires the additional configure which you mentioned in https://zigbee2mqtt.discourse.group/t/philips-hue-smart-button-not-working/751. After adding this to |
Ah, I think pairing works (the title of this ticket is probably not quite right), it's just unresponsive after that (same as OP: "Pairing looks like it is successful in the logs, but pressing the button doesn't light the indicator LED or send any updates to mqtt."). It feels like yes, it needs some sort of configuration. I can do the software coding bit, but I'm drawing a blank as to what that device needs in order to work correctly... |
So, digging and trying to learn as I go. The database shows this: "endpoints": {
"1": {
"profId": 260,
"epId": 1,
"devId": 2096,
"inClusterList": [
0,
1,
3,
64512,
4096
],
"outClusterList": [
25,
0,
3,
4,
6,
8,
5,
4096
],
"clusters": {
"genBasic": {
"attributes": {
"modelId": "ROM001",
"manufacturerName": "Philips",
"powerSource": 3,
"zclVersion": 2,
"appVersion": 2,
"stackVersion": 1,
"hwVersion": 1,
"dateCode": "20190619",
"swBuildId": "2.21.0_r29784"
}
}
},
"binds": []
}
}, I have tried to make it configure by adjusting the devices.js thus: {
zigbeeModel: ['ROM001'],
model: '9290022230',
vendor: 'Philips',
description: 'Hue smart button',
supports: 'action',
fromZigbee: [fz.command_on, fz.command_off_with_effect, fz.SmartButton_skip, fz.battery_percentage_remaining],
toZigbee: [],
meta: {configureKey: 1},
configure: async (device, coordinatorEndpoint) => {
const endpoint1 = device.getEndpoint(1);
await bind(endpoint1, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
}, But nothing seems to happen. I hard-reset the button (hold down reset for 10 secs) - it announces itself (enough to pair) but then nothing futher. Any hints? |
Is this the device: https://www2.meethue.com/en-us/p/hue-smart-button/046677553715? We need to figure out how to configure it, do you have the original hue bridge to sniff traffic? (https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html) |
It is, I don't have a hue bridge unfortunately so I can't sniff.
a patch for this project (
dresden-elektronik/deconz-rest-plugin#2077)
diffs.txt
<https://github.com/dresden-elektronik/deconz-rest-plugin/files/3876449/diffs.txt>
seems
to imply it's close to a RWL02 device - but, that seems to use endpoint 2,
where I tried
doing that I got a null pointer (could it be an active endpoint that's not
declared by it?)
…On Sun, Jan 26, 2020 at 6:31 PM Koen Kanters ***@***.***> wrote:
Is this the device:
https://www2.meethue.com/en-us/p/hue-smart-button/046677553715?
We need to figure out how to configure it, do you have the original hue
bridge to sniff traffic? (
https://www.zigbee2mqtt.io/how_tos/how_to_sniff_zigbee_traffic.html)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2625?email_source=notifications&email_token=AAANDFMTOHBTQJNGQMHPNPDQ7XJGRA5CNFSM4KAEN5F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ52RLA#issuecomment-578529452>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANDFLIWKELQULCETQRWKTQ7XJGRANCNFSM4KAEN5FQ>
.
|
Can you try with {
zigbeeModel: ['ROM001'],
model: '9290022230',
vendor: 'Philips',
description: 'Hue smart button',
supports: 'action',
fromZigbee: [fz.command_on, fz.command_off_with_effect, fz.SmartButton_skip, fz.battery_percentage_remaining],
toZigbee: [],
meta: {configureKey: 4},
configure: async (device, coordinatorEndpoint) => {
const endpoint1 = device.getEndpoint(1);
await bind(endpoint1, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
const options = {manufacturerCode: 0x100B, disableDefaultResponse: true};
await endpoint1.write('genBasic', {0x0031: {value: 0x000B, type: 0x19}}, options);
await bind(endpoint1, coordinatorEndpoint, ['manuSpecificPhilips', 'genPowerCfg']);
await configureReporting.batteryPercentageRemaining(endpoint1);
},
}, |
I tried various things like pressing the button to make it awake,
resetting, forcing configure but I get the following:
zigbee2mqtt:error 2020-01-31 11:57:52: Failed to configure 'SmartButton',
attempt 4 (Error: AREQ - ZDO - bindRsp after 10000ms
at Timeout._onTimeout
(/home/magnayn/zigbee2mqtt/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7))
…On Thu, Jan 30, 2020 at 7:00 PM Koen Kanters ***@***.***> wrote:
Can you try with
{
zigbeeModel: ['ROM001'],
model: '9290022230',
vendor: 'Philips',
description: 'Hue smart button',
supports: 'action',
fromZigbee: [fz.command_on, fz.command_off_with_effect, fz.SmartButton_skip, fz.battery_percentage_remaining],
toZigbee: [],
meta: {configureKey: 4},
configure: async (device, coordinatorEndpoint) => {
const endpoint1 = device.getEndpoint(1);
await bind(endpoint1, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
const endpoint2 = device.getEndpoint(2);
const options = {manufacturerCode: 0x100B, disableDefaultResponse: true};
await endpoint2.write('genBasic', {0x0031: {value: 0x000B, type: 0x19}}, options);
await bind(endpoint2, coordinatorEndpoint, ['manuSpecificPhilips', 'genPowerCfg']);
await configureReporting.batteryPercentageRemaining(endpoint2);
},
},
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2625?email_source=notifications&email_token=AAANDFP4AL4K5XDRPSHNORTRAMPWDA5CNFSM4KAEN5F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKMECEQ#issuecomment-580403474>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANDFLMD4NT33Q4ODYK2YTRAMPWDANCNFSM4KAEN5FQ>
.
|
Please try with the latest dev branch, I've improved the error logging there to get a better understanding where things go wrong. |
I've got a fuller log, which I'll attach in a moment.
The similar log line though is now:
zigbee-herdsman:adapter:zStack:unpi:parser <--
[254,3,69,161,253,98,0,120] +52ms
zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext
[254,3,69,161,253,98,0,120] +0ms
zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 3 - 2 - 5 - 161 -
[253,98,0] - 120 +0ms
zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - bindRsp -
{"srcaddr":25341,"status":0} +52ms
zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] +0ms
zigbee2mqtt:error 2020-02-01 11:48:05: Failed to configure 'SmartButton',
attempt 4 (TypeError: Cannot read property 'write' of undefined
at Object.configure
(/home/magnayn/zigbee2mqtt/node_modules/zigbee-herdsman-converters/devices.js:1738:25)
at async DeviceConfigure.configure
(/home/magnayn/zigbee2mqtt/lib/extension/deviceConfigure.js:95:13))
winston:file written true false
serialport/stream _read reading { start: 1607, toRead: 63929 } +1ms
serialport/binding-abstract read +54ms
winston:file logged 16404 error 2020-02-01 11:48:05: Failed to configure
'SmartButton', attempt 4 (TypeError: Cannot read property 'write' of
undefined
at Object.configure
(/home/magnayn/zigbee2mqtt/node_modules/zigbee-herdsman-converters/devices.js:1738:25)
at async DeviceConfigure.configure
(/home/magnayn/zigbee2mqtt/lib/extension/deviceConfigure.js:95:13))
…On Fri, Jan 31, 2020 at 7:31 PM Koen Kanters ***@***.***> wrote:
Please try with the latest dev branch, I've improved the error logging
there to get a better understanding where things go wrong.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2625?email_source=notifications&email_token=AAANDFMR2PPIRH2JOZRJ2N3RAR4CTA5CNFSM4KAEN5F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKPX2OY#issuecomment-580877627>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANDFMQ2AXFGEDXQF6CSETRAR4CTANCNFSM4KAEN5FQ>
.
|
Are you sure you are using my updated code from #2625 (comment) (it uses endpoint 1 instead of 2 now. I'm asking because it fails at |
Ah, sorry - I hadn't noticed that the patch had changed. I'm happy to report though that it seems to work! 🎆 Thankyou for this, the hue button is a really neat little controller which will signficantly improve my home WAF :) |
@magnayn great, so the button works as expected now? Btw which button is this? https://static2.shortcutlabs.com/wp-content/uploads/2017/09/fille.png or https://www.assets.signify.com/is/image/PhilipsLighting/113464f0f77442aeb7e6aaa000ea3b06?wid=1280&hei=1280&$jpglarge$ |
Yes - it reports both action (on, off) and fade up/down, and link quality
(I haven't seen battery yet but I haven't been looking too closely)
Yes - it's that button (the exact one is this:
https://www.amazon.co.uk/Philips-Button-Wireless-Control-Assistant/dp/B07SQZYYKL)
- it may be a very slightly different SKU as the baseplate is square (UK)
rather than the rectangle (US) style, but the button itself looks the same.
…On Sat, Feb 1, 2020 at 4:06 PM Koen Kanters ***@***.***> wrote:
@magnayn <https://github.com/magnayn> great, so the button works as
expected now?
Btw which button is this?
https://static2.shortcutlabs.com/wp-content/uploads/2017/09/fille.png or
https://www.assets.signify.com/is/image/PhilipsLighting/113464f0f77442aeb7e6aaa000ea3b06?wid=1280&hei=1280&$jpglarge$
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2625?email_source=notifications&email_token=AAANDFLULZZU7ELSXFTAOC3RAWMWNA5CNFSM4KAEN5F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKRANTY#issuecomment-581043919>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANDFIX7GXO574AYA4HBATRAWMWNANCNFSM4KAEN5FQ>
.
|
Awesome, I will add it to the dev branch 😄 |
Bug Report
What happened
I'm using the latest dev docker image with a CC1352P-2 adapter and I'm not able to add a hue smart button (9290022230) to the network. I was able pair it to a hue bridge and update to the latest firmware (2.30.0_r30777).
Pairing looks like it is successful in the logs, but pressing the button doesn't light the indicator LED or send any updates to mqtt.
What did you expect to happen
How to reproduce it (minimal and precise)
Debug Info
zigbee2mqtt version: zigbee2mqtt:latest-dev
CC1352P-2 firmware version: CC1352P_2_20191106.zip
Debug logs: https://pastebin.com/MYwDMTiW
The text was updated successfully, but these errors were encountered: