Frans-Willem / AqaraHub

AqaraHub is an open-source Zigbee hub for Xiaomi Aqara devices. It aims to be a replacement to the Xiaomi Gateway that does not require communication to outside servers, and uses a saner communication option (e.g. MQTT).
252 stars 34 forks source link

Feature/ikea remote #54

Closed Frans-Willem closed 5 years ago

Frans-Willem commented 5 years ago

These changes should allow linking up Ikea Tradfri remotes with AqaraHub. Note that it requires a new CC2531 firmware, without this none of the messages sent by the remote will be seen by AqaraHub.

Feedback and help on documentation would be greatly appreciated before I merge this in.

Examples of messages seen by the Ikea remote:

AqaraHub2/D0CF5EFFFE1C6306/1/in/OnOff/Toggle {}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Level Control/Step (with OnOff) {"Step mode":0,"Step size":43,"Transition time":5}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Level Control/Move (with OnOff) {"Move mode":0,"Rate":83}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Level Control/Stop (with OnOff) {}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Level Control/Step {"Step mode":1,"Step size":43,"Transition time":5}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Level Control/Move {"Move mode":1,"Rate":83}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Level Control/Stop {}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Scenes/Tradfri Click {"Direction":1,"Unknown1":1,"Unknown2":13}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Scenes/Tradfri Hold {"Direction":1,"Unknown2":13}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Scenes/Tradfri Release {"durationMs":891}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Scenes/Tradfri Click {"Direction":0,"Unknown1":1,"Unknown2":13}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Scenes/Tradfri Hold {"Direction":0,"Unknown2":13}
AqaraHub2/D0CF5EFFFE1C6306/1/in/Scenes/Tradfri Release {"durationMs":879}