-
-
Save mwittig/a349f5b769872ac544d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeduinoPlugin extends env.plugins.Plugin | |
init: (app, @framework, @config) => | |
@framework.deviceManager.on('discover', (eventData) => | |
@framework.deviceManager.discoverMessage( | |
'pimatic-homeduino', 'Press a button on your remote' | |
) | |
setTimeout( ( => | |
config = { | |
class: 'HomeduinoRFSwitch' | |
} | |
@framework.deviceManager.discoveredDevice( | |
'pimatic-homeduino', 'Switch', config | |
) | |
), 1000) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment