pywizlight icon indicating copy to clipboard operation
pywizlight copied to clipboard

Question: Example usage of get/setWifiConfig

Open scriptsrc opened this issue 3 years ago • 5 comments

Hey team,

Thanks a ton for this library and for your efforts to get it merged into HomeAssistant.

I have ~70 wiz bulbs and I'm starting to move them to a new vlan/ssid on my network. This is quite painful to do manually. I'm hoping to use the get/setWifiConfig UDP methods from your readme.

Is there an example piece of python on how to do this? (I've read the readme but I'm not quite sure how to use it just yet)

BTW - I love how you wrote this library to be async.

Thanks for any help. I'm now a sponsor too!

scriptsrc avatar Apr 26 '21 21:04 scriptsrc

Unfortunately you can't set the bulb config via UDP packages. The function is available but not used for setting the config.

sbidy avatar Apr 27 '21 04:04 sbidy

Thanks for the quick response

Just to confirm - the setWifiConfig method mentioned in the readme does not work. Is that correct?

On Mon, Apr 26, 2021 at 10:39 PM Stephan Traub @.***> wrote:

Unfortunately you can't set the bulb config via UDP packages. The function is available but not used for setting the config.

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub https://github.com/sbidy/pywizlight/issues/72#issuecomment-827307071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5DLJUUZQYE5RTE4HHLGC3TKY5XRANCNFSM43TWUQAA .

scriptsrc avatar Apr 27 '21 05:04 scriptsrc

Yes - I documented all function which are exists on the bulb FW (https://github.com/sbidy/pywizlight#set-functions). But not all of them works as "expected".

sbidy avatar May 01 '21 10:05 sbidy

setWifiConfig works when the mobile phone is connected to the light bulb using the light bulb's own wifi hotspot, once the light bulb is not in pairing mode anymore the hotspot is turned off and the light bulb connects to the wifi network using the details provided in the setWifiConfig datagram, this is the same way Lifx bulbs work too, apart from they use TCP instead of UDP.

PonchoPowers avatar Jun 06 '22 02:06 PonchoPowers

Hi, Just curious if someone can explain how WiZ bulbs are discovered via hotspot and brought into the Wifi network.. Can anyone explain that process and what would need to be done by me?

apizzi69 avatar Jan 04 '23 22:01 apizzi69