zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Gledopto bulb GL-B-007Z paired but doesn't appear in the integraton page

Open milakov opened this issue 7 years ago • 11 comments

Hi, I am using zigbee2mqtt hass.io addon version 1.0.1. I've just got Gledopto GL-B-007Z bulb and cannot pair it fully. Here is my custom config:

    // Gledopto
    {
        zigbeeModel: ['GL-B-007Z'],
        model: 'GL-B-007Z',
        vendor: 'GLEDOPTO',
        description: 'Dual-color Light LED Bulb 6W',
        supports: generic.light_onoff_brightness().supports,
        fromZigbee: generic.light_onoff_brightness().fromZigbee,
        toZigbee: generic.light_onoff_brightness().toZigbee,
    },

zigbee2mqtt adds the device to zigbee network (I can see it as a router in the map of the network), but no new entry can be seen at the integration page, no new HA entities as well. Here is the log:

zigbee2mqtt:info 2019-1-19 21:16:36 Device incoming...
  zigbee2mqtt:info 2019-1-19 21:16:36 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}'
  zigbee2mqtt:info 2019-1-19 21:16:36 New device with address 0x00124b001b50416b connected!
  zigbee2mqtt:info 2019-1-19 21:16:36 MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":"0x00124b001b50416b"}'
  zigbee2mqtt:debug 2019-1-19 21:16:36 Received zigbee message of type 'devStatus' with data '"online"' of device 'GL-B-007Z' (0x00124b001b50416b)

Nothing changes if I set fromZigbee and toZigbee to [].

Will be happy to get any ideas! Thanks!

milakov avatar Jan 20 '19 07:01 milakov

The Gledopo GL-B-007Z is already compatible in the dev branch but you must edit your database.db see: https://github.com/Koenkk/zigbee2mqtt/blob/dev/docs/getting_started/pairing_devices.md

BudBundi avatar Jan 20 '19 11:01 BudBundi

Interestingly, my bulb reports its model fine, exactly GL-B-007Z. I guess, I don't have to edit the database then. I am checking supported devices at dev branch and I don't see GL-B-007Z in there. Bigger bulb (008) is there, but not 007.

milakov avatar Jan 20 '19 15:01 milakov

Hi see #751 There is a section more to configure it Cheers

khzd avatar Jan 20 '19 21:01 khzd

Hi! Thanks for the link, I got it working! First, I switched to dev branch. Then I added GL-B-007Z entry to custom devices.js, basically just copied all the content from 008Z bulb:

    {
        zigbeeModel: ['GL-B-007Z'],
        model: 'GL-B-007Z',
        vendor: 'Gledopto',
        description: 'Smart 6W E27 RGB / CW LED bulb',
        extend: generic.light_onoff_brightness_colortemp_colorxy,
        ep: (device) => {
            if (device.epList.toString() === '11,12,13') {
                return {'': 12};
            } else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
                return {'': 11};
            } else {
                return {};
            }
        },
    },

I checked database.db, it already contained all the manufacturer related info in my case.

And then I manually added entity in the configuration.yaml:

light
- platform: "mqtt"
  name: "Gledopto GL-B-007Z"
  state_topic: "zigbee2mqtt/0x00124b001b50416b"
  availability_topic: "zigbee2mqtt/bridge/state"
  brightness: true
  color_temp: true
  xy: true
  schema: "json"
  command_topic: "zigbee2mqtt/0x00124b001b50416b/set"

And this worked! For some reason MQTT discovery don't work for this bulb for me.

It probably makes sense to add GL-B-007Z to the devices.js, dev branch.

milakov avatar Jan 21 '19 18:01 milakov

Can you make a pr? Once its integrated discovery can be supported.

Koenkk avatar Jan 21 '19 20:01 Koenkk

Will do!

milakov avatar Jan 22 '19 06:01 milakov

Sorry, it is taking a little more time than I expected to get formalities done at my work to make a contribution to the open source project (even if it is a tiny contribution!)

milakov avatar Jan 23 '19 18:01 milakov

Here is the PR! https://github.com/Koenkk/zigbee-shepherd-converters/pull/251

milakov avatar Jan 29 '19 15:01 milakov

Can you make a pr? Once its integrated discovery can be supported.

Do you want me to create a PR for the automatic HA discovery as well?

milakov avatar Jan 29 '19 19:01 milakov

Already done that, thanks anyway! https://github.com/Koenkk/zigbee2mqtt/commit/7e74b8c5497c6f318745e7f91af8d7f48fc73f57

Koenkk avatar Jan 29 '19 19:01 Koenkk

Wonderful, thank you so much!

milakov avatar Jan 29 '19 19:01 milakov