ha-samsungtv-smart icon indicating copy to clipboard operation
ha-samsungtv-smart copied to clipboard

change smartThings generated token from UI

Open lobhater opened this issue 2 years ago • 3 comments

My issue is I can't figure out a way to change the smartThings token on a device "Living Room TV" "modelName":"QN75Q80TAFXZA" after the original setup. I am probably just ignorant of the right way to do it, I promise I tried searching though

Describe the solution you'd like I would like to be able to change the token on a tv from the options menu or wherever the right place for it is. I use ST as an access manager so tokens change from time to time

Describe alternatives you've considered I am more than happy to do it any way it needs to be done

Additional Context: I've attached a screenshot of the setup dialogue for reference. Thank you for the work you've done and considering this

snip

lobhater avatar Feb 16 '23 05:02 lobhater

This is not a common option, normally is not required because this token never expire. Add this value inside options should generate errors and confusion to users. If you really need to change the token, just delete device and reconfigure it.

ollo69 avatar Feb 17 '23 22:02 ollo69

Is there any way I can change it at all? I get my use case is strange and not good to make an option but can I edit it on disk? I have several locations under 1 smartThings account and often don't have physical access to the TV. I'll leave it at this but thanks again

lobhater avatar Feb 18 '23 01:02 lobhater

You can modify the registry file, in the configuration path you go in subfolder .storage and edit the file core.config_entries (the value keys is api_key, but probably will be more simple to just replace old token with new one, I don't think is possible to have equal UUID for other keys). Anyway I do not suggest this approach, it will be more simple just remove and reconfigure the integration. I'm not sure that just replacing this value will be enough. It could be possible that your deviceID in SmartThings is changed.

ollo69 avatar Feb 19 '23 12:02 ollo69