tobof / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
39 stars 30 forks source link

Automatic door configuration #82

Closed stefaanv closed 7 years ago

stefaanv commented 7 years ago

How can an automatic door be configured ? The door is presented as S_LOCK (child_id=5), data is sent and received with V_LOCK_STATUS How must the mysensors binding in openHab be configured to make this work ? I'd like to see the door status in openHab but I also want to be able to open/close the door from openHab. Is this possible ?

tobof commented 7 years ago

The easiest way would be to use autodiscovery. This should work just fine.

It is possible to receive the status from the sensor and to send it. Lock is represented as a switch in OpenHab.

The definition should look like this (untested):

things: lock lock01 [ nodeId="10", childId="5" ]

items: Switch lock01 "Lock 1" (gGroup) { channel="mysensors:lock:gateway:lock01:lock-status" }