-
Notifications
You must be signed in to change notification settings - Fork 52
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
Setting anyoneSensor to false doesn't work #50
Comments
Hello, first of all thanks a lot for your great plugin @PeteLawrence ! I really appreciate your work 👍 Nonetheless, I got the same issue. And I also found the problem regarding this in your code. When reading the config, you are double-piping a boolean to true. Double-piping in JavaScript is a logical OR, which will always result in To solve this, you could either function goodFunction(/* boolean */flagA) {
flagA = typeof flagA !== "undefined" ? flagA : true;
console.log("flagA is set to " + (flagA ? "true" : "false"));
} |
same problem here, i can't disable the anyone sensor |
As per subject, anyoneSensor is set to "false" but is still showing up in HomeKit:
Extract from config.json:
And from the log:
The text was updated successfully, but these errors were encountered: