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

Question

Hello,

I'm pretty new to all of this and I'm not too familiar with coding or anything so I'm having a bit of trouble with this, I hope someone can help. I have a Wink Hub that I would like to use in cinemavision but I'm not sure how to set up the cvaction file. I tried to find a guide but I couldn't find one for Wink and unlike Hue there doesn't seem to be action files available for download. If anyone can help guide me in the right direction I'd really appreciate it. Thanks.

Share this post


Link to post
Share on other sites

13 answers to this question

Recommended Posts

  • 0

Hello OrangeTang,

I'm looking through the documentation for the API.  One thing it looks like is that you might need to sign up to get an access to the api.  

https://home-assistant.io/components/wink/

With the authorization token we should be able to format an action file to get your lights to work.  We would just need to put an authorization line in the action file to send along with the URL needed .  

I've found the following links with some info. 

http://docs.wink.apiary.io/# and

 

They are using CURL but the authorization as Bearer getting sent is useful.  I believe something similar was done with LiFX bulbs.  If you get the token we can definitely try and help get you going!

Share this post


Link to post
Share on other sites
  • 0

Hi,

So I have the authorization token already, I'm just not sure how to use it to make the action file so that I can implement it in cinemavision. I read through the API documentation but I'm not a programmer so I'm not sure what to do with that information. Ideally I'd like to have a scene on my hub be turned off when a movie starts and turn back on once it finishes playing. Thank you for the help.

Share this post


Link to post
Share on other sites
  • 0

Hello,

Lets try this 

https://api.wink.com/scenes/YOUR_SCENE_ID/activate
HEADERS: {"Authorization": "Bearer YOUR_TOKEN"}

You should be able to setup your scenes on Wink.  Put those 2 lines like that within your action file and save it.  Obviously just replace the YOUR_SCENE_ID and YOUR_TOKEN with your information.  Let me know if this works.

 

Share this post


Link to post
Share on other sites
  • 0
19 minutes ago, OrangeTang said:

Hi,

So I have the authorization token already, I'm just not sure how to use it to make the action file so that I can implement it in cinemavision. I read through the API documentation but I'm not a programmer so I'm not sure what to do with that information. Ideally I'd like to have a scene on my hub be turned off when a movie starts and turn back on once it finishes playing. Thank you for the help.

If you'll help us write a guide for Wink, I'll put together a bunch of Actions for ya. :)

Share this post


Link to post
Share on other sites
  • 0
34 minutes ago, DexDeadly said:

Hello,

Lets try this 

https://api.wink.com/scenes/YOUR_SCENE_ID/activate
HEADERS: {"Authorization": "Bearer YOUR_TOKEN"}

You should be able to setup your scenes on Wink.  Put those 2 lines like that within your action file and save it.  Obviously just replace the YOUR_SCENE_ID and YOUR_TOKEN with your information.  Let me know if this works.

 

So I tried this and and ran the test option under actions and I get a mess of red text. I'm not sure what the error means, should I post the red text?

Share this post


Link to post
Share on other sites
  • 0

Alright, so for some reason Kodi is refusing to open cinemavision. I'm going to do a clean install on my desktop PC and test on here rather than in my media center just to make sure that isn't the issue. I'll post here again when I have an update.

Share this post


Link to post
Share on other sites
  • 0

Alright, I have the error here, hopefully it helps.

 

  1. 15:39:02 T:21072   ERROR: Control 300 in window 13001 has been asked to focus, but it can't
  2. 15:39:06 T:2928  NOTICE: [- CinemaVision -] (API): Action (HTTP) URL: https://api.wink.com/scenes/3626204/activate
  3. 15:39:06 T:2928   ERROR: C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  4.                                               SNIMissingWarning
  5. 15:39:06 T:2928   ERROR: C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  6.                                               InsecurePlatformWarning
  7. 15:39:07 T:2928   ERROR: Traceback (most recent call last):
  8. 15:39:07 T:2928   ERROR:   File "C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.cinemavision\lib\cinemavision\actions.py", line 40, in _execute
  9. 15:39:07 T:2928   ERROR:     self.execute()
  10. 15:39:07 T:2928   ERROR:   File "C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.cinemavision\lib\cinemavision\actions.py", line 186, in execute
  11. 15:39:07 T:2928   ERROR:     resp = requests.get(self.commandData, headers=headers)
  12. 15:39:07 T:2928   ERROR:   File "C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\api.py", line 67, in get
  13. 15:39:07 T:2928   ERROR:     return request('get', url, params=params, **kwargs)
  14. 15:39:07 T:2928   ERROR:   File "C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\api.py", line 53, in request
  15. 15:39:07 T:2928   ERROR:     return session.request(method=method, url=url, **kwargs)
  16. 15:39:07 T:2928   ERROR:   File "C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\sessions.py", line 468, in request
  17. 15:39:07 T:2928   ERROR:     resp = self.send(prep, **send_kwargs)
  18. 15:39:07 T:2928   ERROR:   File "C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\sessions.py", line 576, in send
  19. 15:39:07 T:2928   ERROR:     r = adapter.send(request, **kwargs)
  20. 15:39:07 T:2928   ERROR:   File "C:\Users\Kevin\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\adapters.py", line 447, in send
  21. 15:39:07 T:2928   ERROR:     raise SSLError(e, request=request)
  22. 15:39:07 T:2928   ERROR: SSLError: [Errno 1] _ssl.c:510: error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 alert internal error
  23. 15:39:07 T:24444 WARNING: CSkinInfo: failed to load skin settings
  24. 15:39:07 T:21072   ERROR: Control 101 in window 13002 has been asked to focus, but it can't
  25. 15:40:01 T:24444   ERROR: Previous line repeats 1 times.

Share this post


Link to post
Share on other sites
  • 0

Hey OrangeTang,

Looking at the log it seems to be an error with Python.  Which is odd.  Which version of Kodi are you installing?  This on Windows or Linux?  

Share this post


Link to post
Share on other sites
  • 0

if you would like to PM me your action file I can test and see if I get the same error.  If you would like to change the scene to a bulb that if I test it doesn't create any issues to. Let me know.  

Share this post


Link to post
Share on other sites
  • 0

Okay so after talking to our developer, I have an idea of what's going on. This might be something we need to fix in 1.0.12. Python versions lower than 2.7.9 don't handle SSL properly. Kodi 17 will fix this issue, but for Kodi 16 we'll need to come up with a solution. I think our developer has a handle on it, and I'll update the version on the site in the next day or so with the new version that should handle this issue in Kodi 16.

  • Upvote 1

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...

×
×
  • Create New...

Important Information

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