kpsuperplane / homebridge-wiz-lan

Control Wiz lights over LAN
Apache License 2.0
116 stars 37 forks source link

Lights don't appear as accessories in Homebridge #122

Open slambert opened 1 year ago

slambert commented 1 year ago

I've got Homebridge installed on a NAS. It doesn't seem to discover any of the Phillips Wiz bulbs I have.

Here are my logs:

1/6/2023, 1:57:14 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[1/6/2023, 1:57:14 PM] [HB Supervisor] Started Homebridge v1.6.0 with PID: 7814
[1/6/2023, 1:57:16 PM] Loaded config.json with 0 accessories and 3 platforms.
[1/6/2023, 1:57:16 PM] Loaded 1 cached accessories from cachedAccessories.
[1/6/2023, 1:57:16 PM] ---
[1/6/2023, 1:57:17 PM] Loaded plugin: homebridge-wemo@5.0.5
[1/6/2023, 1:57:17 PM] Registering platform 'homebridge-wemo.Wemo'
[1/6/2023, 1:57:17 PM] ---
[1/6/2023, 1:57:17 PM] Loaded plugin: homebridge-wiz-net@1.0.1
[1/6/2023, 1:57:17 PM] Registering platform 'homebridge-wiz-net.WizSmartHome'
[1/6/2023, 1:57:17 PM] ---
[1/6/2023, 1:57:17 PM] Loading 3 platforms...
[1/6/2023, 1:57:17 PM] [Wemo] Initializing Wemo platform...
[1/6/2023, 1:57:17 PM] [Wemo] Initialising plugin v5.0.5 | System linux | Node v18.12.1 | HB v1.6.0 | HAPNodeJS v0.11.0...
[1/6/2023, 1:57:17 PM] [WizSmartHome] Initializing WizSmartHome platform...
[1/6/2023, 1:57:17 PM] [WizSmartHome] Initializing child bridge 0E:CC:93:9B:6D:FB
[1/6/2023, 1:57:17 PM] [Wemo] Plugin initialised. Setting up accessories....
Setup Payload:
X-HM://0023ZSONUO0X6
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 316-85-338 │     
    └────────────┘     

[1/6/2023, 1:57:17 PM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge 42CE) is running on port 51751.
[1/6/2023, 1:57:18 PM] [WizSmartHome] Launched child bridge with PID 7825
[1/6/2023, 1:57:18 PM] Registering platform 'homebridge-wiz-net.WizSmartHome'
[1/6/2023, 1:57:19 PM] [WizSmartHome] Loaded homebridge-wiz-net v1.0.1 child bridge successfully
[1/6/2023, 1:57:19 PM] Loaded 0 cached accessories from cachedAccessories.0ECC939B6DFB.
[1/6/2023, 1:57:19 PM] [WizSmartHome] [Socket] Setting up socket on 192.168.1.75:38900
[1/6/2023, 1:57:19 PM] Homebridge v1.6.0 (HAP v0.11.0) (WizSmartHome) is running on port 41154.
[1/6/2023, 1:57:19 PM] [WizSmartHome] [Discovery] Sending discovery UDP broadcast to 255.255.255.255:38899
[1/6/2023, 1:57:19 PM] [WizSmartHome] [Discovery] Sending discovery UDP broadcast to 192.168.1.78:38899
[1/6/2023, 1:57:19 PM] [WizSmartHome] [Discovery] Sending discovery UDP broadcast to 192.168.1.92:38899
[1/6/2023, 1:57:19 PM] [WizSmartHome] [Discovery] Sending discovery UDP broadcast to 192.168.1.53:38899
[1/6/2023, 1:57:19 PM] [WizSmartHome] [Discovery] Sending discovery UDP broadcast to 192.168.1.54:38899
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP06_SHDW9_01, skipping...
[1/6/2023, 1:57:19 PM] [Wemo] ✓ Setup complete. Don't forget to ☆ this plugin on GitHub if you're finding it useful!
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP14_SHRGB1C_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP06_SHDW9_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP06_SHDW9_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP14_SHRGB1C_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [WizSmartHome] Unknown device ESP24_SHRGBC_01, skipping...
[1/6/2023, 1:57:19 PM] [Wemo] [Studio Lights] initialising with options {"logging":"standard","showAs":"outlet"}.
[1/6/2023, 1:57:19 PM] [Wemo] [Studio Lights] initialised with s/n 2288B1K01083A4 and ip/port 192.168.1.73:49153
[1/6/2023, 1:57:19 PM] [Wemo] [Studio Lights] http has been established.
[1/6/2023, 1:57:19 PM] [Wemo] [Studio Lights] upnp has been established.
[1/6/2023, 1:57:20 PM] [Wemo] [Studio Lights] current state [off].

I added some lights manually as a test:

Firefox_Screenshot_2023-01-06T19-14-09 145Z

I also ping'ed a bulb and my NAS from another machine on the same network using the ports that were listed in the logs above and was able to connect.

>  nc -vzu 192.168.1.54 38899
Connection to 192.168.1.54 port 38899 [udp/*] succeeded!

>  nc -vzu 192.168.1.75 41154
Connection to 192.168.1.75 port 41154 [udp/*] succeeded!

>  nc -vzu 192.168.1.75 38900
Connection to 192.168.1.75 port 38900 [udp/*] succeeded!

Would love to get this working...

kpsuperplane commented 1 year ago

I don't think this plugin recognizes ESP24_SHRGBC_01, ESP14_SHRGB1C_01, and ESP06_SHDW9_01. What kinds of bulbs are those? If you don't mind, can you please drop a link to those products?

slambert commented 1 year ago

I believe this is correct:

ESP24_SHRGBC_01 = https://www.homedepot.com/p/Philips-Color-and-Tunable-White-A19-LED-60-Watt-Equivalent-Dimmable-Smart-Wi-Fi-Wiz-Connected-Wireless-Light-Bulb-2-Pack-562686/314367873

ESP14_SHRGB1C_01 = https://www.homedepot.com/p/Philips-Color-and-Tunable-White-B12-LED-40W-Equivalent-Dimmable-Smart-Wi-Fi-Wiz-Connected-Wireless-LED-Light-Bulb-562454/313656487

ESP06_SHDW9_01 = https://www.homedepot.com/p/Philips-Amber-ST19-LED-40-Watt-Equivalent-Dimmable-Smart-Wi-Fi-Wiz-Connected-Wireless-Light-Bulb-555565/310289027

kpsuperplane commented 1 year ago

The more I look at this the more confused I get. Those model IDs should definitely pass this filter: https://github.com/kpsuperplane/homebridge-wiz-lan/blob/897d9e2d9125aaba8f8d5d31115723bea55f3b42/src/accessories/WizBulb/index.ts#L21

@MoTechnicalities do you have any thoughts?

MoTechnicalities commented 1 year ago

@slambert @kpsuperplane

I can only say that all the bulbs that @slambert listed are Philips branded. I've never tried them, and I don't know if they will work. The exact same bulbs are available in the WiZ brand.

slambert commented 1 year ago

I was wondering if it was some kind of network/router setting thing. Not sure if my nc/ping tests rule that out?

Is there any simpler explanation?

FiggyABQ commented 1 year ago

Hello everyone. I'm new here. I just added this plugin to homebridge and I'm not seeing any of my light bulbs in HomeKit. I'm not sure what information I should convey here. After installing the plugin I did a restart of homebridge. But still nothing. Thank you all for your help in advanced.

Homebridge V: 1.6.1 Wiz Lan V: 3.2.7