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”: “127.0.0.1”,
“homeAssistantPort”: 8123,
“homeAssistantToken”: “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”
},
“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 -
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.