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

Magnet value fix #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Magnet value fix #216

wants to merge 1 commit into from

Conversation

Johnsel
Copy link

@Johnsel Johnsel commented Jan 28, 2019

There is an issue with the lumi.magnet initial value fetching in combination with the homebridge-miio-gateway and miio library. It returns the first value properly, but then triggers a second event where the value == null. This causes the the state to change to Open, when the actual state is Closed.

Fix: filter out null and undefined values.

@mortenf
Copy link

mortenf commented May 12, 2020

This works.

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

Successfully merging this pull request may close these issues.

None yet

2 participants