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

fix: use binary sensor class for door and windows sensor and water leak sensor #236

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

micturkey
Copy link

@micturkey micturkey commented Dec 19, 2024

fix: use binary sensor class for door and windows sensor and water leak sensor

The original version uses sensor class for various sensors, such as door and windows sensors, water leak sensors, occupancy sensors, motion sensors, etc., which prevents the HomeKit Bridge from generating corresponding entities.
Commit micturkey@162f943 is to use binary sensor class for door and windows sensor and water leak sensor.
Commit micturkey@9cc2c52 is to solve this issue: binary sensor class for Door sensor in Home Assistant uses true to indicate open, which is opposite of Xiaomi Home. This commit reverts the value of door and windows sensor to make them the same.
Commit micturkey@3546517 is just for a typo :)

Other sensors, like occupancy sensors and motion sensors, however, still need to be fixed with binary sensor class.

Correspoding issue: #206

…ak sensor

fix: use Binary sensor class for door&windows and water leak sensor

The original version uses a sensor class for various sensors, such as door and windows sensors, water leak sensors, occupancy sensors, motion sensors, etc., which prevents the HomeKit Bridge from generating corresponding entities.
This fix is to use binary sensor class for door andwindows sensor and water leak sensor.

Correspoding issue: XiaoMi#206
fix: revert value of door and windows sensor with binary sensor class

Binary sensor class in Home Assistant uses true to indicate open, which is opposite of Xiaomi Home.
This commit reverts the value of  door and windows sensor to make them the same.
fix: Update specv2entity.py for missing "binary_sensor"

fix typo which forgets to  adding "binary_sensor" entity in `SPEC_PROP_TRANS_MAP`.
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.

1 participant