raman325 / pyvizio

Python client for Vizio SmartCast
MIT License
110 stars 29 forks source link

Soundbar Connect to Wifi Command #160

Open vwheezy opened 4 months ago

vwheezy commented 4 months ago

Model: SB3821-D6

Is there an obvious way to connect a soundbar to a wifi network using this script?

From what I can understand, after the pairing process is succesful, pyvizio just controls the soundbar via the API, but the client has to be connected to the soundbar's wifi network. My soundbar comes with a "Pair" button that broadcasts this wifi network -- I had to join this network to be able to pair with the soundbar, but I didn't see any join wifi commands in the documentation.

I was able to bypass this because my soundbar comes with an ethernet port that I just connected to my network, but I'd much rather use wifi. Even the fact that the soundbar can broadcast a wifi signal tells me that it can join wifi. I'm also fairly certain that the Vizio SmartCast app can configure the soundbar to join the network, but I don't want to use the app either.

I can help develop this, I just need a push in the right direction. I've never reverse engineered network communications like this. How could I snoop the traffic that comes from the Vizio app and tells the soundbar to connect to wifi?