Skip to content

Instantly share code, notes, and snippets.

@fredericbarthelet
Created November 5, 2017 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredericbarthelet/b026fc4cc1be859dd9c7500269383ef7 to your computer and use it in GitHub Desktop.
Save fredericbarthelet/b026fc4cc1be859dd9c7500269383ef7 to your computer and use it in GitHub Desktop.
const Service, Characteristic;
module.exports = function (homebridge) {
 Service = homebridge.hap.Service;
 Characteristic = homebridge.hap.Characteristic;
 homebridge.registerAccessory(“switch-plugin”, “MyAwesomeSwitch”, mySwitch);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment