there are possibilities to invert rollershutter,doors etc.
but there is no possibility to invert a lock.
In my case I use a relais that receives a pulse of power to unlock the mechanical lock at my outdoor gate. no power in my case = closed / locked. and a pulse of power for 5 sec = open/unlocked
But when defining a switch or lock it somehow is inverted the wrong way.
in order to perform automation with doorbells etc it needs to be defined as a lock in my homekit
It would be great if just could invert the state of the lock or switch
The thing linked to the homekit item is a binding with Niko Home Control2 API
Can someone assist me with this ?
Background info:
Openhab 3.0.1
Thing = Gate = Binding with Niko Home control API
Item = Switch Poort "Poort" {homekit = "Lock"}
Hi @MrKlepper ,
I use the same configuration like you… I got a switch for my door (eg no1) in OH which is turned on, power to the relais, timer starts, 2 seconds later switch will be turned off by itself.
I exposed a second switch (eg no2) to HomeKit with the lock meta data.
In OH are 2 rules:
When no2 changed from ON to OFF send command ON to no1.
When no1 changed from ON to OFF send command ON to no2.
Inverting the lock would be easier, but this is my solution and works pretty well for me.
Maybe this helps.