Skip to content

Magnet value fix#216

Open
Johnsel wants to merge 1 commit into
aholstenson:masterfrom
Johnsel:magnet-fix
Open

Magnet value fix#216
Johnsel wants to merge 1 commit into
aholstenson:masterfrom
Johnsel:magnet-fix

Conversation

@Johnsel
Copy link
Copy Markdown

@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
Copy Markdown

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.

2 participants