Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media_player.vizio: Soundbar does not connect #15253

Closed
sheilnaik opened this issue Jul 1, 2018 · 3 comments
Closed

media_player.vizio: Soundbar does not connect #15253

sheilnaik opened this issue Jul 1, 2018 · 3 comments

Comments

@sheilnaik
Copy link

sheilnaik commented Jul 1, 2018

Home Assistant release with the issue:
0.72.1

Last working Home Assistant release (if known):
Component has never worked

Operating environment (Hass.io/Docker/Windows/etc.):
Hassbian on Raspberry Pi 3B+

Component/platform:
https://www.home-assistant.io/components/media_player.vizio/

Description of problem:
My Vizio soundbar is not connecting to Home Assistant and spits out a Connection refused error on launch (see log output below). It does work with pyvizio from the command line however. If I run pyvizio ip=192.168.1.26 auth=xxxxxx mute it does mute the soundbar. But it does not connect to Home Assistant at all.

I had to change the config files to connect to port 9000 (as recommended per the Smartcast API). Soundbars do work with pyvizio (see this issue on pyvizio's GitHub page) with a slightly different setup process.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

media_player:
  - platform: vizio
    host: 192.168.1.26
    access_token: MyAccessToken

Traceback (if applicable):

2018-07-01 14:55:27 ERROR (Thread-11) [pyvizio.vizio] Failed to execute command: HTTPSConnectionPool(host='192.168.1.224', port=9000): Max retries exceeded with url: /menu_native/dynamic/tv_settings/audio (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6a363810>: Failed to establish a new connection: [Errno 111] Connection refused',))
2018-07-01 14:55:27 ERROR (Thread-11) [homeassistant.components.media_player.vizio] Failed to setup Vizio TV platform, please check if host and API key are correct

Additional information:

@Bahnburner
Copy link
Contributor

The default port in the current version of pyvizio is 7345 (see line 113 of /pyvizio/protocol.py). Since this is hardcoded into pyvizio, and home assistant is simply providing the variables to it, the issue would need to be resolved within pyvizio. As a side note, the previous default port was 9000, but this was updated due to a change in the official smartcast api. I'm curious if your soundbar firmware simply hasn't been updated by Vizio to reflect the updated port.

@sheilnaik
Copy link
Author

sheilnaik commented Jul 3, 2018 via email

@Bahnburner
Copy link
Contributor

Bahnburner commented Jul 3, 2018

Interesting. From the information you posted, it looks like the soundbar doesn't require any sort of access token. I'm wondering if that's what's throwing things off, as home assistant doesn't know not to send the token.

@home-assistant home-assistant locked and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants