Git Product home page Git Product logo

Comments (12)

jaruba avatar jaruba commented on August 24, 2024

please remove ur api key, device id and mac from the comment, they are a security issue

from ha-samsungtv-tizen.

madspeed avatar madspeed commented on August 24, 2024

I have parcially removed them

from ha-samsungtv-tizen.

jaruba avatar jaruba commented on August 24, 2024

ok, good. can u check if u have any error? the ST_ keys should work as long as the smartthings api key and device id are correct..

Can you try more ST_ keys? like ST_TV and ST_HDMI1?

from ha-samsungtv-tizen.

madspeed avatar madspeed commented on August 24, 2024

Update for media_player.samsung_tv_remote fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/util/init.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/usr/src/homeassistant/homeassistant/util/init.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/samsungtv_tizen/media_player.py", line 260, in update
smartthings.device_update(self)
File "/config/custom_components/samsungtv_tizen/smartthings.py", line 37, in device_update
data = resp.json()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

from ha-samsungtv-tizen.

jaruba avatar jaruba commented on August 24, 2024

That error says that the api key and/or device id is wrong. Try without quotes, or try generating a new key, and double check if they were copied correctly.

from ha-samsungtv-tizen.

madspeed avatar madspeed commented on August 24, 2024

If i compltely remove api_key: and device_id: list of apps also disappears. If I return them back to config, list of apps returnes to sources list. Therefore I assume that HA gets connection to ST Cloud.
I can switch the apps easely, but HDMI inputs do not switch

from ha-samsungtv-tizen.

madspeed avatar madspeed commented on August 24, 2024

It is also interesting that if I add api key and device list, "KEY_TV" also stops working

from ha-samsungtv-tizen.

jaruba avatar jaruba commented on August 24, 2024

That may be a wrong assumption, I still think ur api key and/or device id may be incorrect.

from ha-samsungtv-tizen.

monsterciattolo avatar monsterciattolo commented on August 24, 2024

I have the same problem.
in my config i generated the token on smartthing website and i use as api_key. is it correct?
I don't understand if api_key and device_id must be between "" or '' or nothing. Any help?

from ha-samsungtv-tizen.

monsterciattolo avatar monsterciattolo commented on August 24, 2024

and finally i get the solution. i used the wrong device_id.
I used the Device Network Id instead device_id (nameid di: in current state)
I find the identificator in smartthing website - my devices - select device name on the first colum - find di: in current states

from ha-samsungtv-tizen.

madspeed avatar madspeed commented on August 24, 2024

and finally i get the solution. i used the wrong device_id.
I used the Device Network Id instead device_id (nameid di: in current state)
I find the identificator in smartthing website - my devices - select device name on the first colum - find di: in current states

Thank you! I had exactly the same problem!

from ha-samsungtv-tizen.

jaruba avatar jaruba commented on August 24, 2024

@madspeed i told you the api key and/or device id were wrong..

from ha-samsungtv-tizen.

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.