loading
3Instructables461,340Views23 Comments

Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
Show 0 More »
  • Make a dumb device smart with Pilight and HomeKit

    Thanks! Yeah, you'll need to have one accessory.js file per outlet.You can basically copy/paste the Outlet_accessory.js file and rename it. You'll need to make a few changes, but it's not too bad. PythonShell.run('light1.py', function (err) {console.log('...outlet is now on.');});Those lines, in Outlet_accessory.js are what tells the raspberry pi to execute light1.py. Running light1.py will always turn on that light. So, to turn on a different light , you'll need to create more python files for each accessory, using the RF codes you sniffed out (as you said). Then, in that Outlet_accessory.js file, you'd change 'light1.py' to whatever you named your new python file for your new accessory.TL;DR Create more python files with the RF codes, duplicate the Outlet_accessory.js file, c...see more »Thanks! Yeah, you'll need to have one accessory.js file per outlet.You can basically copy/paste the Outlet_accessory.js file and rename it. You'll need to make a few changes, but it's not too bad. PythonShell.run('light1.py', function (err) {console.log('...outlet is now on.');});Those lines, in Outlet_accessory.js are what tells the raspberry pi to execute light1.py. Running light1.py will always turn on that light. So, to turn on a different light , you'll need to create more python files for each accessory, using the RF codes you sniffed out (as you said). Then, in that Outlet_accessory.js file, you'd change 'light1.py' to whatever you named your new python file for your new accessory.TL;DR Create more python files with the RF codes, duplicate the Outlet_accessory.js file, change the Outlet_accessory.js file to run your new python script.If you have any trouble feel free to comment again or PM me!

    View Instructable »