homebridge-ds18b20 icon indicating copy to clipboard operation
homebridge-ds18b20 copied to clipboard

How to read sensor connected to a different RPi?

Open ehusar opened this issue 8 years ago • 4 comments

I'm running Homebridge on an RPi located inside the house. I have another RPi in the garage that has a ds18b20 connected to it. How do I read the temp sensor that is in the garage?

ehusar avatar Dec 30 '16 06:12 ehusar

I would suggest to use OWFS and its associated server OWSERVER.

Install OWFS and OWSERVER on your garage's RPi and access from your home-bridge RPi using OWClient. Look at my branch plugin which is a good start for a OWFS based setup. I am thinking at porting the plugin to rely on owserver protocol instead of filesystem, if you're interested I can work on it. regards, jean

jchassin avatar Dec 30 '16 22:12 jchassin

You can use directly homebridge-owfs plugin. You need, OWFS and OWSERVER up and running Jean

jchassin avatar Jan 02 '17 10:01 jchassin

Jean. I am looking at this again. I am weighing the option of just installing another homebridge install of OWFS. I know very little about OWFS so I am a little worried about adding it just to get the temp in showing in Homekit.

ehusar avatar Jan 05 '17 05:01 ehusar

Hi ehusar,

Using OWFS is quite simple to setup (lots of tuto) but need extra HW to control 1-wire bus. W1-gpio controls diretly the bus. CPU load is certainly different. Personnally i am using first one as i have several devices on my bus (2408, 18b20) and i am not a big fan of pure sw solution. On your case i think the option you propose is probably the simpler and should work. I would pay attention on cpu load and reliability (depending on what is installed on your raspi), but at least shall be tried. Jean

jchassin avatar Jan 05 '17 06:01 jchassin