roberodin/ha-samsungtv-custom

Don't work on UE55J6240 (token error)

Opened this issue · 2 comments

My conf
`media_player:

  • platform: samsungtv_custom
    host: 192.168.0.104
    port: 8002
    mac: cc:b1:1a:be:b3:6b
    sourcelist: '{"RaspberryPi": "KEY_HDMI2", "Chromecast": "KEY_HDMI3"}'
    protocol: ctl_beta
    token: af7071f753960e5c9c1baec56c71e850:2
    id: aceeeed0-fff7-4538-a530-ef1cf96677f8`

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:
- Invalid config for [media_player.samsungtv_custom]: [token] is an invalid option for [media_player.samsungtv_custom]. Check: media_player.samsungtv_custom->token. (See ?, line ?).
- platform: samsungtv_custom
host: 192.168.0.104
id: aceeeed0-fff7-4538-a530-ef1cf96677f8
mac: cc:b1:1a:be:b3:6b
port: 8002
protocol: ctl_beta
sourcelist: {"RaspberryPi": "KEY_HDMI2", "Chromecast": "KEY_HDMI3"}
token: af7071f753960e5c9c1baec56c71e850:2

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:
- Invalid config for [media_player.samsungtv_custom]: [token] is an invalid option for [media_player.samsungtv_custom]. Check: media_player.samsungtv_custom->token. (See ?, line ?).
- platform: samsungtv_custom
host: 192.168.0.104
id: aceeeed0-fff7-4538-a530-ef1cf96677f8
mac: cc:b1:1a:be:b3:6b
port: 8002
protocol: ctl
sourcelist: {"RaspberryPi": "KEY_HDMI2", "Chromecast": "KEY_HDMI3"}
token: af7071f753960e5c9c1baec56c71e850:2

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: - Invalid config for [media_player.samsungtv_custom]: [id] is an invalid option for [media_player.samsungtv_custom]. Check: media_player.samsungtv_custom->id. (See ?, line ?). - platform: samsungtv_custom host: 192.168.0.104 id: aceeeed0-fff7-4538-a530-ef1cf96677f8 mac: cc:b1:1a:be:b3:6b port: 8002 protocol: ctl_beta sourcelist: {"RaspberryPi": "KEY_HDMI2", "Chromecast": "KEY_HDMI3"}

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:

  • Invalid config for [media_player.samsungtv_custom]: [token] is an invalid option for [media_player.samsungtv_custom]. Check: media_player.samsungtv_custom->token. (See ?, line ?)

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