Skip to content
nathreed edited this page Nov 2, 2014 · 28 revisions

Welcome to the HAP-NodeJS wiki!

Modifying the switch characteristic

You might want to modify the switch characteristic in Core.js, whether to change the behavior for the default test accessories or to add new behavior. Making sure that all the code you use in this function is executing asynchronously will make sure that Siri responds right back to you instead of telling you that the devices are taking too long to respond.

Clone this wiki locally