miio icon indicating copy to clipboard operation
miio copied to clipboard

Magnet value fix

Open Johnsel opened this issue 5 years ago • 1 comments

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.

Johnsel avatar Jan 28 '19 23:01 Johnsel

This works.

mortenf avatar May 12 '20 09:05 mortenf