Hauptmenü

Remote reading

Begonnen von user7743, 30 Januar 2018, 11:49:47

Vorheriges Thema - Nächstes Thema

user7743

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.

RaspiLED

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, ...

Paul Guijt

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, Z-Wave, TradFri in die Niederlände

user7743

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.

RaspiLED

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, ...