Autor Thema: Remote reading  (Gelesen 909 mal)

Offline user7743

  • Newbie
  • Beiträge: 2
Remote reading
« am: 30 Januar 2018, 11:49:47 »
Hi all,

I have been using FHEM for years to control and log radiator valves around my house and I love its flexibility.
My next step is to use a Raspberry Pi Zero and a couple of ds18b20 sensors to log the temperatures of my boiler. I have this running and it produces a CSV file with regular readings. I would love to integrate those into the overall FHEM setup I have but I am not sure what the best method to do this is. A bit more information on the scenario:
  • The sensors are physically attached to a different machine than where FHEM is running but they are both on the same network
  • I can retrieve the DS18B20 readings on a regular basis and write them in a format as required
  • I would like to be able to plot the temperatures in FHEM as for other temperature gauges

I have seen that there is the custom reading module - so I could write the reading to a file on the FHEM server and read that way. Is this the best way to do it? Is there another method that gives a more suitable integration?

Thanks in advance.

Offline RaspiLED

  • Hero Member
  • *****
  • Beiträge: 1846
  • Es begann alles so klein ;-)
Antw:Remote reading
« Antwort #1 am: 30 Januar 2018, 16:40:10 »
Hi,
Instead of using a pi zero, use a esp8266 with espeasy firmware. Like a nodemcu v2 devkit.
Regards Arnd


Raspi2 mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, Bravia, ...
Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...

Offline Paul Guijt

  • Jr. Member
  • **
  • Beiträge: 87
Antw:Remote reading
« Antwort #2 am: 30 Januar 2018, 16:43:02 »
Perhaps it is an option to mount the directory containing the data through NFS?
RasPi 2B, CUL 433, Jens' FW, Berker, HomeMatic, KlikaanKlikuit, RFXtrx443, Squeezebox in die Niederlände

Offline user7743

  • Newbie
  • Beiträge: 2
Antw:Remote reading
« Antwort #3 am: 31 Januar 2018, 08:59:07 »
Thanks for the hints guys.
Whilst the NodeMCU stuff looks good, and would be fine for logging temps - that is not the only thing the PiZero is doing and the NodeMCU isn't suitable. 2 devices doesn't make sense in this case to me. I might look at it later for other temperature application. It would still have the same issues that I see now though - there needs to be an iteration between the device taking the temperature reading and FHEM.
Given there is no clear statement on "this is the correct integration" I will have a play around with the different methods I can see and report back when I have it working.

Offline RaspiLED

  • Hero Member
  • *****
  • Beiträge: 1846
  • Es begann alles so klein ;-)
Antw:Remote reading
« Antwort #4 am: 04 Februar 2018, 15:40:09 »
Hi,
Okay then my second try ;-)

a) You could still use the ESPBRIDGE Device in FHEM and feed this with the data of your PiZero. The code is available in github and you are anyhow planning to develop some code on the Pi, right?
b) You could use MQTT to deliver the DS18B20 data to the Mosquitto on the FHEM server and subscribe to it with the MQTT module.
3) You could use FHEM2FHEM or sernet or ...

Warm regards
Arnd


Raspi2 mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, Bravia, ...
Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...

 

decade-submarginal