Add data from Pi GPIO #384
-
|
Hi! Running aqualinkD 2.5.2 on Raspi 3b and have it integrated with mqtt to home assistant. I want to add a pressure sensor to my system and was planning on capturing the data through the GPIO pins. Anyway to route this through aqualinkd or would I need to set up a seperate workflow to get the pressure data to home assistant. For reference looking at this sensor. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
|
In the current release, no AqualinkD can't do this. This functionality is in the development (and the dev release on GitHub has an early implementation). Should be ready in a few weeks. |
Beta Was this translation helpful? Give feedback.
-
|
@NeilPatel84 Did you ever complete this project? I had a similar idea and found your question. I, too would like to hook up a pressure sensor to my pentair DE filter to detect clogged filters. Did you use that sensor you linked and an ADC to the PI's GPIO I2S inputs? If you did, can you give me a full list of what you bought, how you connected it and how you configured it so I don't have to reinvent the wheel? Thank you! |
Beta Was this translation helpful? Give feedback.
-
|
AqualinkD will read any sensor that posts its information to the file system (Ie has kernel, sysfs, iio subsystem support). So any industrial sensor linked to an ADC converter based on ADS115 since they have great kernel support should be good. then add the below to /boot/config.txt The device should show up under /sys/bus/iio/devices/iio:device0/xxxxx. and use that in AqualinkD sensor config. again I have not tested any of the above, but I have tested AqualinkD with other sensors, 1-wire, i2c etc |
Beta Was this translation helpful? Give feedback.
-
|
Got it working! That was a fun project. Used:
import board ====== CONFIG ======DIVIDER_RATIO = 0.6667 # 20k/(10k+20k) for 10k top, 20k bottom ====================def atomic_write(path: str, text: str) -> None: def main(): if name == "main":
sensor_01_path=/tmp/filter_psi
|
Beta Was this translation helpful? Give feedback.
-
|
Very cool, well done. just a thought, I’m sure you’ve already enabled i2c, so it you add “ dtoverlay=ads1115 ” to /boot/firmware/config.txt you should have a file in /sys/class/hwmon/hwmonX/device/ or /sys/bus/iio/devices/iio:deviceX/ you could point AqualinkD at directly and not have to use the python script. |
Beta Was this translation helpful? Give feedback.



In the current release, no AqualinkD can't do this. This functionality is in the development (and the dev release on GitHub has an early implementation). Should be ready in a few weeks.