Diamond Lighting Solutions lights with Home Assistant and WLED
What I needed, the steps that worked, and what I found out about the LEDs themselves.
These are notes from putting my permanent outdoor lights, installed on the front of the house by Diamond Lighting Solutions, under local control in Home Assistant, plus separate bench work to find out what the LED pucks are and whether WLED can drive them.
Two other names come up throughout, because the installer's name is not on the hardware:
- Gouly is the manufacturer. The controller box and the LED pucks are both Gouly products, and the My Home Lighting phone app appears to be a rebranded version of Gouly's own Gouly Lighting app. Searching for help under the installer's name finds little. Searching for Gouly finds the integration and the forum threads.
- Tuya is the smart-home platform inside the Gouly controller. Tuya supplies the Wi-Fi module, the cloud service the app talks to, and the local network protocol the controller speaks. Many brands build on it, which is why tools already exist for talking to it.
Everything here worked on my hardware in October 2026. Your controller, app or pucks may be a different variant, so I say which parts I confirmed and which I did not.
The short version
- The Gouly controller is a Tuya device. It speaks the Tuya local protocol (version 3.5, TCP port 6668), so Home Assistant can control it directly on your network with no cloud.
- The hard part is one secret, the local key. The app holds it and never shows it. A helper from the open-source ha-gouly project reads it out of the app running in a private Android emulator.
- After that it is a normal integration. Install ha-gouly, paste in the device ID and local key, and you get a light with on/off, brightness, RGBW colour and about 140 effects.
- The pucks are standard addressable LEDs. Mine are GOULY GLMD176 24 V RGBW pucks with a UCS2904 chip. WLED drives them with its SK6812 RGBW profile, so replacing the Gouly controller with a WLED controller is possible. I have that working on the bench.
Two ways to do it
| A. Keep the Gouly controller | B. Replace it with WLED | |
|---|---|---|
| What changes | Nothing physical. Software only. | A new controller wired to the pucks. |
| Home Assistant side | ha-gouly custom integration | Built-in WLED integration |
| Main obstacle | Extracting the local key from the app | Getting the three wires right; power for a full run |
| Gouly app | Keeps working alongside Home Assistant | No longer used |
| How far I took it | Running on the house since October 21, 2026 | Bench test with a few pucks only |
Option A runs my front-house lights today. Option B is the reverse-engineering result in Part 2.
Part 1The Gouly controller in Home Assistant
What you need
| Component | What it is | Notes from my install |
|---|---|---|
| Gouly controller | The Wi-Fi and Bluetooth box that drives the lights | Mine shows up as "Gouly Pro" (4 outputs, RGBW). Maker's site: goulylight.com. Tuya product ID nkdlv1xqvdkhzy2c. |
| The phone app and your login | Where the local key lives | Mine is the installer-branded My Home Lighting (Android package com.home.homelighting, version 1.7.26). The stock app is Gouly Lighting (com.goulyled.ledlight). |
| ha-gouly | Home Assistant custom integration by mikemaat | github.com/mikemaat/ha-gouly. I run version 0.8.1. |
| gouly-keys | Key-extraction helper in the same repository | Runs the app in a private Android emulator and reads the key as the app loads your devices. Usage is in the ha-gouly README. |
| A computer for the extraction | Windows, macOS or Linux with Python 3.10 or newer | Needs 6 to 8 GB of free disk. It does not have to be the Home Assistant machine. I used a Mac. |
| Home Assistant | Any install type | You need either HACS or file access to the config folder. |
| Network path | Home Assistant must reach the controller on TCP 6668 | My lights are on a separate IoT VLAN from Home Assistant. That works as long as the firewall allows it. Give the controller a reserved IP address. |
Identifying the controller
Before finding ha-gouly I looked at the controller on the network. These checks tell you quickly whether you have the same kind of device:
- A port scan showed only TCP 6668 open. There is no web page on port 80 or 443.
- A packet capture while toggling the lights from the app showed encrypted traffic to a cloud server on port 8883 (MQTT over TLS). The app normally goes through the cloud.
- The usual Tuya discovery broadcasts found nothing. The ha-gouly protocol notes confirm these controllers do not send them, and that they answer slowly, so fast port scans can miss them.
- With the key in hand, a direct Tuya 3.5 connection worked first time. A status read returns one value, data point 20, which is the on/off state.
Port 6668 with nothing else open is the fingerprint. The stock Tuya integrations in Home Assistant are not enough. On this controller nearly everything (colour, effects, scenes) goes through a single raw data point, 101, in Gouly's own format, which ha-gouly has decoded.
Step 1. Extract the device ID and local key
On the extraction computer, with uv installed:
uvx --from git+https://github.com/mikemaat/ha-gouly gouly-keys
The helper downloads a private Android emulator (about 2.5 GB, separate from any Android Studio you have), installs the app, opens an emulator window and waits for you to sign in with your normal lighting-app account. As the app loads your devices, the helper captures each controller's device ID and local key and writes gouly_devices.json. Your password is only typed into the app.
If your app is not Gouly Lighting. The helper is written for the stock app, package com.goulyled.ledlight. My installer had set me up with the rebranded My Home Lighting app, which is a different package. The same extraction hooks worked against it, but not out of the box: the helper had to be pointed at my app's package, and the app file supplied with --apk. Check which app you use first. If it is the stock Gouly Lighting app, the one-line command above should be all you need.
The file looks like this, with the values replaced:
[{"name": "Gouly Pro",
"device_id": "<22 characters>",
"local_key": "<16 characters>",
"product_id": "nkdlv1xqvdkhzy2c",
"host": "<controller IP>",
"protocol_version": "3.5"}]
Treat the local key like a password. Anyone on your network who has it can control the lights. Keep the file private and put a copy in your password manager. The key changes if you reset or re-pair the controller in the app, and you would then need to extract it again.
Step 2 (optional). Check the key before touching Home Assistant
A read-only status check with the tinytuya Python library. It does not change the lights.
import tinytuya
d = tinytuya.Device("<device_id>", "<controller IP>", "<local_key>", version=3.5)
print(d.status()) # expect {'dps': {'20': False}}, where False means off
Step 3. Install the integration
- With HACS: open HACS, choose Custom repositories from the menu, add
https://github.com/mikemaat/ha-goulyas type Integration, download "Gouly", then restart Home Assistant. The project recommends this route, and it gives you update notifications. - Manually (what I did): copy the
custom_components/goulyfolder from the repository intoconfig/custom_components/and restart Home Assistant. It works the same, but nothing tells you when a new version is out.
Step 4. Add the lights
- Go to Settings, Devices & services, Add integration, and choose Gouly.
- Choose Paste gouly_devices.json and paste the whole file, or use manual entry with the device ID and local key.
- Home Assistant looks for the controller, which can take up to a minute. If it is on another subnet, give it the controller's IP address.
You get one light entity with brightness, RGBW colour and the effect list (138 effects on my controller), plus an effect-speed control and controls for saving custom presets. I then added an ordinary light tile to my dashboard. The app's preset library (Christmas, Halloween and so on) is an optional extra step described in the ha-gouly README, and there is a companion Gouly Card for browsing it. I did not install either.
Afterwards
- The app still works. The controller echoes every command, so changes made in the app show up in Home Assistant straight away.
- The key is now inside Home Assistant too. It is stored in the integration's configuration, so Home Assistant backups contain it. Protect backups accordingly.
- Upgrades have been uneventful. My install has carried across Home Assistant 2026.7 through 2026.11 without changes.
- The emulator can be removed.
gouly-keys cleandeletes the emulator and downloads once you have the key saved somewhere safe.
Part 2What the LEDs are, and running them from WLED
Separately from the Home Assistant work, I took a few spare pucks to the bench to answer one question: are these proprietary, or ordinary addressable LEDs that an open controller can drive? They are ordinary.
What the pucks are
| Item | Finding | How I know |
|---|---|---|
| Puck | GOULY GLMD176, 30 mm, 24 V, three wires, RGBW. Each puck has three LED packages, each with a dedicated white emitter. | Markings and Gouly's GLMD176 product page |
| Driver chip | UCS2904 | The lighting app's own "IC Type" setting, and Gouly's model chart for the standard 24 V RGBW versions |
| Protocol | Single data wire, 800 kbps, four channels. The same family as SK6812 RGBW. | UCS2904B datasheet, other owners' reports, and my working test |
| Logic level | About 5 V logic, even though the LEDs run on 24 V | Datasheet. A bare 3.3 V ESP32 pin is not reliably enough, so use a controller with a 5 V level shifter. |
Check your variant. Gouly sells several GLMD176 versions, including one with a UCS7604 chip, and some Gouly installs use four-wire DMX-style lights. Housing and wire colour do not tell you which you have. Look at the IC Type shown in the app's settings and count the wires. Everything below applies to the three-wire UCS2904 version.
My test setup
- Controller: GLEDOPTO Elite 4D-EXMU (model GL-C-618WL) (manual), an ESP32 WLED controller that accepts 5 to 24 V and has a built-in 5 V level shifter (74HCT125, shown in this teardown) on its outputs.
- Firmware: WLED 16.0.1. It shipped with 0.15.4, and the upgrade did not change the outcome.
- A 24 V supply into the controller, with the pucks powered from the controller's switched output.
- A three-pin pigtail matching the pucks' screw connector.
WLED settings that work
| Setting | Value |
|---|---|
| LED type | SK6812 / WS2814 RGBW |
| Colour order | RGB, with no white-channel swap |
| Data output | GPIO 16 (the terminal marked IO16 on this controller) |
| Auto-calculate white | None (manual white channel) |
| Relay | GPIO 18 on this controller. It switches power to the pucks. |
| Length | 3 in my test. I have not confirmed how many WLED pixels one puck counts as, so set the length by experiment. |
Wiring and pinout
All three wires on my pucks are black, so position is the only guide. Look at the underside of the puck with the incoming cable pointing away from you, and read the wires where they meet the puck:
| Wire at the puck | Signal | WLED controller terminal | My pigtail's colour |
|---|---|---|---|
| Left | GND | GND | Green |
| Middle | DATA | IO16 | Red |
| Right | +24 V | V+ | Black |
Do not trust pigtail colours. On mine red is data and black is +24 V, the opposite of what you would assume. Trace your own with a meter. Data also has a direction: it enters at the tail of the arrow printed on the puck's circuit board and leaves at the arrowhead toward the next puck.
Looking into the mating face of the puck-side connector with the key at the bottom, the two pins beside the key are the outer wires (GND on the left, +24 V on the right) and the pin opposite the key is DATA. Viewed from the wire side, left and right are mirrored.
Sources
Integrations and software
- ha-gouly: the Home Assistant integration, the gouly-keys helper and the protocol notes
- Gouly Card: optional dashboard card for the preset library
- homebridge-gouly: a local alternative for HomeKit, tested on a single-output controller
- tinytuya: the Python library used for the key check
- Home Assistant WLED integration
- WLED documentation and its compatible LED types
Product pages and documents
- GOULY GLMD176 pixel light family, with the model chart listing the chip per version and a close-up showing the data arrow
- GOULY GLMD901 controller: the controller model my installer reported using
- Gouly Lighting app on Google Play
- UCS2904B datasheet (PDF)
- GLEDOPTO GL-C-618WL manual (PDF, German) and a teardown showing its level shifter
Other owners' reports
- UCS2904 working in WLED as SK6812 RGBW
- Gouly controller thread on the WLED forum. Much of it concerns four-wire DMX lights, which are a different product.
- Facebook group post: an owner running these lights as SK6812 on a Dig-Quad controller (needs a Facebook login)
Not affiliated with Gouly, Tuya, GLEDOPTO or the projects named. Mains-powered outdoor lighting and 24 V supplies deserve care. This describes one install, at your own risk.