fairecasoimeme / ZiGate

Zigate is an Universal Zigbee Gateway
http://zigate.fr
171 stars 59 forks source link

0x80A7 not used when receiving Left/Right press from Ikea Tradfri 5 Buton Remote #333

Closed pipiche38 closed 3 years ago

pipiche38 commented 3 years ago

How to duplicate Create a group Makes Ikea Remote 5 Buttons part of this group Makes ZiGate part of this group

Expected behaviours:

when pressing Left/Right buttons you get Message Type 0x80A7

This is not what is happening and instead you received 0x8002 message!

There are probably a lot of way to do it, as handling the full message as a Scene Cluster. Here is the short cut

MsgClusterID = MsgData[6:10]
MsgSourceAddress = MsgData[16:20]
MsgPayload = MsgData[26 : len(MsgData)]

if MsgClusterID == '0005' and MsgPayload[0:2] == '05':
    # Scene Control
    cmd = MsgPayload[8:10]
    direction = MsgPayload[10:12]

CC: @doudz , @tcharp38 , @KiwiHC16