Git Product home page Git Product logo

Comments (91)

Aiace88 avatar Aiace88 commented on July 22, 2024

idem, but the TV does not ask me for confirmation

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Hi Aiace,

Try to remove HA from the device list in Config\General\External devices in your TV
Maybe it will ask you for confirmation.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Sorry but is not clear how you generate ST token and seems that there is a little bit confunsion.
Token file generated in component dir have nothink to do with ST token. ST token must be generated connectig to ST web site and following the instruction provided in the main page. Did you follow this guide?

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

Hi Aiace,

Try to remove HA from the device list in Config\General\External devices in your TV
Maybe it will ask you for confirmation.

hi, are you referring to the television menu? there is only my phone between the devices

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Sorry but is not clear how you generate ST token and seems that there is a little bit confunsion.
Token file generated in component dir have nothink to do with ST token. ST token must be generated connectig to ST web site and following the instruction provided in the main page. Did you follow this guide?

Hi, I follow step by step your guide in https://github.com/ollo69/ha-samsungtv-smart/blob/master/Smartthings.md and I have my token.
screenshot

Because it didn't works for me, I tried to reconnect doing some changes like delete token file... Please, forget it.

When I reinstall your component, reboot HA, clear the device list in my TV, and follow all steps, I cant connect (but permission dialog is showed in the TV) and the message "Wrong SmartThings token or TV not registered in SmartThings" is showed.

I tried to make a manual connection editing the configuration.yaml but same result (dialog box in TV, no integration created) without any log information.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Hi Aiace,
Try to remove HA from the device list in Config\General\External devices in your TV
Maybe it will ask you for confirmation.

hi, are you referring to the television menu? there is only my phone between the devices

Yes, on TV. This step works for me, even though the connection is not finished creating.

from ha-samsungtv-smart.

sebasptsch avatar sebasptsch commented on July 22, 2024

I am also having issues with this.
tempsnip

This is what the device looks like under SmartThings. I had to remove and then add it again to have it connected to my account. Now there is less information.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Problem is type. I'm filtering for "Samsung OCF TV".
Was this type associated automatically or you changed something manually? How you associate TV to SmartThings? I think you must do the association using SmartThings app and not from SmartThings site

image

from ha-samsungtv-smart.

sebasptsch avatar sebasptsch commented on July 22, 2024

Yes, I did use the app to associate it. How do you do it on the site?

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Same as Sebastian. Associated by phone app and the Type result is "Placeholder".

I try to edit Type field to "Samsung OCF TV" and "Device Network Id" are required in this edition process.

Searching about ST "Device Network Id" I found:
Device Network Id – this must be unique, but otherwise doesn’t matter. I just used the name of my device, in all caps and one word.

So I try this:
screenshot 2

ha-samsungtv-smart can't connect.
The message showed is: "Unable to connect to this Samsung TV device"

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I think that is not correctly registered. Remove it and register again using the phone app. I have a lot of information associated to my device that here is misssing.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

When I did last change, first I remove the device and re-associate to ST with iPhone app. All fields are the same at the first association.

This is my Device info after change to "Samsung OCF TV" Type

screenshot 3

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

This are correct information! In this way should work also with the control

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Do you think that my "Device Network Id" is right?
Or maybe i cant connect because "Device Network Id – this must be unique, but otherwise doesn’t matter. I just used the name of my device, in all caps and one word." is not correct?

When you setup your own TV, did you need to enter "Device Network Id"?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

No, I don't use this, but I don't now how SmartThings use this. I think that registration should be handled by the SmartThings apps and not manually by you. I suggest to remove this device and try to register agin, than use the portal only to check that is correctly registerd. I have a UUID in the field network id for my TV.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

OK, I tried this:

  1. Remove device list in TV
  2. Remove TV in my ST account
  3. Connect my TV to ST using my phone app
  4. The new TV in my ST account have "placeholder" in Type field and no "Device Network Id" is showed.

screenshot

5. Edit device manually:

Type -> "Samsung OCF TV"
Device Network Id -> "samsung_qled_55"

  1. Now Device Info are more detailed in the ST page
  2. Delete token and generate new one in Samsung account.
  3. In HA, create new integration SamsungTV Smart
  4. Grant access in TV side

Same result: Wrong SmartThings token or TV not registered in SmartThings

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I do not understand why your TV is created with type "placeholder", I think that something is wrong in this step. May be is a problem on the app, or may be you are not using the correct procedure. TV should be automatically detected by the phone APP, is this occuring? Is your phone connected to the same wi-fi when you register the TV?

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Yes, I just find a TV and the app find it. TV and phone are in the same WiFi.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Maybe this is a clue:

On TV, when select "[Home Assistant] QLED 55" in remote device list -> show details, I see available services for this device and only shows one: play media from mobile device.

Perhaps must have a "remote control" or something similar, no?

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

i have the same problem with my q70, if i register in home assistant without the api it's ok, but if i use the api i have the same problem. my tv is type placeholder.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Maybe this is a clue:

On TV, when select "[Home Assistant] QLED 55" in remote device list -> show details, I see available services for this device and only shows one: play media from mobile device.

Perhaps must have a "remote control" or something similar, no?

What you see in the TV is only related to local connection and have nothing to do with SmartThings. I'm quite sure that the problem is how TV is registered in SmartThings. My TV show all information and type is correct without the need of manual change on the web site.

from ha-samsungtv-smart.

Krocko avatar Krocko commented on July 22, 2024

For me this integration was working.
Since yesterday I don’t get the states from smartthings. I tried to re add this integration and get the same error.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I think they are doing something on their server. I have the list of input with duplicated values, never see this before:

image

I just fixed the code in the component because with this broken list was creating wrong source list!!
Try to configuring manually on SmartThings the correct TV Type, but in "Device Network ID" put a generated uuid (you can generate here), maybe it work.
From my side SmartThings still working....

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

I have duplicated inputs too.

I generated uuid for Device Network Id and edited the configuration.yaml file for manual config. After reboot I have this:
Logger: custom_components.samsungtv_smart.config_flow
Source: custom_components/samsungtv_smart/config_flow.py:149
First occurred: 6:37:13 PM (1 occurrences)
Last logged: 6:37:13 PM

Error during setup of host 192.168.0.12 using configuration.yaml info. Reason: not_successful

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I do not understand what you do in configuration.yaml. Anyway it is better to do first configuration using web interface, then you can use configuration.yaml for additional value (like app and source list)

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

image

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

This is my configuration.yaml

samsungtv_smart:
  - host: 192.168.0.12
    name: Samsung QLED
    api_key: <my generated api key>

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

And this is my config in ST:
screenshot

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

And this is my config in ST:
screenshot

but the device network id in my situation is not displayed...

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Comment this and configure using web interface. After TV is configured you don't need to specify API_KEY or Name because are saved in the registry. You must only set the key (host) and the additional value (source_list, app_list, etc)

samsungtv_smart:
  - host: 192.168.0.12
    source_list: <your source list, if you want>
    app_list: <your app list, if you want>
    ...

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

i remove my tv from my profile smartthings and i reconfigure from app android, but i dont see the network id....

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Network ID and device type can be configured from web site: https://account.smartthings.com/login

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Comment this and configure using web interface. After TV is configured you don't need to specify API_KEY or Name because are saved in the registry. You must only set the key (host) and the additional value (source_list, app_list, etc)

samsungtv_smart:
  - host: 192.168.0.12
    source_list: <your source list, if you want>
    app_list: <your app list, if you want>
    ...

Sorry, I'm lost. Do you say to first include api_key, and later erase it?

Network ID and device type can be configured from web site: https://account.smartthings.com/login

Really? Great! Where can I get it? I don't see where

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

Network ID and device type can be configured from web site: https://account.smartthings.com/login

yes, i have modify the type in this site...but the network id is not present....

sorry, you are italian?

Yes, I'm Italian, but why you say that "network id" is not present, is in your piture!!

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Sorry, I'm lost. Do you say to first include api_key, and later erase it?

I'm saying to use Home Assistant web interface to configure the component and not configuration.yaml!! Settings -> Integration and + button.

Configuration.yaml will be used after to add additional info.

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

Network ID and device type can be configured from web site: https://account.smartthings.com/login

yes, i have modify the type in this site...but the network id is not present....

sorry, you are italian?

Yes, I'm Italian, but why you say that "network id" is not present, is in your piture!!

no, i quote the post of theiamania.
this is my configuration.
i test to insert the token in the network id, i see the information of tv, but the configuration is not ok
2020-04-09 19_13_18-Edit Device

2020-04-09 19_15_39-Impostazioni - Home Assistant

p.s. sono italiano anch'io.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Sorry, I'm lost. Do you say to first include api_key, and later erase it?

I'm saying to use Home Assistant web interface to configure the component and not configuration.yaml!! Settings -> Integration and + button.

Configuration.yaml will be used after to add additional info.

Yes, like in the readme. Always I use this method, but I tried manual way too.
Thanks for add this featured!

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Sorry, I prefer not use italian because this is a public post.
In the field "Device Network ID" you must put a generated UUID form here: https://www.uuidgenerator.net/ and not your SmartThings token. The SmartThings token you must use after, during component configuration.
I don't know if this work, but is the only suggestion that I can give.
I repeat that normally this values should be automatically generated during TV registration, so I think that something is not working on Samsung side.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

I tried to get a Device Network Id in the https://account.smartthings.com/login but I have only this:

`metadata {
definition (name: "QLED", namespace: "HA", author: "theiamania", cstHandler: true) {
capability "Media Playback"
capability "Media Playback Repeat"
capability "Media Playback Shuffle"
capability "Media Presets"
capability "Media Track Control"
capability "Samsung TV"
capability "TV"
capability "Tv Channel"
}

simulator {
	// TODO: define status and reply messages here
}

tiles {
	// TODO: define your main and details tiles here
}

}

// parse events into attributes
def parse(String description) {
log.debug "Parsing '${description}'"
// TODO: handle 'playbackStatus' attribute
// TODO: handle 'supportedPlaybackCommands' attribute
// TODO: handle 'playbackRepeatMode' attribute
// TODO: handle 'playbackShuffle' attribute
// TODO: handle 'presets' attribute
// TODO: handle 'supportedTrackControlCommands' attribute
// TODO: handle 'volume' attribute
// TODO: handle 'mute' attribute
// TODO: handle 'pictureMode' attribute
// TODO: handle 'soundMode' attribute
// TODO: handle 'switch' attribute
// TODO: handle 'messageButton' attribute
// TODO: handle 'volume' attribute
// TODO: handle 'channel' attribute
// TODO: handle 'power' attribute
// TODO: handle 'picture' attribute
// TODO: handle 'sound' attribute
// TODO: handle 'movieMode' attribute
// TODO: handle 'tvChannel' attribute
// TODO: handle 'tvChannelName' attribute

}

// handle commands
def setPlaybackStatus() {
log.debug "Executing 'setPlaybackStatus'"
// TODO: handle 'setPlaybackStatus' command
}

def play() {
log.debug "Executing 'play'"
// TODO: handle 'play' command
}

def pause() {
log.debug "Executing 'pause'"
// TODO: handle 'pause' command
}

def stop() {
log.debug "Executing 'stop'"
// TODO: handle 'stop' command
}

def fastForward() {
log.debug "Executing 'fastForward'"
// TODO: handle 'fastForward' command
}

def rewind() {
log.debug "Executing 'rewind'"
// TODO: handle 'rewind' command
}

def setPlaybackRepeatMode() {
log.debug "Executing 'setPlaybackRepeatMode'"
// TODO: handle 'setPlaybackRepeatMode' command
}

def setPlaybackShuffle() {
log.debug "Executing 'setPlaybackShuffle'"
// TODO: handle 'setPlaybackShuffle' command
}

def playPreset() {
log.debug "Executing 'playPreset'"
// TODO: handle 'playPreset' command
}

def nextTrack() {
log.debug "Executing 'nextTrack'"
// TODO: handle 'nextTrack' command
}

def previousTrack() {
log.debug "Executing 'previousTrack'"
// TODO: handle 'previousTrack' command
}

def volumeUp() {
log.debug "Executing 'volumeUp'"
// TODO: handle 'volumeUp' command
}

def volumeDown() {
log.debug "Executing 'volumeDown'"
// TODO: handle 'volumeDown' command
}

def setVolume() {
log.debug "Executing 'setVolume'"
// TODO: handle 'setVolume' command
}

def mute() {
log.debug "Executing 'mute'"
// TODO: handle 'mute' command
}

def unmute() {
log.debug "Executing 'unmute'"
// TODO: handle 'unmute' command
}

def setPictureMode() {
log.debug "Executing 'setPictureMode'"
// TODO: handle 'setPictureMode' command
}

def setSoundMode() {
log.debug "Executing 'setSoundMode'"
// TODO: handle 'setSoundMode' command
}

def on() {
log.debug "Executing 'on'"
// TODO: handle 'on' command
}

def off() {
log.debug "Executing 'off'"
// TODO: handle 'off' command
}

def showMessage() {
log.debug "Executing 'showMessage'"
// TODO: handle 'showMessage' command
}

def volumeUp() {
log.debug "Executing 'volumeUp'"
// TODO: handle 'volumeUp' command
}

def volumeDown() {
log.debug "Executing 'volumeDown'"
// TODO: handle 'volumeDown' command
}

def channelUp() {
log.debug "Executing 'channelUp'"
// TODO: handle 'channelUp' command
}

def channelDown() {
log.debug "Executing 'channelDown'"
// TODO: handle 'channelDown' command
}

def setTvChannel() {
log.debug "Executing 'setTvChannel'"
// TODO: handle 'setTvChannel' command
}

def channelUp() {
log.debug "Executing 'channelUp'"
// TODO: handle 'channelUp' command
}

def channelDown() {
log.debug "Executing 'channelDown'"
// TODO: handle 'channelDown' command
}

def setTvChannelName() {
log.debug "Executing 'setTvChannelName'"
// TODO: handle 'setTvChannelName' command
}`

I don't see any Device Network Id, but i have no idea how this develop works

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

????
I was just saying that network id must be configured on the web site in the device setting and not from the phone app!!

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

Sorry, I prefer not use italian because this is a public post.
In the field "Device Network ID" you must put a generated UUID form here: https://www.uuidgenerator.net/ and not your SmartThings token. The SmartThings token you must use after, during component configuration.
I don't know if this work, but is the only suggestion that I can give.
I repeat that normally this values should be automatically generated during TV registration, so I think that something is not working on Samsung side.

ok, i have generate the uuid from this site, i insert in the site samsung, and select type: Samsung OCF TV

now i have many information from the tv, mac address, the channel, ecc....

i return in home assistant, insert the ip, name and token, but i have the same error.
2020-04-09 19_36_49-Impostazioni - Home Assistant

when i generate the token, you select the all options?

2020-04-09 19_37_32-SmartThings  Add a little smartness to your things

thanks for the support!

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

No idea.
Just another tip: are sure that you set all correct permission to the generated token? Eventualy try to generate a new one and follow very well all the instruction!!
Later I will do some test reconfiguring my TV, but for me the problem is on samsung side. Network Id should be automatically generated and device type should assigned correctly during phone configuration.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Token name you can put any...

image

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

No idea.
Just another tip: are sure that you set all correct permission to the generated token? Eventualy try to generate a new one and follow very well all the instruction!!
Later I will do some test reconfiguring my TV, but for me the problem is on samsung side. Network Id should be automatically generated and device type should assigned correctly during phone configuration.

yes, i create a token here
2020-04-09 19_57_43-SmartThings  Add a little smartness to your things

and select all
2020-04-09 19_58_16-SmartThings  Add a little smartness to your things

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Finally I can confirm that there are issues on SmartThings side.
The reason for the error during configuration is related to a call to SmartThings API that is not returning anymore the list of devices. The point is that this is a documented API, so this issue should not occur.
Also there are many states that are not updated anymore on the SmartThings server device.
I hope that this issue will be solved shortly, for now I put a warning at the beginning of the readme files.

Please on next days try again to configure your TV with ST and report here if it works again.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Thanks ollo, for your work, time and patience.

I will try to connect again in a few days and I will inform you when done.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I just create a new release with a work-around for this issue.

Please give me your feed-back.

from ha-samsungtv-smart.

Krocko avatar Krocko commented on July 22, 2024

I got the error Wrong SmartThings token with this new version. I also tried a new generated token.

from ha-samsungtv-smart.

Krocko avatar Krocko commented on July 22, 2024

I generated the new device id with the tool.
After update the device on the smartthings site with this id I have seen, what under "current states" the di and pi are different. But this id's are the right ones.

Edit: and with this id, your new version is working.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Not really clear what you do, but fine to hear that is working...

from ha-samsungtv-smart.

Krocko avatar Krocko commented on July 22, 2024

If you add a new device in the smartthings app, you got the entry "placeholder" as device. If you edit this device on the smartthings website and add the right tv model and the self generated uuid from the generating website, this network id is different from this too values.
image

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Yes, but network id have nothing to do with configuration. I need Device ID that is the property "di".
Just another question: is your TV logged to SmartThings? Because my suspect is that is created as "placeholder" because you don't configure the connection on the TV!!!

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

It's work with the new instruction!

from ha-samsungtv-smart.

Krocko avatar Krocko commented on July 22, 2024

Just another question: is your TV logged to SmartThings? Because my suspect is that is created as "placeholder" because you don't configure the connection on the TV!!!

I think so the tv was showing the pin that you must enter in the smartthings app. Also I can control the tv with the smartthings app.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

You should check on the TV menu. There is an aption to login the TV.

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

It's work for me too. Thank you ollo!

from ha-samsungtv-smart.

Krocko avatar Krocko commented on July 22, 2024

You should check on the TV menu. There is an aption to login the TV.

Do you mean the Samsung account login?
The tv is logged in in my Samsung account.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I should have found the cause of the original problem. With latest version deviceID should be automatically detected again. Issue was that response from SmartThings is changed!!!!

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

I should have found the cause of the original problem. With latest version deviceID should be automatically detected again. Issue was that response from SmartThings is changed!!!!

ok, you think it's better to delete everything and redo it, or if it works with the manual insertion procedure leave it and not touch?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Automatic dectection do the same thing that you did manually, the saved configuration in the registry at the end is the same.
You can update the component and leave the configuration as is.

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

ok, i update all.

now in logs i have:

2020-04-11 18:05:09 ERROR (MainThread) [custom_components.samsungtv_smart.media_player] SamsungTV Smart - Error refreshing from SmartThings
2020-04-11 18:42:39 WARNING (MainThread) [custom_components.samsungtv_smart.media_player] Retrieving applications list from TV. It is suggested to define a manual app_list (see component documentation)!!!
2020-04-11 18:42:49 ERROR (MainThread) [custom_components.samsungtv_smart.media_player] Error retrieving application list from TV. Method will be retried.
2020-04-11 18:42:49 WARNING (MainThread) [homeassistant.helpers.entity] Updating state for media_player.q70 (<class 'custom_components.samsungtv_smart.media_player.SamsungTVDevice'>) took 10.068 seconds. Please report it to the custom component author.

i see in the site when i manage the network id,ecc...
(https://graph-eu01-euwest1.api.smartthings.com/)
the info channel not update, last update is yesterday 21.45

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

This logs I think is related to network issue. This days network is overloaded. I didn't any change that can affect this error! I suppose they will dissapear when network works fine.
I also suppose that, error apart, the component is working, correct? For the update on the site, not always reflect the local changes...

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

hi, i update the component.

when i restart ha. i have this error:

2020-04-16 11:01:52 WARNING (MainThread) [custom_components.samsungtv_smart.media_player] Retrieving applications list from TV. It is suggested to define a manual app_list (see component documentation)!!!
2020-04-16 11:01:55 ERROR (MainThread) [custom_components.samsungtv_smart.media_player] Error retrieving application list from TV. Method will be retried.

and the time to reboot ha is too high.

at this time, the tv is off.
is it better to configure the list of apps by hand?
2020-04-16 11_16_51-● configuration yaml - Visual Studio Code

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Yes, automatic generation of app list not always work and is time consuming. As you read in the warning you should define your app list with configuration.yaml. Read documentation for details.

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

ok, I'm doing, I don't understand from the documentation if I have to write all the various app and source lists below

not update the apps (netflix eccc) in the smarthings portal...

it's ok in thi way?
2020-04-16 12_03_41-configuration yaml - Visual Studio Code

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

i reboot ha with the configuration posted some minutes ago.
and now the entity is not avalaible and have this in the logs:

2020-04-16 12_14_40-home-assistant log - Visual Studio Code

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

You should just put your app_list inside ''.
Example:

app_list: '{"Netflix": "11101200001",  "Infinity": "3201609010702" }'

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

You don't write your app list properly. Post it here so that I ca check.

ok, I fixed, there were no quotes.
now i have no errors, and it seems to change apps perfectly.

an error: if I turn on the TV the mediaplayer signals the channel correctly. but if I go to an app and then press on digitaltv, it no longer reports it.

2020-04-16 12_35_34-Panoramica - Home Assistant

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

You should check what happen on smartthings web site for your device.
Sometimes do not update the status.

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

You should check what happen on smartthings web site for your device.
Sometimes do not update the status.

in the smarthings site it's ok...
2020-04-16 12_51_14-Show Device

maybe it's a limit of the custom media player?
try to set up source lists too?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

No, I don't think this is the problem.
But what happen on the device tvChannelName when you select an app?

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

No, I don't think this is the problem.
But what happen on the device tvChannelName when you select an app?

it's ok.
now in this situation, the change of channel not work, but if I turn the TV off and on again, the channels appear on the mediaplayer and the channel change works

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

update: in the site smarthings not update the channel...but in the app android yes.
remove the tv from smarthings?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

If you want to clean-up the situation, do the following in this exact order:

  • remove TV from the phone APP
  • remove TV from HA
  • logout TV from smartThings (from TV menu)
  • delete TV device from smartThings web site (if still there)
  • login TV to smartThings (from TV menu)
  • add TV to your phone app (and set your pref as location, name etc)
  • generate a new SmartThings token
  • add TV to HomeAssistant with the new token
  • check SmartThings site

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

If you want to clean-up the situation, do the following in this exact order:

  • remove TV from the phone APP
  • remove TV from HA
  • logout TV from smartThings (from TV menu)
  • delete TV device from smartThings web site (if still there)
  • login TV to smartThings (from TV menu)
  • add TV to your phone app (and set your pref as location, name etc)
  • generate a new SmartThings token
  • add TV to HomeAssistant with the new token
  • check SmartThings site

ok, now from the site smarthings it's ok.
the problem is only for the hdmi and tv.
i configure source_list: '{"TV": "KEY_TV", "SHIELD": "KEY_HDMI"}'
but not working...and not logs...

p.s. can you have telegram?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

For source control you must use ST key, normal key do not work.
so use this: '{"TV": "ST_TV", "SHIELD": "ST_HDMI1"}'

Anyway I did some test, what I discover is that not always channel info in SmartThings is refreshed. To have the refresh of the channel working you have to open 1 time, after powering on the TV, the SmartThing apps and look for the current source.
This happen from the last update that also broke the TV discovery, so it seems that SmartThings API is in development and something else can still change...
I searched throught documentation but I found nothing to solve this issue.

from ha-samsungtv-smart.

skynet01 avatar skynet01 commented on July 22, 2024

If you want to clean-up the situation, do the following in this exact order:

* remove TV from the phone APP

* remove TV from HA

* **logout TV from smartThings (from TV menu)**

* delete TV device from smartThings web site (if still there)

* **login TV to smartThings (from TV menu)**

* add TV to your phone app (and set your pref as location, name etc)

* generate a new SmartThings token

* add TV to HomeAssistant with the new token

* check SmartThings site

I've been having exact same problem here with the new The Frame 2020 tv. I did those steps and tv still registers as "Placeholder" with blank network id.

  • logged in on the tv, authenticated the app using pin etc.

  • I generate the network-id from your suggested link (i tried both v1 and v4 option).

  • Switching tv from placeholder to Samsung OCF TV populates all the fields and shows all details correctly

from ha-samsungtv-smart.

Krocko avatar Krocko commented on July 22, 2024

@ollo69 Maybe you could ask there https://community.smartthings.com

Also I think there are more problems with the api at the moment.

  • The sources are only displayed with HDMI1 , HDMI2 ... and not with the given names.
  • The active app is not displeyed. It is displayed the last selected source.
  • If I change from a tv channel to an source, the last active tv channel is still displeyed.

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

If you want to clean-up the situation, do the following in this exact order:

* remove TV from the phone APP

* remove TV from HA

* **logout TV from smartThings (from TV menu)**

* delete TV device from smartThings web site (if still there)

* **login TV to smartThings (from TV menu)**

* add TV to your phone app (and set your pref as location, name etc)

* generate a new SmartThings token

* add TV to HomeAssistant with the new token

* check SmartThings site

I've been having exact same problem here with the new The Frame 2020 tv. I did those steps and tv still registers as "Placeholder" with blank network id.

  • logged in on the tv, authenticated the app using pin etc.
  • I generate the network-id from your suggested link (i tried both v1 and v4 option).
  • Switching tv from placeholder to Samsung OCF TV populates all the fields and shows all details correctly

@ollo69
yes, the same with my q70 2019.

but now, a day later, the problem has come back on the smarthings website, which always reports as a YouTube channel. while the tv is on a tv channel.
Not update the status, yesterday.
I had solved it by removing it and putting it back in my smarthings profile ... but it is absurd to think of doing it continuously.

2020-04-17 09_23_22-Show Device
someone have this problem?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Keep in mind that this approach to SmartThings is not the official way to interact with device, have to be considered a work-aroud. In fact we are using the TV device that create the SmartThings phone app, and from some time the device is not created anymore as TV but as "place-holder". Leaving aside the fact that Samsung itself has its problems managing TVs remotely (see Alexa skill), the correct approach would be to create an app which in turn creates a device with which to interact, but to do this HomeAssistant should be connected in Https and would greatly limit the use of the component. All I can do now is to eventually exclude the channel check via SmartThings with an option, everything else would require a more in-depth analysis of the whole SmartThings world. Any suggestions are still welcome...

from ha-samsungtv-smart.

cpuks avatar cpuks commented on July 22, 2024

The only problem I have:
SamsungTV Smart - Error refreshing from SmartThings

Althrough component works fine - I can mute/unmute change vol and call different apps, and well twice / hour I've got that error - I think it has to be that way.

@ollo69 does your HA shows that in logs too?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Yes, it happen, but this log is too aggressive and in many case unusefull. Just occur when network fail.
I have days when never occurs and days with many instance of the message,
I will manage in better way on next release

from ha-samsungtv-smart.

Theiamania avatar Theiamania commented on July 22, 2024

Same problems here.

I will manage in better way on next release

So have you already found a better way to do it? Are you developing it already?

from ha-samsungtv-smart.

Aiace88 avatar Aiace88 commented on July 22, 2024

idem, i have many logs.

[custom_components.samsungtv_smart.media_player] SamsungTV Smart - Error refreshing from SmartThings

from ha-samsungtv-smart.

cpuks avatar cpuks commented on July 22, 2024

Cool, glad to hear as I was chasing some problems today when HA became unresponsive on VM machine and looking into all logs now. Good work - cheers for that component!

from ha-samsungtv-smart.

skynet01 avatar skynet01 commented on July 22, 2024

So is there a definitive set up guide or things are still broken on samsung's end? :)

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

So is there a definitive set up guide or things are still broken on samsung's end? :)

What do you mean? Did you istall the component? Is it working for you?
The only current issue is that not always channel names / numbers are updated, but, as I know, the component is working.
The only alternative option SmartThings side is to implement comunication as is implemented for HA SmartThings component, creating a dedicated SmartThings app. But this require that HA is published in the internet with HTTPS protocol and will limit a lot usage of the component, so I don't consider this a valid alternative.

from ha-samsungtv-smart.

skynet01 avatar skynet01 commented on July 22, 2024

Looks like the issue was indeed with the Smarthings API. I tried it again today and everything worked right away from the first try. I checked the API and it looked like the tv entity was populated correctly on Samsung site this time as well. We can probably close this ticket as it was their fault... On another note ... for some reason, this particular new tv doesn't update state to Smartthings often. Hopefully, they will fix this at some point...
thanks again for your support!

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I don't close this issue, because I'm really not covinced by the use of SmartThings and I need some feedback to better understand
I deleted and recreated my TV on SmartThings apps and now TVChannel are not updating anymore.
Many user are reporting the same, so in last component version I disabled the use of channel info (can be enabled again using the "option" button in integration page).
I'm not understanding if this is really a SmartThing issue or what really Samsung want to do.
May be different TV model have different behavior.
Pls report here your feed-back to identify the best way to use SmartThings

from ha-samsungtv-smart.

rudizl avatar rudizl commented on July 22, 2024

The good news is that a few days ago the TV channel info started to update and shows the current channel.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Closing this issue due to inactivity from long time.

from ha-samsungtv-smart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.