Pairing DIY Hue with Home Assistant

Hello everyone.
I installed DIYhue on a raspberry Pi and on the same Pi Home Assistant.
I followed the tutorial but i cannot find the lamps included on Home Assistant.
I also had to edit the config.json because i had no Home Assistant entry, so it looks like this:
“emulator”: {
“alarm”: {
“email”: “”,
“lasttriggered”: 100000,
“on”: false
“homeassistant”: {
“enabled”: true,
“homeAssistantIncludeByDefault”: true,
“homeAssistantIp”: “”,
“homeAssistantPort”: 8123,
“lights”: {},
“mqtt”: {
“discoveryPrefix”: “homeassistant”,
“enabled”: false,
“mqttPassword”: “”,
“mqttPort”: “1883”,
“mqttServer”: “mqtt”,
“mqttUser”: “”

The DIY Server starts up fine and runs but cannot find any components at all


I had the same thing - no homeassistant object in config.json. I added it, just like the previous poster, and no home assistant lights are discovered.

I enabled debug logging in diyhue, and it doesn’t seem like anything to do with home assistant is ever called. I.e., I go to /scan and can see discovery for other services, but not home assistant -

2021-02-07 13:39:08,906 - root - DEBUG - shelly: <discover> invoked!
2021-02-07 13:39:08,917 - root - DEBUG - ESPHome: <discover> invoked!
2021-02-07 13:39:08,931 - root - INFO - MQTT discovery called
2021-02-07 13:39:08,941 - root - DEBUG - Hyperion: <discover> invoked!
2021-02-07 13:39:09,648 - root - DEBUG - Sending M-Search response to
2021-02-07 13:39:11,906 - root - DEBUG - Yeelight search end

I set an invalid IP address for home assistant in config.json, restarted, and there’s no error on scanning. I changed the title of the object in config.json to “zzfail” and there’s no mention of this either.

I’ve no idea what I’m doing but it looks like invalid emulators are ignored, and “homeassistant” is an invalid emulator.

edit: I see the homeassistant object gets recreated but it still seems to be ignored.

edit edit: Finally got it, I think. I need to be running a DEV version. All fine now. Sorry!

Does the connection from HA use the Hue Cloud connection or the Hue Local hub connection? If it uses the local connection, you should be able to set it up the same way you would a genuine hue hub. The HTTP calls it recognizes are identical. That’s kinda the whole point.

I have exactly the same issue.
What DEV version did you have to switch to?
I’m running DIYhue in docker


I switched from diyhue/core:latest to diyhue/core:amd64-dev.

I’d be curious to know where I missed this in the documentation.

thanks for the fast reply.
I also found no mention of this in the docs.

diyHue has been updated now from dev to master.

Homeassistant integration is now part of the default diyHue Setup