Read temp data from a PT1000

Hi all,

I read already through a whole bunch of information but did not get any glimpse of how to tackle my idea so far. After all I ended up with creating a own topic in the forum for it. Maybe someone of you can point me in the right direction or at least advice me on how to go on.

Setup

  • Raspberry Pi 4
  • HomeAssistant OS
  • 2x PT1000 Temp Sensor
  • Installed Node-Red addon (with node-red-node-pi-gpio and node-red-contrib-gpio)
  • Installed AppDaemon 4 addon
  • Breadboard, wires, resistors, etc.

Idea
I do have pre-mounted PT1000 temperature sensors I want to read (and cannot replace). I do not have any ADC or similar hardware/boards, just the RasPi4.

Approach
First, I tried accessing the GPIO in a very simple way of switching a LED on/off. This is working just fine. But the built in GPIO-support of HA (added as binary sensor https://www.home-assistant.io/integrations/binary_sensor/) as well as the GPIO-nodes in Node-Red https://flows.nodered.org/node/node-red-node-pi-gpio only support a digital binary value of 0 or 1 and not any kind of value.
I tried also tried adding https://flows.nodered.org/node/node-red-contrib-gpio to Node-Red in order to access the GPIO, but I cannot get the command npm install raspi-io running under HA OS.

I also tried the approach with a resistive sensor (http://razzpisampler.oreilly.com/ch08.html), but could not get the python code running with AppDaemon 4 so far.

Request
Does at least one of my approaches yield a success if done properly or do you have any advice on how to go on?

Thank you for your effort and advice.

1 Like

Buy a $15 MAX31865 module and a $5 ESP board.

A simple yaml file in ESPHome will connect this using discovery in Home Assistant.

Thank you @tom_l,

in the meantime I could work on AppDaemon a bit more, but it rather seems like a dead end. According to this thread, AppDaemon does not get access to GPIO pins due to permission restrictions: https://github.com/hassio-addons/addon-appdaemon/issues/53#issuecomment-754508254.

So the easiest way would probably be to get a middleware, like you suggested, as HA itself can only read the GPIO as binary value.