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

Contact Sensor State #23

Closed
BenPicard opened this issue Aug 17, 2021 · 1 comment · Fixed by #24
Closed

Contact Sensor State #23

BenPicard opened this issue Aug 17, 2021 · 1 comment · Fixed by #24

Comments

@BenPicard
Copy link

Hello,

I have the same problem with this warning.

This plugin generated a warning from the characteristic 'Contact Sensor State': characteristic value expected valid finite number and received "undefined" (undefined)

Volvo XC60 2019
Location: NA

Thank you

drakkhen added a commit to drakkhen/homebridge-volvo that referenced this issue Sep 10, 2021
After a bit of tinkering, I figured out the cause of Issues trympet#18, trympet#22, and trympet#23.  The OR (||)
conditional for multiple case values was not working as intended -- they only matched the first
value in each case instead of any of the values separated by ||.

Converting those to use the fall-through feature of the switch statement resolved the problems.
@trympet
Copy link
Owner

trympet commented Sep 12, 2021

Fixed in #24

@trympet trympet closed this as completed Sep 12, 2021
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 a pull request may close this issue.

2 participants