Zigbee2MQTT and Unsupported Devices: How to Add Your Own

Search for a command to run...

No comments yet. Be the first to comment.
Feeder is a self-hosted alert feed, you can use it to consolidate alerts from multiple sources, in my case I'm using it to get alerts on the status of my open source projects and self-hosted apps, any issues with one of these products will trigger a ...
Your team has 14 versions of the same code review skill across 5 repos, with no way to sync them. when one improves, the others don't. drop a folder in .claude/skills/ and pray nothing drifts. source

AI agents are unreasonably good at writing SQL. They get specific error messages, fix their own mistakes in one retry, and can introspect query performance with EXPLAIN ANALYZE before you even ask. No

n8n has over 400 integrations. Zapier claims 7,000+. Every single one was hand-built, tested against a moving API, and will eventually break when that API ships a v2. The entire workflow automation in

Part of the "Your Next Startup" series, where I break down startup ideas I think are worth building. Auth0 sold for \(6.5B. Okta is worth \)15B+. CyberArk, Delinea, BeyondTrust, all printing money fro

For as long as software has existed, we've been building two doors into our systems. Door one: the UI, a carefully designed surface where humans point, click, and occasionally rage-quit. Door two: the

Zigbee2MQTT is an excellent open-source project that allows you to create a Zigbee gateway and integrate various devices into your smart home ecosystem. While many devices are supported out of the box, there may be instances where a specific device isn't officially recognized. In this guide, we'll walk you through the process of adding support for the Gledopto GL-LB-001P RGB+CCT LED bar to Zigbee2MQTT using zigbee-herdsman-converters.
Before proceeding, check if your device is already supported in the Zigbee2MQTT development branch by searching for your Zigbee model in the project's repository.
The first step is to pair your device with Zigbee2MQTT:
Put the GL-LB-001P into pairing mode (usually done by performing a factory reset).
Ensure that joining is enabled in your Zigbee2MQTT configuration.
Once paired, you will see a log message indicating that the device has been detected but is not yet supported:
Zigbee2MQTT:info 2019-11-09T12:19:56: Successfully interviewed '0x00158d0001dc126a', device has successfully been paired.
Zigbee2MQTT:warn 2019-11-09T12:19:56: Device '0x00158d0001dc126a' with Zigbee model 'lumi.sens' and manufacturer name 'some_name' is NOT supported.
To add support, create an external converter file named GLEDOPTO.js inside your Zigbee2MQTT folder. This file will define how Zigbee2MQTT should communicate with your device.
GLEDOPTO.js Converterconst fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const extend = require('zigbee-herdsman-converters/lib/extend');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const e = exposes.presets;
const light_onoff_brightness_colortemp_color = (options = {}) => ({
...extend.light_onoff_brightness_colortemp_color({
disablePowerOnBehavior: true,
supportsHueAndSaturation: true,
...options,
}),
toZigbee: [
tz.gledopto_light_onoff_brightness,
tz.gledopto_light_color_colortemp,
],
});
const definition = {
zigbeeModel: ['GL-LB-001P'],
model: 'GL-LB-001P',
vendor: 'Gledopto',
description: 'Zigbee USB LED bar RGB+CCT (pro)',
extend: light_onoff_brightness_colortemp_color({
colorTempRange: [158, 495],
disablePowerOnBehavior: false,
}),
};
module.exports = definition;
After creating the GLEDOPTO.js file, update your Zigbee2MQTT configuration:
Restart Zigbee2MQTT for the new converter to be recognized.
If using Home Assistant:
Go to Supervisor > Add-ons > Zigbee2MQTT.
Click Restart.
If running Zigbee2MQTT manually, restart the service using:
systemctl restart zigbee2mqtt
Once Zigbee2MQTT restarts, reattempt pairing. Your Gledopto GL-LB-001P should now be recognized and fully controllable through Zigbee2MQTT.
Adding support for unsupported Zigbee devices like the Gledopto GL-LB-001P might seem complex, but with the right approach, you can expand your smart home capabilities. By following this guide, you've successfully integrated your RGB+CCT LED bar into Zigbee2MQTT.
Happy tinkering!