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

Inverted mode #15

Open
eqsone opened this issue May 10, 2022 · 0 comments
Open

Inverted mode #15

eqsone opened this issue May 10, 2022 · 0 comments

Comments

@eqsone
Copy link

eqsone commented May 10, 2022

Thanks for the update! No idea if this is just me but the inverted mode still doesn't work as expected until I edit these lines within platformAccessory.js:

//.on('get', (callback) => callback(null, this.status.currentPosition));
 .on('get', (callback) => callback(null, (this.config.invert ? 100 - this.status.currentPosition : this.status.currentPosition)));

//const effectiveTarget = this.config.invert ? targetPosition : 100 - targetPosition;
const effectiveTarget = this.config.invert ? 100 - targetPosition : targetPosition;

After a movement the correct values will only be shown on a site reload in homebridge-ui or by reopening Home-App, though this behaviour is less of an issue to me.

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