sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
39 stars 24 forks source link

turn_on_action not working #48

Closed vlumikero closed 3 years ago

vlumikero commented 3 years ago

Hi,

I can't get the turn_on_action to work. I looked at your code and I can't figure out why it wouldn't.

Here's my config:

media_player:
  - platform: samsungtv_encrypted
    host: 192.168.1.177
    token: xxx
    sessionid: 1
    port: 8080
    turn_on_action:
      service: switch.turn_on
      entity_id: switch.samsung_tv

And this is the error message:

Invalid config for [media_player.samsungtv_encrypted]: [turn_on_action] is an invalid option for [media_player.samsungtv_encrypted]. Check: media_player.samsungtv_encrypted->turn_on_action.
nashant commented 3 years ago

Which branch are you on? I don't think this has made it in to a release yet, you'll need to be on master

vlumikero commented 3 years ago

I used the one in HACS.

nashant commented 3 years ago

If you click to reinstall and then click on where it says '2.6' you get a drop down like below. Choose master image

sermayoral commented 3 years ago

@vlumikero sorry i was in a holiday trip.

I hope to release a new version in this week. You could install the master version as @nashant said, or you can wait for this new release 😊