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

Another Gledopto GL-C-007 Fingerprint - Not detected correctly #8680

Open
Xyaren opened this issue Jan 26, 2025 · 0 comments
Open

Another Gledopto GL-C-007 Fingerprint - Not detected correctly #8680

Xyaren opened this issue Jan 26, 2025 · 0 comments

Comments

@Xyaren
Copy link

Xyaren commented Jan 26, 2025

Hi there, I bought a RGBW Controller a while ago and trouble to get it going without a custom converter.

Modle IDs reported:
Box it came in says: GL-C-007 (Box 2ID checked)
Physical Device Print: GL-C-007

Endpoint 11/genBasic: GL-C-007
Endpoint 13/genBasic: GL-C-009

Database Entry in Z2M:

{
  "id": 39,
  "type": "Router",
  "ieeeAddr": "0x00124b0021efffe2",
  "nwkAddr": 48256,
  "manufId": 0,
  "manufName": "GLEDOPTO",
  "powerSource": "Mains (single phase)",
  "modelId": "GL-C-009",
  "epList": [
    11,
    13,
    15
  ],
  "endpoints": {
    "11": {
      "profId": 49246,
      "epId": 11,
      "devId": 528,
      "inClusterList": [
        0,
        3,
        4,
        5,
        6,
        8,
        768
      ],
      "outClusterList": [],
      "clusters": {
        "genOnOff": {
          "attributes": {
            "onOff": 0
          }
        },
        "lightingColorCtrl": {
          "attributes": {
            "colorCapabilities": 31,
            "colorMode": 2,
            "currentX": 0,
            "currentY": 0,
            "enhancedCurrentHue": 6400,
            "currentSaturation": 251,
            "colorTemperature": 370
          }
        },
        "genBasic": {
          "attributes": {
            "modelId": "GL-C-007",
            "manufacturerName": "GLEDOPTO",
            "powerSource": 1,
            "zclVersion": 1,
            "appVersion": 1,
            "stackVersion": 2,
            "hwVersion": 1,
            "dateCode": "20180920",
            "swBuildId": "2.0.5"
          }
        },
        "genLevelCtrl": {
          "attributes": {
            "currentLevel": 254
          }
        }
      },
      "binds": [],
      "configuredReportings": [],
      "meta": {
        "onLevelSupported": false
      }
    },
    "13": {
      "profId": 49246,
      "epId": 13,
      "devId": 57694,
      "inClusterList": [
        4096
      ],
      "outClusterList": [
        4096
      ],
      "clusters": {},
      "binds": [],
      "configuredReportings": [],
      "meta": {}
    },
    "15": {
      "profId": 49246,
      "epId": 15,
      "devId": 256,
      "inClusterList": [
        0,
        3,
        4,
        5,
        6,
        8,
        768
      ],
      "outClusterList": [],
      "clusters": {
        "lightingColorCtrl": {
          "attributes": {}
        },
        "genBasic": {
          "attributes": {
            "modelId": "GL-C-009",
            "manufacturerName": "GLEDOPTO",
            "powerSource": 1,
            "zclVersion": 1,
            "appVersion": 1,
            "stackVersion": 2,
            "hwVersion": 1,
            "dateCode": "20180920",
            "swBuildId": "2.0.5"
          }
        },
        "genLevelCtrl": {
          "attributes": {}
        }
      },
      "binds": [],
      "configuredReportings": [],
      "meta": {
        "onLevelSupported": false
      }
    }
  },
  "appVersion": 1,
  "stackVersion": 2,
  "hwVersion": 1,
  "dateCode": "20180920",
  "swBuildId": "2.0.5",
  "zclVersion": 1,
  "interviewCompleted": true,
  "meta": {
    "configured": 332242049
  },
  "lastSeen": 1737908207509
}

So the device is not quite sure if its a 007 or 009.

I managed to get it going by forcing this external_converter:

...
const definition = {
    zigbeeModel: ['GL-C-009'],
    model: 'GL-C-007-2ID', // 2 ID controls white and color separate
    vendor: 'Gledopto',
    description: 'Zigbee LED Controller RGBW (2 ID)',
    extend: [gledoptoLight({ colorTemp: { range: undefined }, color: true })],
    exposes: [e.light_brightness_colortemp_colorxy().withEndpoint('rgb'), e.light_brightness().withEndpoint('white')],
    endpoint: (device) => {
        if (device.getEndpoint(10) && device.getEndpoint(11) && device.getEndpoint(13)) {
            return { rgb: 11, white: 10 };
        } else if (device.getEndpoint(11) && device.getEndpoint(12) && device.getEndpoint(13)) {
            return { rgb: 11, white: 12 };
        } else {
            return { rgb: 11, white: 15 };
        }
    },
};

...

Which is a copy of the "GL-C-007-2ID" but using GL-C-009 as zigbeeModel detection.

I assume Koenkk/zigbee2mqtt#24745 is related as this is just another fingerprint of this device.

Thanks for the outstanding work!

Without the overwrite the device is incorrectly detected as Zigbee LED Controller W with model id GL-C-009:

Image

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