I have an OW-SERVER to gather data from my OneWire sensors. I would like for HA to pick up the sensor readings from tne OW-SERVER but I am not sure how.
The OW-SERVER does support publishing them as XML (see below) or sending them as a POST-call. It can also open a TCP server exposing the 1-wire interface.
Any ideas on what route would be the easiest to take in this case? I am a HA newbie.
Hi, did you solve this? I have a couple of OW-Servers aswell and would be great to intergrate them to Home Assistant, i have had them working well with VERA with the OW-SERVER plugin for VERA (Micasaverde)
Hi, i figured out how to use ow-server yesterday.
Use SNMP sensor and SNMP Switch to read sensors and control/read values of 1-wire devices connected to ow-server since it has SNMP.
Works well and hass has native support for SNMP.
Note that the “ow_pool_temp” has a slightly different baseoid than the rest, I think it is because it is a different type of device (DS18B20 instead of DS18S20).
I’d suggest anyone polling the OW-SERVER-ENET-2 or OW-SERVER-WiFi-2G via SNMP to lock the sensor order through the OW-SERVER’s web interface. The Lock Order will prevent the OIDs of a sensor from changing following power cycles. You can lock the order with the following steps:
Connect all the 1-Wire sensors to the OW-SERVER (if you add additional sensors repeat these steps)
Go to OW-SERVER’s web interface
Select System Configuration>Lock Order
Click the link “To set the lock order”
Thanks David, this was great information to get since I had just this issue a while back and didn’t know about the feature. I had to remap some of my sensors which was a bit of a hassle.
That box you built is amazing, it just keeps on working day in and day out
I’m currently moving to Home Assistant. I figured out a better solution for me and want to share it:
Make sure you have the current firmware for OW-SERVER-ENET-2, at least 2.11, see OWFS-Hint
Open the Low-Level-Onewire-Interface on the OW-SERVER-ENET-2 under System Configuration --> 1-wire Interface
Create an OWFS-Server. As my Home Assistant is a docker instance, I used roobbb/owserver
Create a config file (see below) and make the folder where it resides available as /root/.local/share
You can test the OWFS-Server now using the HTTP-Access, e.g. on http://localhost:2121
Now add the 1-wire-Integration in Home Assistant. For me, the predefined localhost and port were just fine
Unfortunately, not all devices are supported (I have one out of 20 which is not), see 1-Wire-Integration documentation of Home Assistant
######################## SOURCES ########################
# With this setup, any client (but owserver) uses owserver on the
# local machine...
! server: server = 127.0.0.1:4304
# owserver tcp address - the "enet" is the key for OW-SERVER-ENET-2
server: enet = 192.168.2.100:8080
# random simulated device
#server: FAKE = DS18S20,DS2405
######################### OWFS ##########################
mountpoint = /mnt/1wire
allow_other
####################### OWHTTPD #########################
http: port = 2121
####################### OWFTPD ##########################
ftp: port = 2120
####################### OWSERVER ########################
server: port = 4304
I hadn’t realised you could parse the XML like this, but this lets the super-reliable OW-SERVER-ENET-2 abstract the 1-wire networks and makes it relatively simple.
Hmmm, I don’t really understand how the XML from the owserver is getting parsed using the RESTFul Sensor in the value_template line - I keep getting “JSON result was not a dictionary or list with 0th element a dictionary” for my owd_DS2408 (which appears to have data near identically structured to owd_DS18B20).
I think I’d better post a new topic since this answer works well for anyone looking to get temperature sensor readings from OW-SERVER.