Hi,
First, thanks to all for a great community, I’ve spent many hours reading the very informative post! Not much of programmer but can make my way with the examples provided but is now a bit stuck with the One-Wire binding in openHAB 2.3.
Running currently a fairly small OH2 network with only Z-wave things for the lights. Now I want to create a watchdog for the heating in the house so therefore the One-Wire interest . I have a basic understanding of how Things-Items-Sitemap fit together but never created a thing from a file before.
Basic Problem
I have tried to display the temperature reading from an OneWire 18b20 sensor in the sitemap. I’m using the OWserver and can read the sensor through it, but I cannot get the reading on to the sitemap.
I hav stayed as close to the One-Wire binding manual as possible:
https://www.openhab.org/addons/bindings/onewire/
I’m hoping somebody can find the mistake or give me some pointers in how to trouble shoot this. All suggestions appreciated! /Regards Daniel
HW + OS
- Raspberry Pi 2 + Raspbian Stretch + I2C One-Wire board + one 18b20 temp sensor.
openHAB
- apt-get installed OH2.3
- PaperUI installed OneWire binding. Configured with Local IP (127.0.0.1) and Port (4304)
- I get the following in the openhab.log, looks ok to me:
2018-09-02 11:06:35.287 [INFO ] [nternal.connection.OneWireConnection] - Connected to owserver [IP '127.0.0.1' Port '4304']
OWserver
- OWserver installed, and working. Checking with “sudo owread /28.51DEAD060000/temperature” returns accurate temperature.
- Modified the “owfs.conf” file with “server: port = 127.0.0.1:4304” (instead of “server: port = localhost:4304”).
Things file - As close to the Manual as possible:https://www.openhab.org/addons/bindings/onewire/#channels
//OneWire server
Bridge onewire:owserver:mybridge [ network-address="127.0.0.1" ] {
temperature mysensor [ id="28.51DEAD060000" ]
}
Items file
Number:Temperature WDTemp1 "WDTemp1 [%.1f %unit%]" { channel="onewire:mybridge:mysensor:temperature" }
Site map
sitemap arosenius_watchdog label="Aroseniusvägen Watchdog"
{
Frame label="Temps" {
Text item=WDTemp1 label="Aktuell TemperaturX [%.1f °C]"
}