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
Next revisionBoth sides next revision
openhab-examples [2015/06/28 19:46] – [A flood detection sensor] GoHoHaopenhab-examples [2015/06/28 19:55] – [Item definitions] GoHoHa
Line 7: Line 7:
 ====== Item definitions ====== ====== Item definitions ======
  
 +An EnvSensor with Temperature + Humidity message:
 +<code>Number Temp1 "Temperature1 [%.1f °C]" <temperature> (gTemperature) {smarthomatic="<[deviceId=123, messageGroupId=10, messageId=2, messagePart=1:JS(getDiv100.js)]"}
 +Number Humi1 "Humidity1 [%.0f]" (gHumidity) {smarthomatic="<[deviceId=2, messageGroupId=10, messageId=2, messagePart=0:JS(getDiv10.js)]"}</code>
 +
 +A battery status message:
 +<code>Number Batt1 "Battery1 [%.0f]" (gBattery) {smarthomatic="<[deviceId=123, messageGroupId=0, messageId=5]"}</code>
 +
 +Two switches connected to a GPIO pins and mapped to DigitalInputPin 0 and 1 in e2p  :
 +<code>Switch Switch1 "Switch1" (gSwitch) {smarthomatic="<[deviceId=123, messageGroupId=1, messageId=1, messagePart=0]"}
 +Switch Switch1 "Switch1" (gSwitch) {smarthomatic="<[deviceId=123, messageGroupId=1, messageId=1, messagePart=1]"}</code>
  
  
openhab-examples.txt · Last modified: 2015/06/29 00:17 by breaker27