vlas
(Oleg)
February 22, 2021, 3:45pm
1
Hi OpenHab,
Could we please consider the same change as it was done for Lock accessory here ([OpenHab 3.0.1] - Invert Locks - HomeKit ) for ContactSensor type as well.
I have dry contacts which indicate open/closed and in this case ON (True) indicates that item is closed and OFF (False) that item is opened.
Unfortunately was not able to configure it properly. OH latest stable v3
Thanks
rossko57
(Rossko57)
February 22, 2021, 3:47pm
2
You can use a MAP transform profile or similar to do the inversion at the channel<->Itemlink.
vlas
(Oleg)
February 22, 2021, 6:49pm
3
Yep, I tried with
{... homekit="ContactSensor" [ON="closed", OFF="open"], ..}
However item disappears from the list
Thanks
rossko57
(Rossko57)
February 22, 2021, 6:54pm
4
Thatās not a profile, but I was forgetting that Homekit does not use channels, so it was a useless suggestion anyway.
yfre
(eugen)
February 22, 2021, 7:33pm
5
just checked in the code and unfortunately homekit addon does not support āinvertedā flag and custom mapping for ContactSensor. it has basically no configuration.
but inverted flag could be indeed pretty useful. i will add it
yfre
(eugen)
February 22, 2021, 9:56pm
6
here we go. added flag inverted to all accessories that can be linked to a switch or contact
openhab:main
ā yfre:contact_sensor_inverted
opened 09:31PM - 22 Feb 21 UTC
1 Like
dirkdirk
(Dirk)
February 22, 2021, 10:04pm
7
@yfre Itās just awesome what you do for the openhab / HomeKit community.
Thank you
vlas
(Oleg)
February 23, 2021, 7:49am
8
Thanks @yfre highly highly appreciated!!!
system
(system)
Closed
April 5, 2021, 11:49pm
9
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.