DanTheMan827 / homebridge-ds18b20

27 stars 10 forks source link

How to read sensor connected to a different RPi? #6

Open ehusar opened 7 years ago

ehusar commented 7 years ago

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?

jchassin commented 7 years ago

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 commented 7 years ago

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

ehusar commented 7 years ago

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.

jchassin commented 7 years ago

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