dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 496 forks source link

Profalux ZigBee roller shutters #7492

Closed BEskandari closed 8 months ago

BEskandari commented 8 months ago

Is there already an existing issue for this?

Product name

Profalux ZigBee roller shutters

Manufacturer

Profalux

Model identifier

unknown

Device type to add

Light

Node info

P2

Endpoints and clusters

P1

Basic

P3

Further relevant clusters

Identify

P4

Groups

P5a P5b

Scenes

P6a P6b P6c P6d

On/off

P7a P7b

Level Control

P8a P8b

Time

P9

Commissioning

P10a P10b P10c P10d P10e P10f P10g P10h

Shade Configuration

P11

BEskandari commented 8 months ago

The device was configured without DDF in previous version by @Smanar https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2739

Smanar commented 8 months ago

It seem he have a strange version, without manufacture name and without Modelid. If it's not a bug, not possible to include this model. Deconz need them to reconise the device.

BEskandari commented 8 months ago

Thanks, I have found this on other communities: "manufId":4368,"manufName":"Profalux" But I have to check with the vendor to see if there is an issue on that.

Smanar commented 8 months ago

Oups, @BEskandari is right I have just see a "hack" in the code to support this device, with missing information. So it's not a bug, as It was already like that previously, but it's more a "zigbee rule" problem.

        //Add missing values for Profalux device
        if (existDevicesWithVendorCodeForMacPrefix(node->address(), VENDOR_PROFALUX))
        {
            //Shutter ?
            if (i->deviceId() == DEV_ID_ZLL_COLOR_LIGHT)
            {
                lightNode.setManufacturerName(QLatin1String("Profalux"));
                lightNode.setModelId(QLatin1String("PFLX Shutter"));
                lightNode.setNeedSaveDatabase(true);
            }
        }

So to work the device need to have

But this code is perhaps disabled with DDF core, you can try to disable it, time to include the device.

BEskandari commented 8 months ago

Thanks @Smanar , but this is beyond my knowledge, I will follow your instructions in case to check the DDF and make it work.

Smanar commented 8 months ago

This device can't work with DDF. And there is no DDF for it. Just disable the DDF core, include your device with the legacy core, then re-enable DDF.

BEskandari commented 8 months ago

Just disable the DDF core, include your device with the legacy core, then re-enable DDF.

image

I don't see the option to disable DDF as mentioned in previous post by you by selecting "Draft". And last but not least how can I be sure that the node is included with the legacy code. Because now I have it in the deCONZ-gui but no mention in the API's.