openhab-examples
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
openhab-examples [2015/06/28 19:45] – created GoHoHa | openhab-examples [2015/06/28 19:56] – [A flood detection sensor] GoHoHa | ||
---|---|---|---|
Line 7: | Line 7: | ||
====== Item definitions ====== | ====== Item definitions ====== | ||
+ | An EnvSensor with Temperature + Humidity message: | ||
+ | < | ||
+ | Number Humi1 " | ||
+ | |||
+ | A battery status message: | ||
+ | < | ||
+ | |||
+ | Two switches connected to a GPIO pins and mapped to DigitalInputPin 0 and 1 in e2p : | ||
+ | < | ||
+ | Switch Switch1 " | ||
Line 13: | 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 | + | The item definition on OpenHAB (the contacts are mapped to the third DigitalInputPin in e2p): |
- | '' | + | |
+ | < | ||
The water.map file: | The water.map file: | ||
- | '' | + | < |
OFF=wet | OFF=wet | ||
- | -=??'' | + | -=??</ |
The rule to send a mail if a short between the pins is connected: | The rule to send a mail if a short between the pins is connected: | ||
- | '' | + | < |
rule "water detection" | rule "water detection" | ||
Line 44: | Line 55: | ||
| | ||
- | end'' | + | end</ |
openhab-examples.txt · Last modified: 2015/06/29 00:17 by breaker27