Jump to content

Welcome, Guest!

Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for?
   Sign In    Sign Up

Become a RedCarpet Club Member Today!

   Join Now
  • 0
Sign in to follow this  
Rippmaster

Tellstick support?

Question

Is there anyway to get tellstick to enable or disable any connected devices? maby via a cvaction in some way? So that they could work in tandem with the sequence (cinemavision sequence)

 

any help and pointers would be awsome!

Edited by Rippmaster

Share this post


Link to post
Share on other sites

22 answers to this question

Recommended Posts

  • 0

Hello Rippmaster,

I have not had a chance to try the tellstick.  However it does look like it has an API.  With that said you can use a cvaction file to send commands to the API to control what you are trying to do.  See this post here on the Kodi forums of how you can use the action file to post data to the API.  Let us know how you get along with it!

http://forum.kodi.tv/showthread.php?tid=231881&pid=2050439#pid2050439

Share this post


Link to post
Share on other sites
  • 0

Hello Rippmaster,

I have not had a chance to try the tellstick.  However it does look like it has an API.  With that said you can use a cvaction file to send commands to the API to control what you are trying to do.  See this post here on the Kodi forums of how you can use the action file to post data to the API.  Let us know how you get along with it!

http://forum.kodi.tv/showthread.php?tid=231881&pid=2050439#pid2050439

I got the program "terra" for kodi working fine for single movies.

 

Problem with cinemavision is that between each movie in a long sequence, it lights , lights out , on  and on.

(ive set it to "lights out" on play, and to light on pause and stop. )  then its a bit problematic when there is 10 videos in a sequence.

 

it works alright for 1 simple movie though.

 

any ideas or thoughts here?

Share this post


Link to post
Share on other sites
  • 0

I got the program "terra" for kodi working fine for single movies.

 

Problem with cinemavision is that between each movie in a long sequence, it lights , lights out , on  and on.

(ive set it to "lights out" on play, and to light on pause and stop. )  then its a bit problematic when there is 10 videos in a sequence.

 

it works alright for 1 simple movie though.

 

any ideas or thoughts here?

As far as Terra goes, I have no idea if that add-on will allow you to send commands to it the way that CV is capable of sending commands via JSON, PHP, etc. What I would recommend doing is digging through the Tellstick API documentation, and finding ways to control it directly through CinemaVision. What you're seeing makes perfect sense when you're talking about an add-on that looks for a movie that's playing and runs some commands to modify the lights. CinemaVision doesn't treat an entire sequence as a single video (I don't think it's even possible to do that) and each video that's played by Kodi would trigger what you're seeing because of that. The same thing was happening with the Hue add-on, and I believe most of our users disable it when their sequence starts and control their HA solution via CinemaVision directly.

The other solution is to have the authors of the Terra add-on write in support for CinemaVision using the properties that we've set up to identify when to actually kick off the lighting commands, instead of triggering for each video played in Kodi.

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

ok thx. im no koder so i cant really try the api. the terra app is also old and not supported therefore contacting the dev wont do anything. 

.what i will doo thoug is to only have the play option to close the lights, skipping pause and stop automations. at least then i can get main none hue lightsrips and certain other electronics to at least close when i hit the play button. not optimal but really the only way to go in my case

 

tip for getting terra  to work (worked for me)

- manualy extract the zipfile into addons (app is to old to install directly from zipfile)

- change version fr 0.2 to 0.2.1 in the xml file 

- configure the app within kodi (you must switch between dimmer and switch within kodi once per unit

 

 

Edited by Rippmaster

Share this post


Link to post
Share on other sites
  • 0

ok thx. im no koder so i cant really try the api. the terra app is also old and not supported therefore contacting the dev wont do anything. 

.what i will doo thoug is to only have the play option to close the lights, skipping pause and stop automations. at least then i can get main none hue lightsrips and certain other electronics to at least close when i hit the play button. not optimal but really the only way to go in my case

 

tip for getting terra  to work (worked for me)

- manualy extract the zipfile into addons (app is to old to install directly from zipfile)

- change version fr 0.2 to 0.2.1 in the xml file 

- configure the app within kodi (you must switch between dimmer and switch within kodi once per unit

 

 

That's the beauty of the way we use action files... you don't have to know how to code. Take a look at our examples. Using the API documentation and the post about home automation in the Kodi thread, you should be able to piece it together. If you can sign up and give us the documentation, we might be able to help put something together.

Share this post


Link to post
Share on other sites
  • 0

That's the beauty of the way we use action files... you don't have to know how to code. Take a look at our examples. Using the API documentation and the post about home automation in the Kodi thread, you should be able to piece it together. If you can sign up and give us the documentation, we might be able to help put something together.

Yeah i found the API here

 

https://api.telldus.com/documentation/phpLive

 

https://api.telldus.com/documentation/

 

But in all fairness. I kinda get the grip of how the hue API works. But how the tellstick api works, just looking at it gives me headaces :/

Do you guys see anything that one could use?

Share this post


Link to post
Share on other sites
  • 0

Yeah i found the API here

 

https://api.telldus.com/documentation/phpLive

 

https://api.telldus.com/documentation/

 

But in all fairness. I kinda get the grip of how the hue API works. But how the tellstick api works, just looking at it gives me headaces :/

Do you guys see anything that one could use?

Telldus has awful documentation, and a not very user friendly API, to be honest. I did find this, which might help. It's a Java REST API for TellSticks. Instead of the Telldus over-complicated API, it allows you to do HTTP requests to tell your TellStick how to behave, but it does require a Linux box with the Java REST API installed.

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

it sounds like a nightmare. im ok with my setup as it is. a linux box with java rest api sounds like a hell of a hazzle for a noob. 

 

thx for taking a look at it though :)

Share this post


Link to post
Share on other sites
  • 0

Hey Ripp, I'm going to look at digging into this API to see if I can figure out how we can get it to work possibly.  I unfortuneatly do not have a tellstick to test it but I'll see if I can find anything by looking at the documentation.  quick glance it does look really bad just like Rag said.  Also as Rag said get yourself some Hue bulbs you will NOT be disappointed.  Also the OpenHAB is very very sweet, If you do get these setup or need help feel free to reach out to me.  I've set this up and I've created the write ups on how you can control the lights and how to dim them.  

Share this post


Link to post
Share on other sites
  • 0

So here is what I am finding.  There is a way to possibly do this it looks like.  Looking at the terra code and online the Telldus can take get commands. YAY we can send get commands through our action files.  It looks as though it needs an OAUTH token.  Do you happen to have this or have setup for the api?  Here is the connection bit for the Telldus API

consumer = oauth.OAuthConsumer(PUBLIC_KEY, PRIVATE_KEY)
	token = oauth.OAuthToken(config['token'], config['tokenSecret'])
	oauth_request = oauth.OAuthRequest.from_consumer_and_token(consumer, token=token, http_method='GET', http_url="http://api.telldus.com/json/" + method, parameters=params)
	oauth_request.sign_request(oauth.OAuthSignatureMethod_HMAC_SHA1(), consumer, token)
	headers = oauth_request.to_header()
	headers['Content-Type'] = 'application/x-www-form-urlencoded'
	conn = httplib.HTTPConnection("api.telldus.com:80")
	conn.request('GET', "/json/" + method + "?" + urllib.urlencode(params, True).replace('+', '%20'), headers=headers)
	response = conn.getresponse()
	return json.load(response)

I have also found this link: https://api.telldus.com/explore/device/turnOn where I created a test accoutn and its asking for a Device ID.  So I dont know if you have one and if you can try to sign up and see if this works.  Possibly we can figure out how to send direct commands from it using a header line.

Share this post


Link to post
Share on other sites
  • 0

epic cool. i have a telldus live account. i could give you my password and login if you promise only experimenting with certain devices? 

(i have bedmotnrs, and fans also automated, not to turn them on / off)

ill take a look at this later today, 8 hrs from now, my work begins soon.

in the account you have a history button  next to each device so you can se if it worked or not. 

 

i dont have openhab because everything is connected through widgets and tasker from a wallmounted tablet. is it any pros having openhab?

Share this post


Link to post
Share on other sites
  • 0

I"ve generated the token keys.  so thats progress.  I'm currently looking to see how to send this through an HTTP GET.  I'll hopefully have something figured out soon.

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

Sorry for delay in response.  I have been able to pull the list of devices but I can't seem to find out how its sending the command it self.  I tried a few variations of what I can scrape from the web and none seem to return to me the response of successful which would show me that it worked.

Share this post


Link to post
Share on other sites
  • 0

Np.

 

i see in the telldus interface that when the app "terra" sends commands, it sends On "and" + 100% or OFF  and "+ 0%"

 

im guessing (watching the history) that you were sending from "unknown" (15/10/22) with no percentage in your commands?

just thinking if there is a must to have the persentage sent when doing commands?

 

 

ill try finding more from my side also :/ 

what ive heard, (what i think) tellstick is a one way message device. i dont think it sends a response "im light on" like hue and others.

you have to watch the interface history

 

DY5YBGu.png

 

 

Edited by Rippmaster

Share this post


Link to post
Share on other sites
  • 0

This is some resourses i found.

 

Could you have a quick look at them and see if you figure anything out?

 

 


https://developer.telldus.com/blog/new-python-example-for-telldus-live


https://developer.telldus.com/browser/examples/python/live/tdtool

https://pypi.python.org/pypi/tellive-py

http://www.dynabyte.se/blog/2014/04/04/home-hacking-utveckling-och-systemintegration-i-he/

http://www.telldus.com/forum/viewtopic.php?t=2174

https://pushover.net/api

http://lerpard.se/tell/Starting%20with%20PHP%20and%20Telldus%20LIVE%20on%20server%20with%20cPanel%20%28oAuth%20and%20API%29.pdf

https://www.npmjs.com/package/tellstick-control

"switchsomething (browse to the center of the paige"
https://networksaremadeofstring.com/blog/2012/12/12/dabbling-in-home-automation/

https://github.com/telldus/telldus

http://stackoverflow.com/questions/27321523/what-is-the-easiest-way-to-receive-an-http-get-request-and-trigger-an-action


openHAB has bindings for TellStick/ ?? can cinemavision control openhab that then controls tellsticK???

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

About Us

CinemaVision began in 2014 as a collaboration to create content for use with your home theater, offering movie trivia slides and video bumpers. It has since grown to be THE PREMIER WAY to create and customize your preshow experience. Download the CinemaVision add-on for Kodi today from the official Kodi repository, and easily create a sequence of trivia, videos, trailers, home automation triggers and more that will bring the experience of a movie theater straight to your screen!

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines and Terms of Use.