Giter Club home page Giter Club logo

Comments (7)

eclair4151 avatar eclair4151 commented on September 13, 2024

Yea i never really got around to making an official way to do this. There is a slight workaround for now but i haven't been able to test as i dont have a H or J series TV, and i didn't want to push untested code. If you want to give it a try let me know.

my script relies on samsungctl. i have my own fork that adds support for the J series.
https://github.com/eclair4151/samsungctl

if you want you can try setting up my fork, as per the description. Then inside this library point all instance of samsungctl to my forked version.

Then inside https://github.com/eclair4151/AlexaControlledSamsungTV/blob/master/helpers/mqtt_server.py
modify
def get_config(tv_mac_address):
and
def power_off_command(tv_mac_address):

to return the correct config for your TV.

its pretty cumbersome for now, so sorry about that

from alexacontrolledsamsungtv.

knobtviker avatar knobtviker commented on September 13, 2024

Not a problem, I followed your instruction properly.
Injected your samsungctl fork. Neat work.
Got the TV recognized and got all data about it.
Installed your skill on my Echo.
Login, register, and start server...

And on every command I get ERROR: 12602.
When using samsungctl directly, I get the same error on executing commands.
Alexa sends out a command, but the TV refuses it and returns an error 12602.

Any suggestions?

I did modify get_config to reflect a JSON with session_key and session_id, port 8000, method = "pin".

I also had to modify
https://github.com/eclair4151/AlexaControlledSamsungTV/blob/master/helpers/ssdp.py

to remove an if else about J series. Left alone the H since I can't test either.

from alexacontrolledsamsungtv.

eclair4151 avatar eclair4151 commented on September 13, 2024

Hmm what is your tv model? it might be an unsupported model

from alexacontrolledsamsungtv.

knobtviker avatar knobtviker commented on September 13, 2024

Scan returns name, model, IP, and MAC. All properly filled and correct, I checked.
Model is UE48JU6400, hence the J series.

from alexacontrolledsamsungtv.

agerdin avatar agerdin commented on September 13, 2024

Hi eclair4151, any chance that you could write me some more detailed "dummy" instructions on how to install this variant for the J-series. The instruction I do not quite follow is this:

if you want you can try setting up my fork, as per the description. Then inside this library point all instance of samsungctl to my forked version.

Then inside https://github.com/eclair4151/AlexaControlledSamsungTV/blob/master/helpers/mqtt_server.py
modify
def get_config(tv_mac_address):
and
def power_off_command(tv_mac_address):

Any advice is appreciated.

\Anders

from alexacontrolledsamsungtv.

eclair4151 avatar eclair4151 commented on September 13, 2024

I have not tested or really looked at this that much but someone is working on bringing H and J series support to this repo:

https://github.com/bencarlisle15/AlexaControlledSamsungTV

from alexacontrolledsamsungtv.

bencarlisle15 avatar bencarlisle15 commented on September 13, 2024

If anyone is still trying to find a way to connect an H or J Series, they can look at the repository I made by cloning this one and adding https://github.com/eclair4151/SmartCrypto to it. It works on my TV but there's definitely room for improvement. The fork is located at https://github.com/bencarlisle15/AlexaControlledSamsungTV/.

from alexacontrolledsamsungtv.

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.