core: "Failed to set up Vizio platform" on startup if TV is off
Home Assistant release with the issue: 0.104.0
Last working Home Assistant release (if known): 0.103.6
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io on Raspbian 10
Integration: https://www.home-assistant.io/integrations/vizio/
Description of problem:
If the TV I have connected to Home Assistant via the Vizio SmartCast integration is turned off when I restart Home Assistant, an error is printed and the device becomes unavailable with the restored attribute:
ERROR (SyncWorker_1) [homeassistant.components.vizio.media_player] Failed to set up Vizio platform, please check if host is valid and available and auth token is correct
The host is valid and available, and the auth token is correct. I’ve confirmed this by running the power-get command with pyvizio. I set logger to debug, but nothing of interest seems to appear in the log related to the Vizio integration.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
media_player:
- platform: vizio
host: 10.0.0.50
access_token: !secret living_room_tv_token
Traceback (if applicable):
None
Additional information:
TV power mode is set to “quick start” if that’s relevant. Model E55-E2. Please let me know what I can help test. As stated previously, I have pyvizio installed outside of Home Assistant, so I can run commands with that.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 26 (11 by maintainers)
@trentjw sorry about that! This is a known bug that will get resolved in 0.105. There were significant changes done to the integration for 105 that made it difficult to hotfix this for 104.
Will do, thanks! I was actually interested in sending someone with a Vizio TV a script to get a raw dump of the API responses from your device for a collection of API commands so that I could set up some tests in the
pyviziocomponent (I only have a soundbar), so if I get time to make one, I will send you a message