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

[homekit] extend support of flag "inverted" to other accessories #10212

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

yfre
Copy link
Contributor

@yfre yfre commented Feb 22, 2021

this PR adds support of "inverted" flag to further accessories. flag "inverted" swap the mapping from Switch and Contact states to corresponding states of HomeKit accessories. This could be useful as the states of physical devices are not always correspond to HomeKit accessories states, e.g
https://community.openhab.org/t/openhab-3-0-1-invert-locks-homekit/117093/9
https://community.openhab.org/t/homekit-contactsensor-inverted/117625/5

this flag was already available for few accessories like Lock or WindowCovering. this PR add it to all Switch and Contact accessories.

this PR does not change the existing behaviour as flag "inverted" is optional

Signed-off-by: Eugen Freiter freiter@gmx.de

Signed-off-by: Eugen Freiter <freiter@gmx.de>
@yfre yfre changed the title [homekit] extend support of inverted flag to other accessories [homekit] extend support of flag "inverted" to other accessories Feb 22, 2021
@yfre yfre added the enhancement An enhancement or new feature for an existing add-on label Feb 22, 2021
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/homekit-contactsensor-inverted/117625/6

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpmeister cpmeister merged commit 50a01b4 into openhab:main Feb 25, 2021
@cpmeister cpmeister added this to the 3.1 milestone Feb 25, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
…ab#10212)

Signed-off-by: Eugen Freiter <freiter@gmx.de>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
computergeek1507 pushed a commit to computergeek1507/openhab-addons that referenced this pull request Jul 13, 2021
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
@yfre yfre deleted the contact_sensor_inverted branch November 15, 2022 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants