![]() I have all of my interior lights turn off in this file.Ĭreate a new txt file using the same process, but use the On command buttons to get your links, and label the file as On.txt. ![]() When you have everything you want in here, save the file to the Scripts folder you created, and name it something like Off.txt. ![]() Paste the URL into the new text document you have opened in Notepad.ĭo the same for any other devices you want to shut off when you hit Play or Resume in Kodi/XBMC, placing each new URL on a separate line. This is the actual command being sent to the device. This will give you a link with the following format: (installation-ID)/switches/(switch-ID)/off?access_token=(access-token) Go back to the PHP site from the REST Tutorial showing all of your devices.įor the devices you would like to turn off when media playback begins, find the device in the PHP site, right click on the Off button, and select Copy Link Address (Chrome) or Copy Shortcut (IE), or the equivalent in any browser you are using. I placed mine at C:\Batch and all of my files go into this. You will need to create a folder on your hard drive to store your scripts. Install wget for Windows from the link above. Once you have the REST endpoint created and visiting your PHP shows you the on/off/toggle buttons for the various devices you have authorized, you can move on to the next step. I highly recommend that you do though as you never know when or if the hosted one will suffer from link-rot. I have discovered that using the hosted PHP file in the tutorial works just fine in order to get the URLs needed to trigger the on/off functionality so you should not need to roll your own. REST Endpoint and the PHP file created by the REST Endpoint tutorial, being sure to enable OAuth. Wget for Windows (this is included in linux distros for both PC and embedded solutions) KenV99’s xbmc.callbacks2 service plugin for Kodi/XBMC (based on pilluli’s original callbacks) These instructions should work for you even if you are on one of the various linux or embedded distros such as RPi, etc. I run Kodi on several Windows systems at home with a centralized shared database. We are massive media consumers, so when I got the lights to interface with the movies, she suddenly LOVED the system. My wife has never really seen the value of home automation, and it has always been a struggle for me to justify my various purchases and modifications to the home to her. While my way may give a true developer the heebiest of jeebies, this is meant to provide an easy method for non-developers to add scripted lighting control to their home theater systems. My biggest issue to date has been trying to find a way to integrate Kodi/XBMC with ST in order to control the lights during media playback.Īs a hardware guy with absolutely no development skills, I struggled with this for quite a while before finally figuring it out. I bought my first Z-Wave devices two months ago to replace my existing X-10 home automation network and I’ve never looked back. Ever since discovering SmartThings during the initial Kickstarter event, I’ve been following along as SmartThings has grown from an idea into a robust product. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |