LIFX - Name in hubitat is sometimes wrong

Hey everyone,

I have added a new Router to my system and I had to re-add all my devices to Hubitat. (due to having to issue static IPs from scratch)

The first time I imported them I had absolutely no issues. But now, I get devices with the same name

For example, in my Living Room I have the following devices

0 LR 1
0 LR 2
0 LR 3

My import shows something like the following

0 LR 1
0 LR 3
0 LR 3

So essentially it creates multiple devices with the same name - but they are not the same name. I could possibly go back and figure them out one by one (IP and Mac Address) but that would take a ton of time as i have ~70 active LIFX lights

Does anyone have any idea what might be causing this and how can I solve it?

I've certainly never seen that here, but I only have 22 LIFX lights. I assume the DNIs (device network ids) for the duplicates are different? The DNI is the IP address of the device. I really can't see a mechanism for this occurring, but I'll take another look at the discovery code when I get a chance.

Thank you so much Rob,

Yes DNIs are different. Let me share some screenshots to make the challenge as clear as possible.

Here is an example of what I see after importing (did a clean re-import today after restarting Modem, Router and all Access Points)

In this pic, we see 2 Lamps with the name LIFX 0 KR 1. (IPs 187 & 188)

From the Router Clients page, I can find these 2 clients which are indeed separate

image

In fact, one of them is a Downlight (Correct - 0 KR contains only Downlights) and one is normal lamp - which I guess is the wrong one

This happens approximately 10 times in 75 Devices.

Finally, these are the settings I use for Device Discovery

Once again thanks for looking into it - and off course all the work that you have put into making this happen which now powers my home :slight_smile:

What does the the log say? I'm looking for the "Added device" lines here

Hey Rob,

By log I think you mean what shows in the discover page. Here is an example of what it shows.

There are multiple devices with the same name here, but in the LIFX App they have different names (confirmed, checked again)

No, I meant from the logs page - I may have to add more logging to track this down though

Here is what I see.

Then when I click on the first one

And on the 2nd one

I also see this in LIFX Master Status

The next step I was thinking of taking would be to remove the LIFX Master app, and then re-install it.

I can try that, or if it helps you in any way I can wait and share logs to help catch the issue

Can you try a new discovery and post the logs from that - probably best to reinstall the app as you suggest.

Sure. Here is what I get

app:62021-07-20 16:21:13.644 infoDiscovery complete

dev:22312021-07-20 16:19:54.060 warnError occured with UDP message: SocketTimeoutException: Receive timed out

app:62021-07-20 16:16:29.219 infoAdded device L 1 LA 1 of type LIFX Color with ip address 192.168.2.247 and MAC address null

app:62021-07-20 16:16:13.280 infoAdded device L 0 KR 5 of type LIFX Color with ip address 192.168.2.252 and MAC address null

app:62021-07-20 16:16:12.794 infoAdded device L 0 KR 3 of type LIFX Color with ip address 192.168.2.246 and MAC address null

app:62021-07-20 16:15:55.354 infoAdded device L 0O W4 of type LIFX Color with ip address 192.168.2.249 and MAC address null

app:62021-07-20 16:15:54.604 infoAdded device L LIFX A19 418FD0 of type LIFX Color with ip address 192.168.2.240 and MAC address null

app:62021-07-20 16:15:53.691 infoAdded device L 0 K 23 of type LIFX Color with ip address 192.168.2.228 and MAC address null

app:62021-07-20 16:15:37.511 infoAdded device L LIFX A19 418FD0 of type LIFX Color with ip address 192.168.2.238 and MAC address null

app:62021-07-20 16:15:36.810 infoAdded device L 0 LR 5 of type LIFX Color with ip address 192.168.2.230 and MAC address null

app:62021-07-20 16:15:36.189 infoAdded device L LIFX A19 418E0E of type LIFX Color with ip address 192.168.2.222 and MAC address null

app:62021-07-20 16:15:35.399 infoAdded device L 1 LR 1 of type LIFX Color with ip address 192.168.2.212 and MAC address null

app:62021-07-20 16:15:34.383 infoAdded device L 0 K 21 of type LIFX Color with ip address 192.168.2.198 and MAC address null

app:62021-07-20 16:15:33.719 infoAdded device L 0 KR 6 of type LIFX Color with ip address 192.168.2.189 and MAC address null

app:62021-07-20 16:15:21.396 infoAdded device L B C 3 of type LIFX Color with ip address 192.168.2.253 and MAC address null

app:62021-07-20 16:15:20.075 infoAdded device L 0O W1 of type LIFX Color with ip address 192.168.2.243 and MAC address null

app:62021-07-20 16:15:19.474 infoAdded device L 0O E1 of type LIFX Color with ip address 192.168.2.236 and MAC address null

app:62021-07-20 16:15:18.587 infoAdded device L 0 LR 4 of type LIFX Color with ip address 192.168.2.226 and MAC address null

app:62021-07-20 16:15:17.952 infoAdded device L 0O E3 of type LIFX Color with ip address 192.168.2.219 and MAC address null

app:62021-07-20 16:15:17.261 infoAdded device L 0O6 of type LIFX Color with ip address 192.168.2.211 and MAC address null

app:62021-07-20 16:15:16.559 infoAdded device L 0 KR 2 of type LIFX Color with ip address 192.168.2.203 and MAC address null

app:62021-07-20 16:15:15.934 infoAdded device L LIFX A19 40C3B9 of type LIFX Color with ip address 192.168.2.195 and MAC address null

app:62021-07-20 16:15:15.203 infoAdded device L 0 LR 6 of type LIFX Color with ip address 192.168.2.188 and MAC address null

app:62021-07-20 16:15:14.387 infoAdded device L 0 KR 4 of type LIFX Color with ip address 192.168.2.180 and MAC address null

app:62021-07-20 16:15:13.781 infoAdded device L B C 2 of type LIFX Color with ip address 192.168.2.173 and MAC address null

app:62021-07-20 16:15:12.577 infoAdded device L B O 4 of type LIFX Color with ip address 192.168.2.154 and MAC address null

app:62021-07-20 16:15:02.902 infoAdded device L 0 LR 1 of type LIFX Color with ip address 192.168.2.251 and MAC address null

app:62021-07-20 16:15:02.135 infoAdded device L 0O N5 of type LIFX Color with ip address 192.168.2.242 and MAC address null

app:62021-07-20 16:15:01.355 infoAdded device L 1 E 2 of type LIFX Color with ip address 192.168.2.233 and MAC address null

app:62021-07-20 16:15:00.853 infoAdded device L 1 LA 3 of type LIFX Color with ip address 192.168.2.227 and MAC address null

app:62021-07-20 16:15:00.059 infoAdded device L 0 K 15 of type LIFX Color with ip address 192.168.2.221 and MAC address null

app:62021-07-20 16:14:59.390 infoAdded device L 0 K 24 of type LIFX Color with ip address 192.168.2.215 and MAC address null

app:62021-07-20 16:14:58.716 infoAdded device L 1 LR 2 of type LIFX Color with ip address 192.168.2.206 and MAC address null

app:62021-07-20 16:14:58.087 infoAdded device L 1 LR 4 of type LIFX Color with ip address 192.168.2.200 and MAC address null

app:62021-07-20 16:14:57.631 infoAdded device L 0O E2 of type LIFX Color with ip address 192.168.2.194 and MAC address null

app:62021-07-20 16:14:56.736 infoAdded device L LIFX A19 40716A of type LIFX Color with ip address 192.168.2.185 and MAC address null

app:62021-07-20 16:14:56.237 infoAdded device L 1 C 1 of type LIFX Color with ip address 192.168.2.179 and MAC address null

app:62021-07-20 16:14:55.700 infoAdded device L 0 K 13 of type LIFX Color with ip address 192.168.2.172 and MAC address null

app:62021-07-20 16:14:55.239 infoAdded device L B O 1 of type LIFX Color with ip address 192.168.2.166 and MAC address null

app:62021-07-20 16:14:54.368 infoAdded device L B O 5 of type LIFX Color with ip address 192.168.2.153 and MAC address null

app:62021-07-20 16:14:45.138 infoAdded device L 0 K 12 of type LIFX Color with ip address 192.168.2.248 and MAC address null

app:62021-07-20 16:14:44.571 infoAdded device L 0O N5 of type LIFX Color with ip address 192.168.2.241 and MAC address null

app:62021-07-20 16:14:43.857 infoAdded device L 0 K 11 of type LIFX Color with ip address 192.168.2.235 and MAC address null

app:62021-07-20 16:14:43.307 infoAdded device L 0 K 13 of type LIFX Color with ip address 192.168.2.231 and MAC address null

app:62021-07-20 16:14:42.662 infoAdded device L LIFX A19 40D9F3 of type LIFX Color with ip address 192.168.2.223 and MAC address null

app:62021-07-20 16:14:41.816 infoAdded device L 0 K 09 of type LIFX Color with ip address 192.168.2.218 and MAC address null

app:62021-07-20 16:14:41.120 infoAdded device L LIFX A19 418DF7 of type LIFX Color with ip address 192.168.2.210 and MAC address null

app:62021-07-20 16:14:40.512 infoAdded device L 0O N1 of type LIFX Color with ip address 192.168.2.204 and MAC address null

app:62021-07-20 16:14:40.090 infoAdded device L 0O W2 of type LIFX Color with ip address 192.168.2.199 and MAC address null

app:62021-07-20 16:14:39.625 infoAdded device L 0 K 22 of type LIFX Color with ip address 192.168.2.193 and MAC address null

app:62021-07-20 16:14:39.077 infoAdded device L 0 KR 6 of type LIFX Color with ip address 192.168.2.190 and MAC address null

app:62021-07-20 16:14:38.712 infoAdded device L 0 K 10 of type LIFX Color with ip address 192.168.2.184 and MAC address null

app:62021-07-20 16:14:37.985 infoAdded device L 0 LR 2 of type LIFX Color with ip address 192.168.2.176 and MAC address null

app:62021-07-20 16:14:37.575 infoAdded device L 0 K 16 of type LIFX Color with ip address 192.168.2.170 and MAC address null

app:62021-07-20 16:14:37.103 infoAdded device L 1 LR 3 of type LIFX Color with ip address 192.168.2.164 and MAC address null

app:62021-07-20 16:14:36.290 infoAdded device L B O 3 of type LIFX Color with ip address 192.168.2.152 and MAC address null

app:62021-07-20 16:14:26.794 infoAdded device L 0 KR 3 of type LIFX Color with ip address 192.168.2.250 and MAC address null

app:62021-07-20 16:14:26.378 infoAdded device L 0O W3 Entrance of type LIFX Color with ip address 192.168.2.245 and MAC address null

app:62021-07-20 16:14:25.525 infoAdded device L 0 St of type LIFX Color with ip address 192.168.2.239 and MAC address null

app:62021-07-20 16:14:25.023 infoAdded device L 0 K 11 of type LIFX Color with ip address 192.168.2.232 and MAC address null

app:62021-07-20 16:14:24.440 infoAdded device L 0O11 of type LIFX Color with ip address 192.168.2.229 and MAC address null

app:62021-07-20 16:14:23.967 infoAdded device L 0O N2 of type LIFX Color with ip address 192.168.2.224 and MAC address null

app:62021-07-20 16:14:23.536 infoAdded device L 0O E4 of type LIFX Color with ip address 192.168.2.220 and MAC address null

app:62021-07-20 16:14:23.225 infoAdded device L 1 C 2 of type LIFX Color with ip address 192.168.2.217 and MAC address null

app:62021-07-20 16:14:22.938 infoAdded device L 0O6 of type LIFX Color with ip address 192.168.2.214 and MAC address null

app:62021-07-20 16:14:22.627 infoAdded device L LIFX A19 418DF7 of type LIFX Color with ip address 192.168.2.209 and MAC address null

app:62021-07-20 16:14:22.033 infoAdded device L 0O N1 of type LIFX Color with ip address 192.168.2.205 and MAC address null

app:62021-07-20 16:14:21.691 infoAdded device L 0 LR 7 of type LIFX Color with ip address 192.168.2.201 and MAC address null

app:62021-07-20 16:14:20.635 infoAdded device L 0 K 19 of type LIFX Color with ip address 192.168.2.196 and MAC address null

app:62021-07-20 16:14:20.286 infoAdded device L 0 K 22 of type LIFX Color with ip address 192.168.2.192 and MAC address null

dev:20772021-07-20 16:14:20.083 warnError occured with UDP message: SocketTimeoutException: Receive timed out

app:62021-07-20 16:14:19.738 infoAdded device L 0 KR 1 of type LIFX Color with ip address 192.168.2.187 and MAC address null

app:62021-07-20 16:14:19.244 infoAdded device L B C 1 of type LIFX Color with ip address 192.168.2.182 and MAC address null

app:62021-07-20 16:14:18.868 infoAdded device L 0 KR 8 of type LIFX Color with ip address 192.168.2.178 and MAC address null

app:62021-07-20 16:14:18.552 infoAdded device L 0 K 13 of type LIFX Color with ip address 192.168.2.175 and MAC address null

app:62021-07-20 16:14:18.247 infoAdded device L 0 K 18 of type LIFX Color with ip address 192.168.2.171 and MAC address null

app:62021-07-20 16:14:17.841 infoAdded device L 1 LR 3 of type LIFX Color with ip address 192.168.2.168 and MAC address null

app:62021-07-20 16:14:17.631 infoAdded device L 0O LED of type LIFX Multizone with ip address 192.168.2.163 and MAC address null

dev:21832021-07-20 16:14:17.558 errororg.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: static java.lang.Float.parseFloat() is applicable for argument types: (java.math.BigDecimal) values: [2.77] Possible solutions: parseFloat(java.lang.String) (installed)

app:62021-07-20 16:14:16.704 infoAdded device L B O 6 of type LIFX Color with ip address 192.168.2.151 and MAC address null

app:62021-07-20 16:14:14.760 infoDiscovery started

app:62021-07-20 16:14:14.752 infoRemoving child devices

app:62021-07-20 16:14:14.323 infoDiscovery started

That looks like it might be an older version. If you're running on 2.2.7 or earlier of the Hubitat software then it should be version 1.0.5, I released 1.0.6 the other day (Sunday I think) which works with 2.2.8

It may just be an error in the logging, the the MAC address shouldn't be showing as null.

Did you use HPM to install the LIFX app or was it a manual installation?

Oh! As it usually is - the issue is obvious and was in front of me the whole team. Updated now (HPM) and re-adding - will update once I have results

So updating did not solve the issue after all - here is the log of the 2nd time I ran it after updating (first also did not recognize Mac Address)

I am now thinking it might be a security setting of my Router as I tried to increase security (created dedicated VLAN for LIFX).

Will review and update if that is it

app:62021-07-20 17:24:26.551 infoDiscovery complete

app:62021-07-20 17:24:14.603 infoAdded device L B C 3 of type LIFX Color with ip address 192.168.2.253 and MAC address null

app:62021-07-20 17:24:13.200 infoAdded device L 1 LA 3 of type LIFX Color with ip address 192.168.2.227 and MAC address null

app:62021-07-20 17:24:00.886 infoAdded device L 0 LR 1 of type LIFX Color with ip address 192.168.2.251 and MAC address null

app:62021-07-20 17:23:59.235 infoAdded device L LIFX A19 40D9F3 of type LIFX Color with ip address 192.168.2.223 and MAC address null

app:62021-07-20 17:23:58.067 infoAdded device L 0 LR 3 of type LIFX Color with ip address 192.168.2.205 and MAC address null

app:62021-07-20 17:23:47.402 infoAdded device L 0O W4 of type LIFX Color with ip address 192.168.2.249 and MAC address null

app:62021-07-20 17:23:46.664 infoAdded device L 0O E1 of type LIFX Color with ip address 192.168.2.238 and MAC address null

app:62021-07-20 17:23:45.689 infoAdded device L LIFX A19 40D9F3 of type LIFX Color with ip address 192.168.2.222 and MAC address null

app:62021-07-20 17:23:44.448 infoAdded device L 1 LR 2 of type LIFX Color with ip address 192.168.2.206 and MAC address null

app:62021-07-20 17:23:43.410 infoAdded device L 0 K 21 of type LIFX Color with ip address 192.168.2.198 and MAC address null

app:62021-07-20 17:23:33.017 infoAdded device L 1 LA 1 of type LIFX Color with ip address 192.168.2.247 and MAC address null

app:62021-07-20 17:23:32.062 infoAdded device L 0O N3 of type LIFX Color with ip address 192.168.2.236 and MAC address null

app:62021-07-20 17:23:31.023 infoAdded device L 0O E3 of type LIFX Color with ip address 192.168.2.219 and MAC address null

app:62021-07-20 17:23:29.526 infoAdded device L 0 K 21 of type LIFX Color with ip address 192.168.2.195 and MAC address null

app:62021-07-20 17:23:28.800 infoAdded device L LIFX A19 40716A of type LIFX Color with ip address 192.168.2.185 and MAC address null

app:62021-07-20 17:23:19.622 infoAdded device L 1 LA 1 of type LIFX Color with ip address 192.168.2.243 and MAC address null

app:62021-07-20 17:23:18.423 infoAdded device L 1 E 1 of type LIFX Color with ip address 192.168.2.232 and MAC address null

app:62021-07-20 17:23:17.227 infoAdded device L 1 C 2 of type LIFX Color with ip address 192.168.2.214 and MAC address null

app:62021-07-20 17:23:16.456 infoAdded device L 0 K 21 of type LIFX Color with ip address 192.168.2.196 and MAC address null

app:62021-07-20 17:23:15.508 infoAdded device L 0 LR 6 of type LIFX Color with ip address 192.168.2.188 and MAC address null

app:62021-07-20 17:23:14.464 infoAdded device L 0 LR 2 of type LIFX Color with ip address 192.168.2.176 and MAC address null

app:62021-07-20 17:23:04.868 infoAdded device L 1 E 1 of type LIFX Color with ip address 192.168.2.242 and MAC address null

app:62021-07-20 17:23:04.186 infoAdded device L 0 LR 5 of type LIFX Color with ip address 192.168.2.230 and MAC address null

app:62021-07-20 17:23:03.532 infoAdded device L 0 K 15 of type LIFX Color with ip address 192.168.2.221 and MAC address null

app:62021-07-20 17:23:02.748 infoAdded device L 1 LR 1 of type LIFX Color with ip address 192.168.2.212 and MAC address null

app:62021-07-20 17:23:02.054 infoAdded device L 0 KR 2 of type LIFX Color with ip address 192.168.2.203 and MAC address null

app:62021-07-20 17:23:01.192 infoAdded device L 1 LA 2 of type LIFX Color with ip address 192.168.2.190 and MAC address null

app:62021-07-20 17:23:00.389 infoAdded device L 0 KR 4 of type LIFX Color with ip address 192.168.2.180 and MAC address null

app:62021-07-20 17:22:59.788 infoAdded device L 0 K 16 of type LIFX Color with ip address 192.168.2.170 and MAC address null

app:62021-07-20 17:22:58.895 infoAdded device L B O 4 of type LIFX Color with ip address 192.168.2.154 and MAC address null

app:62021-07-20 17:22:51.461 infoAdded device L 0 K 12 of type LIFX Color with ip address 192.168.2.248 and MAC address null

app:62021-07-20 17:22:50.697 infoAdded device L 0O E1 of type LIFX Color with ip address 192.168.2.241 and MAC address null

app:62021-07-20 17:22:50.156 infoAdded device L 0 LR 5 of type LIFX Color with ip address 192.168.2.235 and MAC address null

app:62021-07-20 17:22:49.763 infoAdded device L 1 LA 3 of type LIFX Color with ip address 192.168.2.229 and MAC address null

app:62021-07-20 17:22:49.116 infoAdded device L 0 K 09 of type LIFX Color with ip address 192.168.2.218 and MAC address null

app:62021-07-20 17:22:48.484 infoAdded device L 0O6 of type LIFX Color with ip address 192.168.2.211 and MAC address null

app:62021-07-20 17:22:47.912 infoAdded device L 0 KR 2 of type LIFX Color with ip address 192.168.2.201 and MAC address null

app:62021-07-20 17:22:47.136 infoAdded device L 0 KR 7 of type LIFX Color with ip address 192.168.2.192 and MAC address null

app:62021-07-20 17:22:46.404 infoAdded device L B C 1 of type LIFX Color with ip address 192.168.2.182 and MAC address null

app:62021-07-20 17:22:45.803 infoAdded device L B C 2 of type LIFX Color with ip address 192.168.2.173 and MAC address null

app:62021-07-20 17:22:45.267 infoAdded device L B O 1 of type LIFX Color with ip address 192.168.2.166 and MAC address null

app:62021-07-20 17:22:44.536 infoAdded device L B O 5 of type LIFX Color with ip address 192.168.2.153 and MAC address null

app:62021-07-20 17:22:37.218 infoAdded device L 0 KR 5 of type LIFX Color with ip address 192.168.2.252 and MAC address null

app:62021-07-20 17:22:36.779 infoAdded device L 0 KR 3 of type LIFX Color with ip address 192.168.2.246 and MAC address null

app:62021-07-20 17:22:36.031 infoAdded device L 0O E1 of type LIFX Color with ip address 192.168.2.240 and MAC address null

app:62021-07-20 17:22:35.443 infoAdded device L 0 K 13 of type LIFX Color with ip address 192.168.2.231 and MAC address null

app:62021-07-20 17:22:35.034 infoAdded device L 0 LR 4 of type LIFX Color with ip address 192.168.2.226 and MAC address null

app:62021-07-20 17:22:34.672 infoAdded device L 0 K 15 of type LIFX Color with ip address 192.168.2.217 and MAC address null

app:62021-07-20 17:22:33.941 infoAdded device L LIFX A19 418DF7 of type LIFX Color with ip address 192.168.2.210 and MAC address null

app:62021-07-20 17:22:33.292 infoAdded device L 1 LR 4 of type LIFX Color with ip address 192.168.2.200 and MAC address null

app:62021-07-20 17:22:32.575 infoAdded device L 0 K 22 of type LIFX Color with ip address 192.168.2.193 and MAC address null

app:62021-07-20 17:22:32.008 infoAdded device L 0 KR 1 of type LIFX Color with ip address 192.168.2.187 and MAC address null

app:62021-07-20 17:22:31.394 infoAdded device L 0 K 20 of type LIFX Color with ip address 192.168.2.178 and MAC address null

app:62021-07-20 17:22:30.971 infoAdded device L 0 K 13 of type LIFX Color with ip address 192.168.2.172 and MAC address null

app:62021-07-20 17:22:30.464 infoAdded device L 1 LR 3 of type LIFX Color with ip address 192.168.2.164 and MAC address null

app:62021-07-20 17:22:29.788 infoAdded device L B O 4 of type LIFX Color with ip address 192.168.2.152 and MAC address null

app:62021-07-20 17:22:23.190 infoAdded device L 0O W4 of type LIFX Color with ip address 192.168.2.250 and MAC address null

app:62021-07-20 17:22:22.814 infoAdded device L 0O N5 of type LIFX Color with ip address 192.168.2.245 and MAC address null

app:62021-07-20 17:22:22.380 infoAdded device L 0 St of type LIFX Color with ip address 192.168.2.239 and MAC address null

app:62021-07-20 17:22:21.949 infoAdded device L 1 E 1 of type LIFX Color with ip address 192.168.2.233 and MAC address null

app:62021-07-20 17:22:21.529 infoAdded device L 0O11 of type LIFX Color with ip address 192.168.2.228 and MAC address null

app:62021-07-20 17:22:21.056 infoAdded device L LIFX A19 40D9F3 of type LIFX Color with ip address 192.168.2.224 and MAC address null

app:62021-07-20 17:22:20.732 infoAdded device L 0O E3 of type LIFX Color with ip address 192.168.2.220 and MAC address null

app:62021-07-20 17:22:20.374 infoAdded device L 0 K 24 of type LIFX Color with ip address 192.168.2.215 and MAC address null

app:62021-07-20 17:22:20.003 infoAdded device L 1 LR 5 of type LIFX Color with ip address 192.168.2.209 and MAC address null

app:62021-07-20 17:22:19.538 infoAdded device L 0 KR 2 of type LIFX Color with ip address 192.168.2.204 and MAC address null

app:62021-07-20 17:22:19.205 infoAdded device L 0O W2 of type LIFX Color with ip address 192.168.2.199 and MAC address null

app:62021-07-20 17:22:18.661 infoAdded device L 0 K 22 of type LIFX Color with ip address 192.168.2.194 and MAC address null

app:62021-07-20 17:22:18.029 infoAdded device L 0 LR 6 of type LIFX Color with ip address 192.168.2.189 and MAC address null

app:62021-07-20 17:22:17.680 infoAdded device L 1 C 1 of type LIFX Color with ip address 192.168.2.184 and MAC address null

app:62021-07-20 17:22:17.373 infoAdded device L 0 K 20 of type LIFX Color with ip address 192.168.2.179 and MAC address null

app:62021-07-20 17:22:17.107 infoAdded device L 0 KR 8 of type LIFX Color with ip address 192.168.2.175 and MAC address null

app:62021-07-20 17:22:16.797 infoAdded device L 0 K 16 of type LIFX Color with ip address 192.168.2.171 and MAC address null

app:62021-07-20 17:22:16.653 infoAdded device L 0 K 17 of type LIFX Color with ip address 192.168.2.168 and MAC address null

app:62021-07-20 17:22:15.080 infoAdded device L 0O LED of type LIFX Multizone with ip address 192.168.2.163 and MAC address null

dev:24932021-07-20 17:22:15.043 errororg.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: static java.lang.Float.parseFloat() is applicable for argument types: (java.math.BigDecimal) values: [2.77] Possible solutions: parseFloat(java.lang.String) (installed)

app:62021-07-20 17:22:13.519 infoAdded device L B O 6 of type LIFX Color with ip address 192.168.2.151 and MAC address null

app:62021-07-20 17:22:11.342 infoAdded device L 0 Sq of type LIFX Color with ip address 192.168.2.100 and MAC address null

app:62021-07-20 17:22:07.115 infoDiscovery started

app:62021-07-20 17:22:05.012 infoRemoving child devices

app:62021-07-20 17:19:54.573 infoDiscovery complete

Removed all the privacy/isolation features from VLAN and I still get the same issue. Will try removing the app and re-installing it

That's very weird, can't think of another reason for not receiving the MAC address.

I just realized that My hubitat is on a different VLAN than the lights. Could that be it?

Perhaps, may depend on your router - what make is it?

Regardless, not having the MAC address will definitely cause problems with discovery.

1 Like

Here's a possible fix, completely untested since I can't reproduce the issue here:

In the LIFX Master app code, there's the following line (line 888 in the latest version)

final String mac = deviceParams.mac

Try changing that to

final String mac = deviceParams.mac ?: getMACFromIP(ip)

Perhaps at that point the MAC address will be known.

If not I'll have to find another way to store the temporary device definitions - currently it's an array indexed by the MAC address, which probably explains the behaviour you're seeing with duplicate names. LIFX Master asks the device for various bits of information and builds up the device definition, once the definition is complete it creates the child device and removes that definition. If it finds another device while the definition is incomplete, then it will overwrite the values - e.g. the label with the later details. This will probably mostly happen when the IP addresses of two devices are quite close together, as with your 192.168.2.187 and 192.168.2.188

Let me know if the change above actually does fetch the MAC address - if not I'll probably have to use the IP address instead.

Hey rob,

I moved Hubitat to the same WLAN as my lights and everything worked correctly

  1. Tried with the new Code, but it still returned duplicates
  2. Tried Forwarding Port 56700 as suggested here
  3. I have a Unifi Dream Machine Pro as my central Router

I really appreciate the time you invested here - and I am happy to help in any way (now or in the future) if you need help catching this issue

Odd that you're still getting duplicates though, I'll see about adding some extra logging.

I assume that you're seeing the MAC addresses now?

I have the UDM (non-pro) which should work in much the same way.

I'm planning on a bit of a rewrite to take advantage of the new Libraries feature in 2.2.8, but I'll wait until HPM supports it.