Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use sensor as a trigger #2

Open
rjosborne opened this issue Apr 4, 2016 · 0 comments
Open

Unable to use sensor as a trigger #2

rjosborne opened this issue Apr 4, 2016 · 0 comments

Comments

@rjosborne
Copy link

Although the sensor seems to work and update, I don't seem to be able to use the sensor as a trigger for anything.

Comparing the code with other motion sensors suggests it looks as if it may be missing something similar to the following (taken from the homebridge-platform-wemo plugin):

this.service.getCharacteristic(Characteristic.MotionDetected).on('get', this.getOn.bind(this));

WemoAccessory.prototype.getOn = function (cb) {
this.log("getOn: %s is %s ", this.name, this.onState > 0 ? "on" : "off");
if (cb) cb(null, this.onState);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant