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

Add support for Hue Dimmer RWL 21 : long-press and other specific action #799

Open
pierok13 opened this issue Mar 27, 2023 · 0 comments
Open

Comments

@pierok13
Copy link

Outline

The long press on the O or I button is considered as short press.
There's no release action as well.

Configuration

Logs

short press

2023-03-27 14:28:45.240 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - RX EZSP: EzspIncomingMessageHandler [networkId=0, type=EMBER_INCOMING_UNICAST, apsFrame=EmberApsFrame [profileId=0104, clusterId=0006, sourceEndpoint=1, destinationEndpoint=1, options=[EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=D4], lastHopLqi=140, lastHopRssi=-65, sender=06BF, bindingIndex=255, addressIndex=255, messageContents=01 93 40 00 00] 2023-03-27 14:28:45.242 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=06BF/1, destinationAddress=0000/1, profile=0104, cluster=0006, addressMode=DEVICE, radius=0, apsSecurity=false, ackRequest=false, apsCounter=D4, rssi=-65, lqi=8C, payload=01 93 40 00 00] 2023-03-27 14:28:45.243 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - 00178801021B596D: Node update. NWK Address=NULL 2023-03-27 14:28:45.245 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - 00178801021B596D: Node 06BF is not updated from ZigBeeNode [state=ONLINE, IEEE=00178801021B596D, NWK=----, endpoints=[]] 2023-03-27 14:28:45.246 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX ZCL: ZclHeader [frameType=CLUSTER_SPECIFIC_COMMAND, manufacturerSpecific=false, direction=CLIENT_TO_SERVER, disableDefaultResponse=false, manufacturerCode=0, sequenceNumber=93, commandId=64] 2023-03-27 14:28:45.248 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX CMD: OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=93, effectIdentifier=0, effectVariant=0] 2023-03-27 14:28:45.249 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=93, effectIdentifier=0, effectVariant=0] 2023-03-27 14:28:45.251 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - 00178801021B596D: ZigBee command received OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=93, effectIdentifier=0, effectVariant=0] 2023-03-27 14:28:45.251 [DEBUG] [nverter.ZigBeeConverterGenericButton] - 00178801021B596D: Matching ZigBee command for press type shortpress received: OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=93, effectIdentifier=0, effectVariant=0] 2023-03-27 14:28:45.252 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 00178801021B596D: Triggering ZigBee channel zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:buttonO with event SHORT_PRESSED 2023-03-27 14:28:45.252 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - 00178801021B596D: Level transition move to 0.0 in 800ms 2023-03-27 14:28:45.254 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - 00178801021B596D: Level transition timer 0/16 updating to 0 2023-03-27 14:28:45.254 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker reset for handler with thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d 2023-03-27 14:28:45.256 [DEBUG] [converter.ZigBeeBaseChannelConverter] - 00178801021B596D: Channel zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:switch_level updated to 0 2023-03-27 14:28:45.257 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00178801021B596D: Added transaction to queue, len=1, transaction=ZigBeeTransaction [ieeeAddress=00178801021B596D queueTime=0, state=WAITING, sendCnt=0, command=DefaultResponse [On/Off: 0000/0 -> 06BF/1, cluster=0006, TID=93, commandIdentifier=64, statusCode=SUCCESS]] 2023-03-27 14:28:45.257 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker cancelled task for thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d 2023-03-27 14:28:45.258 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 00178801021B596D: Updating ZigBee channel state zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:switch_level to 0 2023-03-27 14:28:45.259 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker scheduled task for thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d in 14430 seconds 2023-03-27 14:28:45.258 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction Manager: Send Next transaction. outstandingTransactions=0, outstandingQueues=1, sleepy=0/3 2023-03-27 14:28:45.260 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker reset for handler with thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d 2023-03-27 14:28:45.261 [DEBUG] [transaction.ZigBeeTransactionManager] - 06BF/1: Sending ZigBeeTransaction [ieeeAddress=00178801021B596D queueTime=6, state=WAITING, sendCnt=0, command=DefaultResponse [On/Off: 0000/0 -> 06BF/1, cluster=0006, TID=93, commandIdentifier=64, statusCode=SUCCESS]] ==> /var/log/openhab/events.log <== 2023-03-27 14:28:45.262 [INFO ] [openhab.event.ChannelTriggeredEvent ] - zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:buttonO triggered SHORT_PRESSED

long press :
==> /var/log/openhab/openhab.log <== 2023-03-27 14:29:49.567 [DEBUG] [zigbee.dongle.ember.ZigBeeDongleEzsp] - RX EZSP: EzspIncomingMessageHandler [networkId=0, type=EMBER_INCOMING_UNICAST, apsFrame=EmberApsFrame [profileId=0104, clusterId=0006, sourceEndpoint=1, destinationEndpoint=1, options=[EMBER_APS_OPTION_ENABLE_ROUTE_DISCOVERY], groupId=0, sequence=D5], lastHopLqi=124, lastHopRssi=-69, sender=06BF, bindingIndex=255, addressIndex=255, messageContents=01 94 40 00 00] 2023-03-27 14:29:49.569 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX APS: ZigBeeApsFrame [sourceAddress=06BF/1, destinationAddress=0000/1, profile=0104, cluster=0006, addressMode=DEVICE, radius=0, apsSecurity=false, ackRequest=false, apsCounter=D5, rssi=-69, lqi=7C, payload=01 94 40 00 00] 2023-03-27 14:29:49.571 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - 00178801021B596D: Node update. NWK Address=NULL 2023-03-27 14:29:49.576 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - 00178801021B596D: Node 06BF is not updated from ZigBeeNode [state=ONLINE, IEEE=00178801021B596D, NWK=----, endpoints=[]] 2023-03-27 14:29:49.579 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX ZCL: ZclHeader [frameType=CLUSTER_SPECIFIC_COMMAND, manufacturerSpecific=false, direction=CLIENT_TO_SERVER, disableDefaultResponse=false, manufacturerCode=0, sequenceNumber=94, commandId=64] 2023-03-27 14:29:49.581 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - RX CMD: OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=94, effectIdentifier=0, effectVariant=0] 2023-03-27 14:29:49.583 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=94, effectIdentifier=0, effectVariant=0] 2023-03-27 14:29:49.587 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - 00178801021B596D: ZigBee command received OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=94, effectIdentifier=0, effectVariant=0] 2023-03-27 14:29:49.588 [DEBUG] [nverter.ZigBeeConverterGenericButton] - 00178801021B596D: Matching ZigBee command for press type shortpress received: OffWithEffectCommand [On/Off: 06BF/1 -> 0000/1, cluster=0006, TID=94, effectIdentifier=0, effectVariant=0] 2023-03-27 14:29:49.589 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - 00178801021B596D: Level transition move to 0.0 in 800ms 2023-03-27 14:29:49.590 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 00178801021B596D: Triggering ZigBee channel zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:buttonO with event SHORT_PRESSED 2023-03-27 14:29:49.591 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - 00178801021B596D: Level transition timer 0/16 updating to 0 2023-03-27 14:29:49.592 [DEBUG] [e.transaction.ZigBeeTransactionQueue] - 00178801021B596D: Added transaction to queue, len=1, transaction=ZigBeeTransaction [ieeeAddress=00178801021B596D queueTime=0, state=WAITING, sendCnt=0, command=DefaultResponse [On/Off: 0000/0 -> 06BF/1, cluster=0006, TID=94, commandIdentifier=64, statusCode=SUCCESS]] 2023-03-27 14:29:49.592 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker reset for handler with thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d 2023-03-27 14:29:49.593 [DEBUG] [transaction.ZigBeeTransactionManager] - Transaction Manager: Send Next transaction. outstandingTransactions=0, outstandingQueues=1, sleepy=0/3 2023-03-27 14:29:49.593 [DEBUG] [converter.ZigBeeBaseChannelConverter] - 00178801021B596D: Channel zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:switch_level updated to 0 2023-03-27 14:29:49.593 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker cancelled task for thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d 2023-03-27 14:29:49.594 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker scheduled task for thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d in 14430 seconds 2023-03-27 14:29:49.594 [DEBUG] [ng.zigbee.handler.ZigBeeThingHandler] - 00178801021B596D: Updating ZigBee channel state zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:switch_level to 0 2023-03-27 14:29:49.596 [DEBUG] [transaction.ZigBeeTransactionManager] - 06BF/1: Sending ZigBeeTransaction [ieeeAddress=00178801021B596D queueTime=4, state=WAITING, sendCnt=0, command=DefaultResponse [On/Off: 0000/0 -> 06BF/1, cluster=0006, TID=94, commandIdentifier=64, statusCode=SUCCESS]] 2023-03-27 14:29:49.597 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker reset for handler with thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d 2023-03-27 14:29:49.598 [DEBUG] [transaction.ZigBeeTransactionManager] - transactionListenerAdded: 1 outstanding 2023-03-27 14:29:49.599 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker cancelled task for thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d 2023-03-27 14:29:49.600 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX CMD: DefaultResponse [On/Off: 0000/0 -> 06BF/1, cluster=0006, TID=94, commandIdentifier=64, statusCode=SUCCESS] 2023-03-27 14:29:49.600 [DEBUG] [.zigbee.handler.ZigBeeIsAliveTracker] - IsAlive Tracker scheduled task for thingUID=zigbee:philips_rwl021:1d3154ce2f:00178801021b596d in 14430 seconds 2023-03-27 14:29:49.602 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX ZCL: ZclHeader [frameType=ENTIRE_PROFILE_COMMAND, manufacturerSpecific=false, direction=SERVER_TO_CLIENT, disableDefaultResponse=true, manufacturerCode=0, sequenceNumber=94, commandId=11] 2023-03-27 14:29:49.602 [DEBUG] [converter.ZigBeeConverterSwitchLevel] - 00178801021B596D: Level transition timer complete 2023-03-27 14:29:49.604 [DEBUG] [tsystems.zigbee.ZigBeeNetworkManager] - TX APS: ZigBeeApsFrame [sourceAddress=0000/1, destinationAddress=06BF/1, profile=0104, cluster=0006, addressMode=DEVICE, radius=8, apsSecurity=false, ackRequest=true, apsCounter=7F, rssi=--, lqi=--, payload=18 94 0B 40 00] ==> /var/log/openhab/events.log <== 2023-03-27 14:29:49.606 [INFO ] [openhab.event.ChannelTriggeredEvent ] - zigbee:philips_rwl021:1d3154ce2f:00178801021b596d:buttonO triggered SHORT_PRESSED

From what I see it used a specific cluster 0xFC00 on endpoint 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant