sinedied / dmx-hue

:traffic_light: Art-Net node to control Philips Hue lights with DMX
MIT License
185 stars 22 forks source link

"No Lights Found" error? #19

Closed bmillzthedefector closed 1 year ago

bmillzthedefector commented 3 years ago

First of all, thank you so much Sinedied!!

For making this very specific and useful tool! I'm prototyping a lighting system commanded by various input methods via qlc+ on a pi4b that controls both dmx theatrical fixtures and many Philips hue bulbs, and this seems to be the ideal solution for combining those worlds!

I've successfully gotten a test system working in the shop, but when I installed my build into the main room, I've been encountering a No Lights Found message that I haven't been able to resolve. I really hope I'm just overlooking something easy 🙃 as I know you're not really supporting this tool at this time- which is totally fair.

The bridge and hue control all work fine using the Hue app. There is a pi4b with qlc+ and dmx-hue on the same network. The only change from shop image I made on the new pi was to edit config.json to point to the IP of the new bridge, but that hasn't worked. When I run dmx-hue or dmx-hue setup, I get the response “No Lights Found.” I hoped that the dmx-hue setup --force command would resolve this issue, but it doesn’t :(

Here's what I'm seeing:

dmx-hue No lights found

dmx-hue setup Bridge configured at 192.168.1.100 No lights found

dmx-hue setup --force No bridge found

dmx-hue setup -i Bridge configured at 192.168.1.100 No lights found

cat config.json { "bridge": "192.168.1.100", "user": "9C0s22mhXJrebQ8sctMeVAkhKU0hGMs2rl1WQOYH", "dmxAddress": 1, "universe": 1, "colorloop": false, "transition": 100, "disabledLights": {} }

m0dbot commented 3 years ago

today i ran into the same problem. i had a Raspberry Pi set up and working with my lights which i used for other stuff in the last days. Today I restored the backed up image to my sd card but it wont work anymore. Tried some more things without success: -deleting the config file -changing IP of the Pi -restart Hue-Bridge -start from scratch with a fresh Raspbian Lite (latest), install node, npm and dmx-hue. always:

pi@raspberrypi:~ $ dmx-hue setup
Bridge configured at 10.10.20.21
No lights found

The pairing works so it can communicate.

Only thing i cannot test is changing the MAC address as i have only this one Pi.

/api/user/lights returns:

{
    "5": {
        "state": {
            "on": true,
            "bri": 26,
            "hue": 32858,
            "sat": 254,
            "effect": "none",
            "xy": [
                0.4639,
                0.4512
            ],
            "alert": "select",
            "colormode": "xy",
            "mode": "homeautomation",
            "reachable": true
        },
        "swupdate": {
            "state": "notupdatable",
            "lastinstall": "2021-02-23T16:27:33"
        },
        "type": "Color light",
        "name": "Color light 01",
        "modelid": "TRADFRI bulb E27 CWS opal 600lm",
        "manufacturername": "IKEA of Sweden",
        "productname": "Color light",
        "capabilities": {
            "certified": false,
            "control": {
                "colorgamuttype": "other"
            },
            "streaming": {
                "renderer": false,
                "proxy": false
            }
        },
        "config": {
            "archetype": "classicbulb",
            "function": "decorative",
            "direction": "omnidirectional"
        },
        "uniqueid": "5c:02:72:ff:fe:5a:eb:98-01",
        "swversion": "1.3.002"
    },
    "6": {
        "state": {
            "on": false,
            "bri": 1,
            "alert": "select",
            "mode": "homeautomation",
            "reachable": true
        },
        "swupdate": {
            "state": "notupdatable",
            "lastinstall": "2021-02-23T16:32:34"
        },
        "type": "Dimmable light",
        "name": "Dimmable light 1",
        "modelid": "TRADFRI bulb GU10 WW 400lm",
        "manufacturername": "IKEA of Sweden",
        "productname": "Dimmable light",
        "capabilities": {
            "certified": false,
            "control": {},
            "streaming": {
                "renderer": false,
                "proxy": false
            }
        },
        "config": {
            "archetype": "classicbulb",
            "function": "functional",
            "direction": "omnidirectional"
        },
        "uniqueid": "5c:02:72:ff:fe:4e:e8:47-01",
        "swversion": "2.1.022"
    },
    "7": {
        "state": {
            "on": false,
            "bri": 1,
            "alert": "select",
            "mode": "homeautomation",
            "reachable": true
        },
        "swupdate": {
            "state": "notupdatable",
            "lastinstall": "2021-02-23T16:33:54"
        },
        "type": "Dimmable light",
        "name": "Dimmable light 2",
        "modelid": "TRADFRI bulb GU10 WW 400lm",
        "manufacturername": "IKEA of Sweden",
        "productname": "Dimmable light",
        "capabilities": {
            "certified": false,
            "control": {},
            "streaming": {
                "renderer": false,
                "proxy": false
            }
        },
        "config": {
            "archetype": "classicbulb",
            "function": "functional",
            "direction": "omnidirectional"
        },
        "uniqueid": "5c:02:72:ff:fe:74:5f:c6-01",
        "swversion": "2.1.022"
    },
    "8": {
        "state": {
            "on": true,
            "bri": 26,
            "hue": 0,
            "sat": 254,
            "effect": "none",
            "xy": [
                0.5328,
                0.3849
            ],
            "alert": "select",
            "colormode": "xy",
            "mode": "homeautomation",
            "reachable": true
        },
        "swupdate": {
            "state": "notupdatable",
            "lastinstall": "2021-02-23T16:39:38"
        },
        "type": "Color light",
        "name": "Color light 02",
        "modelid": "TRADFRI bulb E27 CWS opal 600lm",
        "manufacturername": "IKEA of Sweden",
        "productname": "Color light",
        "capabilities": {
            "certified": false,
            "control": {
                "colorgamuttype": "other"
            },
            "streaming": {
                "renderer": false,
                "proxy": false
            }
        },
        "config": {
            "archetype": "classicbulb",
            "function": "decorative",
            "direction": "omnidirectional"
        },
        "uniqueid": "5c:02:72:ff:fe:69:7a:fd-01",
        "swversion": "1.3.002"
    }
}

edit: I saw that my hue bridge update is from 11.03.2021 (March 11) - maybe they changed something in the API protocol? also i shortened the api record a bit. i have around 30 lights, all of the same type, which worked with dmx-hue 2 weeks ago

sinedied commented 2 years ago

This may be due to an update to the hue API. It would probably help to update the version of node-hue-api used, but I don't have much time these days to take care of that (as you would probably guess from my response delay 😞 ). If anyone would like to have a look at it, I'll gladly accept a PR.

sinedied commented 1 year ago

The new 2.0 version has been updated with the latest node-hue-api, it should improve compatibility with 3rd party light bulbs too, so I'm closing this. If you encounter this bug again, please let me know