diff --git a/runbullet/plugins/light/__init__.py b/runbullet/plugins/light/__init__.py new file mode 100644 index 0000000000..bdb469a835 --- /dev/null +++ b/runbullet/plugins/light/__init__.py @@ -0,0 +1,28 @@ +from .. import Plugin + +class LightPlugin(Plugin): + def run(self, args): + if 'on' in args and args['on']: + self.on() + elif 'off' in args and args['off']: + self.off() + elif 'toggle' in args and args['toggle']: + self.toggle() + + return self.status() + + def on(self): + raise NotImplementedError() + + def off(self): + raise NotImplementedError() + + def toggle(self): + raise NotImplementedError() + + def status(self): + raise NotImplementedError() + + +# vim:sw=4:ts=4:et: +