ZHA developer tools - ZHA: Permit should accept Hue QR Install Codes

It is possible to join a Hue device using the separate Source IEEE and Install code fields. However, the QR Code is rejected with Failed to call service zha.permit. couldn’t convert qr code: […].

According to Zigbee Home Automation this is expected behaviour. Only Aqara, Bosch, Consciot and Embrighten QR Install Codes are supported.

Hue QR Install Codes have this format:

1. 'HUE:'                           // Hue header
2. 'Z:'                             // Z tag
3. 36 uppercase hexadecimal digits  // 128-bit install code + 16-bit CRC
4. ' '                              // single space
5. 'M:'                             // M tag
6. 16 uppercase hexadecimal digits  // IEEE Address
7. ' '                              // single space
8. 'D:'                             // D tag
9. digits or uppercase letters      // 3 or 5 of them?
10. ' '                             // single space
11. 'A:'                            // A tag
12. 4 digits                        // always 4 of them?

This style of QR Install Code has been confirmed for five Hue devices: a floodlight, three different models of bulb and a dimmer switch.

@JohnConnett I believe that the request for Hue QR install code for ZHA might instead belong as issue for the developers working on zigpy or zha libraries that the ZHA integration depends on (same devs):

By the way, noticed that in related news you got Philips Hue Secure Floodlight Camera EU (929003608801) working working with Zigbee2MQTT via QR code and install code and there is lots more information in the discussion for it there, and that you submitted a device support request to ZHA Device Handlers as well:

PS: Off-topic, also check out this feature request related to QR install code provisioning in ZHA: