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:

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

Two ways to do it

A. Keep the Gouly controllerB. Replace it with WLED
What changesNothing physical. Software only.A new controller wired to the pucks.
Home Assistant sideha-gouly custom integrationBuilt-in WLED integration
Main obstacleExtracting the local key from the appGetting the three wires right; power for a full run
Gouly appKeeps working alongside Home AssistantNo longer used
How far I took itRunning on the house since October 21, 2026Bench 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

ComponentWhat it isNotes from my install
Gouly controllerThe Wi-Fi and Bluetooth box that drives the lightsMine shows up as "Gouly Pro" (4 outputs, RGBW). Maker's site: goulylight.com. Tuya product ID nkdlv1xqvdkhzy2c.
The phone app and your loginWhere the local key livesMine 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-goulyHome Assistant custom integration by mikemaatgithub.com/mikemaat/ha-gouly. I run version 0.8.1.
gouly-keysKey-extraction helper in the same repositoryRuns 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 extractionWindows, macOS or Linux with Python 3.10 or newerNeeds 6 to 8 GB of free disk. It does not have to be the Home Assistant machine. I used a Mac.
Home AssistantAny install typeYou need either HACS or file access to the config folder.
Network pathHome Assistant must reach the controller on TCP 6668My 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:

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

Step 4. Add the lights

  1. Go to Settings, Devices & services, Add integration, and choose Gouly.
  2. Choose Paste gouly_devices.json and paste the whole file, or use manual entry with the device ID and local key.
  3. 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

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

ItemFindingHow I know
PuckGOULY 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 chipUCS2904The lighting app's own "IC Type" setting, and Gouly's model chart for the standard 24 V RGBW versions
ProtocolSingle data wire, 800 kbps, four channels. The same family as SK6812 RGBW.UCS2904B datasheet, other owners' reports, and my working test
Logic levelAbout 5 V logic, even though the LEDs run on 24 VDatasheet. 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

WLED settings that work

SettingValue
LED typeSK6812 / WS2814 RGBW
Colour orderRGB, with no white-channel swap
Data outputGPIO 16 (the terminal marked IO16 on this controller)
Auto-calculate whiteNone (manual white channel)
RelayGPIO 18 on this controller. It switches power to the pucks.
Length3 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 puckSignalWLED controller terminalMy pigtail's colour
LeftGNDGNDGreen
MiddleDATAIO16Red
Right+24 VV+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.

DATAGND+24V key at the bottom
Underside of a glowing blue puck with three black wires running to the GND, IO16 and V+ terminals of the controller
Puck underside wired to the controller's GND, IO16 and V+ terminals. The wires cross on the way, so read them at the puck.
Close-up of the round three-pin connector face held between two fingers
Mating face of the three-pin connector. In this photo the key is the notch at the lower right of the ring.

Sources

Integrations and software

Product pages and documents

Other owners' reports

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.