SmartThingsCommunity / SmartThingsEdgeDrivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IKEA TRADFRI on/off switch - button push not registered

kosztyua opened this issue · comments

Hi,
Newly purchased IKEA TRADFRI on/off switch (E1743) paired successfully with a newly purchased Aeotec Smart Home Hub, but the button pushes/holds are not registered. As I am new to the whole smart home topic not sure where to look or what info you guys need, so here is a logcat output. As far as I can tell the log shows the pairing process, but none of the button pushes later on.

2022-09-29T22:16:43.843519372+00:00 TRACE Zigbee Button Zigbee Device: d369a3ca-0ebc-446b-8eda-299d42060e41
Manufacturer: IKEA of Sweden Model: TRADFRI on/off switch
[1]: Basic, PowerConfiguration, Identify, Alarms, PollControl, TouchlinkCommissioning, 0xFC7C
2022-09-29T22:16:43.851822038+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:16:43.857667038+00:00 TRACE Zigbee Button Received event with handler _resync
2022-09-29T22:16:43.862647372+00:00 TRACE Zigbee Button Received event with handler environment_info
2022-09-29T22:16:43.883589038+00:00 TRACE Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> received unhandled lifecycle event: init
2022-09-29T22:16:43.889477705+00:00 DEBUG Zigbee Button IKEA Remote Control device thread event handled
2022-09-29T22:16:43.895331705+00:00 TRACE Zigbee Button Received event with handler environment_info
2022-09-29T22:16:43.900533038+00:00 DEBUG Zigbee Button Z-Wave hub node ID environment changed.
2022-09-29T22:16:43.907390038+00:00 TRACE Zigbee Button Received event with handler device_lifecycle
2022-09-29T22:16:43.912720372+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> received lifecycle event: added
2022-09-29T22:16:43.925114038+00:00 TRACE Zigbee Button Found DeviceLifecycleDispatcher handler in zigbee_button -> ZigBee multi button -> IKEA Sweden
2022-09-29T22:16:43.932779372+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> emitting event: {"attribute_id":"supportedButtonValues","capability_id":"button","component_id":"button1","state":{"value":["pushed","held"]}}
2022-09-29T22:16:43.950612705+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> emitting event: {"attribute_id":"numberOfButtons","capability_id":"button","component_id":"button1","state":{"value":1}}
2022-09-29T22:16:43.972684705+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> emitting event: {"attribute_id":"supportedButtonValues","capability_id":"button","component_id":"button2","state":{"value":["pushed","held"]}}
2022-09-29T22:16:43.992326038+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> emitting event: {"attribute_id":"numberOfButtons","capability_id":"button","component_id":"button2","state":{"value":1}}
2022-09-29T22:16:44.014018372+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> emitting event: {"attribute_id":"supportedButtonValues","capability_id":"button","component_id":"main","state":{"value":["pushed","held"]}}
2022-09-29T22:16:44.033629372+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> emitting event: {"attribute_id":"numberOfButtons","capability_id":"button","component_id":"main","state":{"value":2}}
2022-09-29T22:16:44.061119372+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x38AF, dest_endpoint: 0x01, profile: 0x0104, cluster: PowerConfiguration >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x00 >, < ReadAttribute || AttributeId: 0x0021 > > >
2022-09-29T22:16:44.083295038+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> emitting event: {"attribute_id":"button","capability_id":"button","component_id":"main","state":{"value":"pushed"}}
2022-09-29T22:16:44.112342038+00:00 DEBUG Zigbee Button IKEA Remote Control device thread event handled
2022-09-29T22:16:44.123559705+00:00 TRACE Zigbee Button Received event with handler device_lifecycle
2022-09-29T22:16:44.135777705+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> received lifecycle event: doConfigure
2022-09-29T22:16:44.262359038+00:00 TRACE Zigbee Button Found DeviceLifecycleDispatcher handler in zigbee_button -> ZigBee multi button -> IKEA Sweden
2022-09-29T22:16:44.349268038+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x38AF, dest_endpoint: 0x01, profile: 0x0000, cluster: 0x0021 >, < ZDOMessageBody || < ZDOHeader || seqno: 0x00 >, < BindRequest || src_address: 943469FFFE7A899F, src_endpoint: 0x01, cluster: PowerConfiguration, dest_addr_mode: 0x03, dest_address: 286D970002096391, dest_endpoint: 0x01 > > >
2022-09-29T22:16:44.459225038+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x38AF, dest_endpoint: 0x01, profile: 0x0000, cluster: 0x0021 >, < ZDOMessageBody || < ZDOHeader || seqno: 0x00 >, < BindRequest || src_address: 943469FFFE7A899F, src_endpoint: 0x01, cluster: OnOff, dest_addr_mode: 0x03, dest_address: 286D970002096391, dest_endpoint: 0x01 > > >
2022-09-29T22:16:44.563648705+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x38AF, dest_endpoint: 0x01, profile: 0x0104, cluster: PowerConfiguration >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x00, seqno: 0x00, ZCLCommandId: 0x06 >, < ConfigureReporting || < AttributeReportingConfiguration || direction: 0x00, attr_id: 0x0021, DataType: Uint8, minimum_reporting_interval: 0x001E, maximum_reporting_interval: 0x5460, reportable_change: 0x01 > > > >
2022-09-29T22:16:44.653474038+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x38AF, dest_endpoint: 0x01, profile: 0x0000, cluster: 0x0033 >, < ZDOMessageBody || < ZDOHeader || seqno: 0x00 >, < MgmtBindRequest || start_index: 0x00 > > >
2022-09-29T22:16:44.732479038+00:00 DEBUG Zigbee Button IKEA Remote Control device thread event handled
2022-09-29T22:16:44.789013038+00:00 DEBUG Zigbee Button IKEA Remote Control device thread event handled
2022-09-29T22:16:45.403832038+00:00 TRACE Zigbee Button Received event with handler device_lifecycle
2022-09-29T22:16:45.426942038+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> received lifecycle event: infoChanged
2022-09-29T22:16:45.437200372+00:00 TRACE Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> received unhandled lifecycle event: infoChanged
2022-09-29T22:16:45.461065038+00:00 DEBUG Zigbee Button IKEA Remote Control device thread event handled
2022-09-29T22:17:09.935923969+00:00 TRACE Zigbee Button Received event with handler zigbee
2022-09-29T22:17:09.981626303+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> received Zigbee message: < ZigbeeMessageRx || type: 0x02, < AddressHeader || src_addr: 0x38AF, src_endpoint: 0x00, dest_addr: 0x0000, dest_endpoint: 0x00, profile: 0x0000, cluster: OnOff >, lqi: 0xAC, rssi: -57, body_length: 0x0009, < ZDOMessageBody || < ZDOHeader || seqno: 0x03 >, GenericBody: FD FF 04 01 01 19 00 00 > >
2022-09-29T22:17:10.157933969+00:00 DEBUG Zigbee Button IKEA Remote Control device thread event handled
2022-09-29T22:17:10.673616636+00:00 TRACE Zigbee Button Received event with handler zigbee
2022-09-29T22:17:10.687776970+00:00 INFO Zigbee Button <ZigbeeDevice: d369a3ca-0ebc-446b-8eda-299d42060e41 [0x38AF] (IKEA Remote Control)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x38AF, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: PowerConfiguration >, lqi: 0xAC, rssi: -57, body_length: 0x0004, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x08, seqno: 0x50, ZCLCommandId: 0x07 >, < ConfigureReportingResponse || ZclStatus: SUCCESS > > >
2022-09-29T22:17:10.714316303+00:00 DEBUG Zigbee Button IKEA Remote Control device thread event handled
2022-09-29T22:17:13.411335971+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:17:43.411102319+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:18:13.417484+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:18:43.422105014+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:19:13.431048028+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:19:43.438374043+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:20:13.441135057+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:20:43.450151071+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:21:13.460540034+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:21:43.461580381+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:22:13.472067396+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:22:43.482051077+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:23:13.490380091+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:23:43.500420772+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:24:13.501146120+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:24:43.509473801+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:25:13.517926744+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:25:43.525785759+00:00 DEBUG Zigbee Button driver device thread event handled
2022-09-29T22:26:13.531189773+00:00 DEBUG Zigbee Button driver device thread event handled

commented

@greens Check please.
I think it's the same problem with the following link.
#50 (comment)

End user comment: I am not seeing any bind responses in the above logging. I am seeing them when I pair one of the same buttons which is working fine (on a V2 with 45.8 beta firmware).

Disclaimer: I don't really understand what I just said.

We haven't attempted to add device to any groups because it hasn't responded with (as @orangebucket correctly pointed out) a binding table response.

commented

@greens I focus on the "add_hub_to_zigbee_group(0x0000)" command not working.
Anyway, I tried adding "add_hub_to_zigbee_group (0x0000)" in doConfigure, but the button(TRADFRI remote control) event does not work.
This situation is after the hub initialization.
In DTH, This resolved this issue with addHubToGroup.

@shinasys Because group 0x0000 is invalid in the zigbee spec we had disallowed drivers from using it. However, because so many devices use it anyway, we'll be adding it back in a later hub firmware release.