home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.45k stars 30.69k forks source link

Panasonic Viera is not visible after HASS update #4457

Closed wizziLalev closed 7 years ago

wizziLalev commented 7 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.32.4

Python release (python3 --version): 3.4.2

Component/platform: component: media_player platform: panasonic_viera

Description of problem: After updating HASS the component is not visible with following configuration:

media_player viera:
  - platform: panasonic_viera
    host: 192.168.1.169

Following error is added to the log:

16-11-18 23:08:21 homeassistant.loader: Loaded media_player.panasonic_viera from homeassistant.components.media_player.panasonic_viera 16-11-18 23:08:21 homeassistant.components.media_player.panasonic_viera: Panasonic Viera TV is not available at 192.168.1.169:55000: HTTP Error 400: Bad Request 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=media_previous_track> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_on> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_up> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_off> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=clear_playlist> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play_pause> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=media_pause> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_down> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=media_next_track> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=media_stop> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=toggle> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_set> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_mute> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=media_seek> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=select_source> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event service_registered[L]: domain=media_player, service=play_media> 16-11-18 23:08:21 homeassistant.core: Bus:Handling <Event component_loaded[L]: component=media_player>

If used configuration is removed and the discovery component is commented out the device is being shown but without name, also the same error is being added to the log.

Expected: Desired component to be visible and working

arsaboo commented 7 years ago

I am on 0.32.4 and Viera is working for me. Did you try restarting HA? I have noticed that the TV needs to be on when you restart HA, otherwise it does not show up in HA. Here's my config:

media_player:
  - platform: panasonic_viera
    host: 192.168.2.129
    port: 55000
    name: Panasonic Viera TV
wizziLalev commented 7 years ago

@arsaboo I've just try it and you are right! After full system reboot the TV shows up - this is strange because when I try to find the problem initially I've made 2~3 full reboots and the result was always the same. More interesting for me is why the TV is not showing even with "Unknown" status?