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

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

Open
Pahom-ka opened this issue Mar 10, 2021 · 2 comments
Open

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

Pahom-ka opened this issue Mar 10, 2021 · 2 comments

Comments

@Pahom-ka
Copy link

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"}

@gregb28
Copy link

gregb28 commented Mar 13, 2021

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 ?)

@georgeh
Copy link

georgeh commented Apr 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants