I just set up home assistant on my Raspberry Pi 4 (Home Assistant OS) and am quite happy using a 1-wire temperature sensor. It‘s a DS18B20 on GPIO 4 and it works fine using sysbus.
When I SSH to the machine I can‘t access any packet managers (e.g. yum, pacman, apt-get —> command not found). And since Home Assistant OS uses docker containers all manual changes might get lost during the next update.
I’m tryiging to fire up 1-Wire and owserver with no luck.
Owserver looks installed as in:
Appears in sidebar “owserver /1-wire)” (link http://xxx.yyy:8123/9e0ef242_owserver/dashboard says “502: Bad gateway”
Appears in integration supervisor as a service and entity.
Possible to open page for the service. It says that the service is running.
But 1-wire integration will not find the host :“9e0ef242-owserver” (mandatory for the 1-wire integration).
I cannot understand how to find any traces of the owserver install. No folders or files that relates to this.
Command “netstat” in terminal will not reveal an open port 4404 for ows
How to proceed?
I see more members struggling with this but no solutions has been shared.
Home Assistant 2022.8.6
RPi3 (32bit)
1-wire usb dongle ds9490r
Wasn’t worth the trouble for me. I found it simpler to get a cheap wemo, use an old usb micro power supply and connect my sensors from there. Super easy with ESPHome.
There a other esp boards that don’t require soldering
Thank you for the tip. I have ESPHome installed. Might give it a try. Does it work as good with GPIO from ESP as with the 1-wire adapter? Got some complex 1-wire net with 20+ temp sensors that I hope to monitor i HA. It has worked flawless with the adapter to a windows PC with SwitchKing, but it seems quite obselete and difficult to include in the HA-setup.
I have four ds18b20 with about 2m/6ft of cable each to monitor the hvac. They’re polled every 30 sec with no hint of an issue. So not as extensive as yours, there’s probably more an issue with powering all of these than running out of bandwidth anyways. ESPHome — ESPHome
I gave up OWFS and wired up an esp8266 instead. Unfortunately, the retired USBds9490r handled the whole 1w net with no problem. Net is four arms 20+ meters with 5-10 ds18b20 each. Breaking every rule for recommended design, but it worked fine. The esp8266 with GPIO polling will only handle one arm, so I guess it will be four esp8266 boards.
Installed 2 ESP8266 borads to share the 1w networks. Power the 1w line from 5V and use ~3kohm pull up. Works perfect.
Current 14 sensors to ESP1 and 6 sensors to ESP 2.
Owserver is uninstalled. It’s never too late to give up
I understand the incentive to not use GPIO, even Microchip (formerly Dallas) discourage that.
But many of us is using some kind of propper 1-wire bus connector (like DS9490) which is MUCH better than the bit banging done with GPIO and ESPHome.
I suggest the propper way to handle this is to use a add-on with the owserver in it, and then use the official 1-wire integration to connect to that add-on.
For me personally right now, I guess the solution will be to put the owserver on another virtual server, and use the 1-wire integration to connect to that one. But I would have preferred to keep it all on the same VM.
I have been using OneWire for 7 years now and the one common theme for me is: It’s the underdog and whatever you want to do with it, it’s always an uphill struggle.
But if you have it working against all odds, it is rock solid and super cheap…
I have just switched to HomeAssistant. My OneWire sensors are being read by an arduino and sent to KNX from there. From KNX I get them into HA. Which works fine, except, that it’s all one way, no polling, the arduino just sends the data cyclic and when it has changed. HA often complains about not being able to “read” the sensors… of course, because they are only sent to it.
I’d really love to have a more comprehensive installation instead of the arduino doing the work “in secret”, but what I can see here is: owfs/owserver seems to be another uphill struggle…
I’d consider installing it on a separate raspberry pi 3, but even that seems to complicated too me, to just jump in.
Lets hope some good soul/programmer creates a hacks installation for the dumb people like me
I used a d1 mini for simplicity, but it works with a bunch of boards. It’s built into home assistant.
My use case is HVAC monitoring (two for heat and two for AC), so I have four ds18b20, the leads are just soldered together on plugged into 5v, ground and D4 using a dev board, resistance and few jumpers.
Thank you!
I had an ESP laying around and gave it a try.
Holy shit, I had no idea about that whole ESP-Home thing. I did a lot of arduino and teensy, which are incredibly user friendly.
But now encountering the ease of use ESP home and homeassistant my mind is blown! Man, this is crazy good implementation of a super good idea.
I’m so glad I found this thread and gave ESPhome a try.
Only small downside of all this: You need WiFi. So far my home doesn’t, everything goes through KNX and OneWire, no need for network to work.
So, I will at least connect a EPS32 to ethernet, if I chose to use it for OneWire implementation. Since I will have always have a small ethernet portion of my network running in the future. Because of HA.
I used this board on my pi4: 1 Wire Pi Plus communication board for the Raspberry Pi
I installed OWFS server, I think I used this guide: Raspberry Pi and 1-Wire | Packt Hub
It works fine. I’m using HA supervised. Unsupported, of course since I’m also using the PI os. I’m upgrading to a pi 5. I’m running it in parallel, albeit without the hardware attached. OWFS not complaining so far.