roberodin / ha-samsungtv-custom

📺 HomeAssistant - SamsungTV Custom Component
Apache License 2.0
124 stars 178 forks source link

Don't work on UE55J6240 (token error) #69

Open Pahom-ka opened 3 years ago

Pahom-ka commented 3 years ago

My conf `media_player:

Then i got this error

`(venv_3.9.2) homeassistant@orangepiplus2e:/srv/homeassistant/venv_3.9.2$ hass --script check_config Testing configuration at /home/homeassistant/.homeassistant Failed config media_player.samsungtv_custom:

Successful config (partial) media_player.samsungtv_custom: (venv_3.9.2) homeassistant@orangepiplus2e:/srv/homeassistant/venv_3.9.2$ hass --script check_config Testing configuration at /home/homeassistant/.homeassistant Failed config media_player.samsungtv_custom:

Successful config (partial) media_player.samsungtv_custom: ` When i'm delete "token", i got this error

`(venv_3.9.2) homeassistant@orangepiplus2e:/srv/homeassistant/venv_3.9.2$ hass --script check_config Testing configuration at /home/homeassistant/.homeassistant Failed config media_player.samsungtv_custom:

gregb28 commented 3 years ago

I have the same problem! My TV is a UN40H5500. Here is the media_player config:

- platform: samsungtv_custom
  name: greg_tv
  host: !secret gregtv_ip
  port: 8001
  mac: !secret gregtv_mac
  protocol: 'ctl_beta'
  sourcelist: '{"Dish": "KEY_HDMI2", "Chromecast": "KEY_HDMI3"}'
  token: 8ca1bf47e60e0cXXXXXXXXXXXXX6f5d3:2
  id: 05f5e100-0064-1000-bc6f-cXXXXXXXXXa4

Same error message when I check the configuration:

georgeh commented 3 years ago

If you manually apply the changes in #59 to media_player.py you can get the config to load.