User Tools

Site Tools


openhab-examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
openhab-examples [2015/06/28 19:55] – [Item definitions] GoHoHaopenhab-examples [2015/06/28 19:56] – [A flood detection sensor] GoHoHa
Line 23: Line 23:
 Based on the EnvSensor the short between a GPIO-PIN and GND or a special switch can be used as a water detection sensor. Based on the EnvSensor the short between a GPIO-PIN and GND or a special switch can be used as a water detection sensor.
  
-The item definition on OpenHAB (the contacts are mapped in e2p to the third port):+The item definition on OpenHAB (the contacts are mapped to the third DigitalInputPin in e2p):
  
-<code>Switch Water_Basement "Water sensor basement [MAP(water.map):%s]" (gBasement,gSensorWater,gSensor) {smarthomatic="<[deviceId=123, messageGroupId=1, messageId=1, messagePart=2]"}</code>+<code>Switch Water_Basement "Water sensor basement [MAP(water.map):%s]" (gBasement,gSensorWater,gSensor) {smarthomatic="<[deviceId=123, messageGroupId=1, messageId=1, messagePart=2]"}</code>
  
 The water.map file: The water.map file:
openhab-examples.txt · Last modified: 2015/06/29 00:17 by breaker27