How to collect data from multiple RPi systems?
Moderators: leecollings, remb0
-
chrisisbd
- Posts: 5
- Joined: Tuesday 24 November 2026 12:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
How to collect data from multiple RPi systems?
I am looking into using Domoticz. I will probably install it on a Pi 4B but I might instead install it on my Debian Linux desktop which runs all the time because it is my mail server etc.
Anyway my question is about interfacing Domoticz to other Raspberry Pi systems that I already have running, there's a Pi Zero 2W monitoring an electric fence (also has a BM280 sensor) and an old Pi 2B monitoring a UPS.
How can one get Domoticz to collect data from these? What's the easiest way?
I'm quite happy to shuffle things around if necessary. One obvious approach would be to replace the Pi 2B monitoring the UPS with my Pi 4B and run Dometicz on that. This would also have the benefit of Dometicz being powered by the UPS.
All the above systems (except the Pi Zero 2W) are on a wired LAN.
Anyway my question is about interfacing Domoticz to other Raspberry Pi systems that I already have running, there's a Pi Zero 2W monitoring an electric fence (also has a BM280 sensor) and an old Pi 2B monitoring a UPS.
How can one get Domoticz to collect data from these? What's the easiest way?
I'm quite happy to shuffle things around if necessary. One obvious approach would be to replace the Pi 2B monitoring the UPS with my Pi 4B and run Dometicz on that. This would also have the benefit of Dometicz being powered by the UPS.
All the above systems (except the Pi Zero 2W) are on a wired LAN.
-
RNEE
- Posts: 110
- Joined: Sunday 05 August 2018 10:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.4
- Location: NL/Eindhoven area
- Contact:
Re: How to collect data from multiple RPi systems?
The question lacks necessary details.
Did you build/programmed these yourself ?
In what way do your other devices interface with your hardware and communicate now like web, mqtt, json?
Do you know the content of the data etc, addresses / function etc?.
In most cases it is easily possible to create (let AI do it) a dzVents script to get the data you want in Domoticz or send commands from it.
With just an IP adress, the communication methode and the data it takes Google or Claude some minutes to generate a script.
For Domoticz it is best NOT to run on an SD-card, use a NVMe , harddisk etc as it is more trusted in the long time.
For years i had Domoticz running first on a pc, and later on a Raspi 3B , since a year i use a Raspi 5B with NVMe.
I also have several Raspi 3B running on good quality SD cards for my CNC, 3D printer, video.
But i don't really trust the SD cards in the long time, I had some bad experience before.
Did you build/programmed these yourself ?
In what way do your other devices interface with your hardware and communicate now like web, mqtt, json?
Do you know the content of the data etc, addresses / function etc?.
In most cases it is easily possible to create (let AI do it) a dzVents script to get the data you want in Domoticz or send commands from it.
With just an IP adress, the communication methode and the data it takes Google or Claude some minutes to generate a script.
For Domoticz it is best NOT to run on an SD-card, use a NVMe , harddisk etc as it is more trusted in the long time.
For years i had Domoticz running first on a pc, and later on a Raspi 3B , since a year i use a Raspi 5B with NVMe.
I also have several Raspi 3B running on good quality SD cards for my CNC, 3D printer, video.
But i don't really trust the SD cards in the long time, I had some bad experience before.
Domoticz (since 2016) on Docker on Raspberry PI 5 with 500 Gb NVMe|Milight|KaKu + RFXCOM|Goodwe|Smartstuff P1 meter|Buienradar|Afval kalender|Tuya-wifi|Zigbee|deCONZ Conbee II|Marstek 5,12Kwh|Pusr-dr134/dr164|Xemex Csmb|MQTTMapper|Quatt v2|DTGbot|
-
chrisisbd
- Posts: 5
- Joined: Tuesday 24 November 2026 12:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: How to collect data from multiple RPi systems?
Yes, using I2C bus breakout boards and Python scripts (mostly)RNEE wrote: Tuesday 24 November 2026 13:44 The question lacks necessary details.
Did you build/programmed these yourself ?
At present the collected data (battery voltage and current for the UPS, temperature, humidity, pressure from the BME280) are simply stored in a sqlite3 database which is then used in a wiki on my desktop machine to display statistics etc.RNEE wrote: Tuesday 24 November 2026 13:44 In what way do your other devices interface with your hardware and communicate now like web, mqtt, json?
Do you know the content of the data etc, addresses / function etc?.
I guess dzVents can read from the sqlite3 database. Is that LUA or Python? I'm familiar with Python but not LUA.RNEE wrote: Tuesday 24 November 2026 13:44 In most cases it is easily possible to create (let AI do it) a dzVents script to get the data you want in Domoticz or send commands from it.
With just an IP adress, the communication methode and the data it takes Google or Claude some minutes to generate a script.
Yes, absolutely, I have had some failures of SD cards. My most important pi 4B runs from a Transcend USB SSD.RNEE wrote: Tuesday 24 November 2026 13:44 For Domoticz it is best NOT to run on an SD-card, use a NVMe , harddisk etc as it is more trusted in the long time.
For years i had Domoticz running first on a pc, and later on a Raspi 3B , since a year i use a Raspi 5B with NVMe.
I also have several Raspi 3B running on good quality SD cards for my CNC, 3D printer, video.
But i don't really trust the SD cards in the long time, I had some bad experience before.
Thanks, I should be able to make some progress now.
-
RNEE
- Posts: 110
- Joined: Sunday 05 August 2018 10:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.4
- Location: NL/Eindhoven area
- Contact:
Re: How to collect data from multiple RPi systems?
Instead of writing data to a different local database you can send the data directly to Domoticz using a common protocol. Domoticz stores the data in its own sqlite3 database.chrisisbd wrote: Tuesday 24 November 2026 14:07Yes, using I2C bus breakout boards and Python scripts (mostly)RNEE wrote: Tuesday 24 November 2026 13:44 The question lacks necessary details.
Did you build/programmed these yourself ?
At present the collected data (battery voltage and current for the UPS, temperature, humidity, pressure from the BME280) are simply stored in a sqlite3 database which is then used in a wiki on my desktop machine to display statistics etc.RNEE wrote: Tuesday 24 November 2026 13:44 In what way do your other devices interface with your hardware and communicate now like web, mqtt, json?
Do you know the content of the data etc, addresses / function etc?.
I guess dzVents can read from the sqlite3 database. Is that LUA or Python? I'm familiar with Python but not LUA.RNEE wrote: Tuesday 24 November 2026 13:44 In most cases it is easily possible to create (let AI do it) a dzVents script to get the data you want in Domoticz or send commands from it.
With just an IP adress, the communication methode and the data it takes Google or Claude some minutes to generate a script.
Yes, absolutely, I have had some failures of SD cards. My most important pi 4B runs from a Transcend USB SSD.RNEE wrote: Tuesday 24 November 2026 13:44 For Domoticz it is best NOT to run on an SD-card, use a NVMe , harddisk etc as it is more trusted in the long time.
For years i had Domoticz running first on a pc, and later on a Raspi 3B , since a year i use a Raspi 5B with NVMe.
I also have several Raspi 3B running on good quality SD cards for my CNC, 3D printer, video.
But i don't really trust the SD cards in the long time, I had some bad experience before.
Thanks, I should be able to make some progress now.
DzVents is Lua but especially for use with Domoticz , it can directly interface with Domoticz and use its data , interfaces etc etc. It is very powerfull. Llm’s like google and claude speak and write it with no problem.
In a few minutes they have your script ready.
Domoticz (since 2016) on Docker on Raspberry PI 5 with 500 Gb NVMe|Milight|KaKu + RFXCOM|Goodwe|Smartstuff P1 meter|Buienradar|Afval kalender|Tuya-wifi|Zigbee|deCONZ Conbee II|Marstek 5,12Kwh|Pusr-dr134/dr164|Xemex Csmb|MQTTMapper|Quatt v2|DTGbot|
- waltervl
- Posts: 7041
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: How to collect data from multiple RPi systems?
If it is just pushing data from one Rpi to the Rpi with Domoticz have the program (python or whatever) that reads the sensors changed and send the data to Domoticz server with the Domoticz http API calls https://wiki.domoticz.com/Domoticz_API/JSON_URL%27s
For examples how to use the http API calls see the bottom of that wiki page.
So for example read temp over I2C with python and send that data to the Domoticz server with http API Call to a temperature devive in Domoticz.
For examples how to use the http API calls see the bottom of that wiki page.
So for example read temp over I2C with python and send that data to the Domoticz server with http API Call to a temperature devive in Domoticz.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
chrisisbd
- Posts: 5
- Joined: Tuesday 24 November 2026 12:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: How to collect data from multiple RPi systems?
Thank you, I think that's what I want to do.
Does "http API Call to a temperature device in Domoticz" mean that Domoticz would record the temperature (or whatever) reading and allow one to display and use it in Domoticz?
Does "http API Call to a temperature device in Domoticz" mean that Domoticz would record the temperature (or whatever) reading and allow one to display and use it in Domoticz?
-
RNEE
- Posts: 110
- Joined: Sunday 05 August 2018 10:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.4
- Location: NL/Eindhoven area
- Contact:
Re: How to collect data from multiple RPi systems?
Ask this in google ai :
i want a temperature reading i have in a python program on a raspberry pi zero 2w send to domoticz on a linux pc with ip adres 192.168.2.99
Google ai tells you every step you need.
The data go into the domoticz database and you get graphs and data without further setup.
i want a temperature reading i have in a python program on a raspberry pi zero 2w send to domoticz on a linux pc with ip adres 192.168.2.99
Google ai tells you every step you need.
The data go into the domoticz database and you get graphs and data without further setup.
Domoticz (since 2016) on Docker on Raspberry PI 5 with 500 Gb NVMe|Milight|KaKu + RFXCOM|Goodwe|Smartstuff P1 meter|Buienradar|Afval kalender|Tuya-wifi|Zigbee|deCONZ Conbee II|Marstek 5,12Kwh|Pusr-dr134/dr164|Xemex Csmb|MQTTMapper|Quatt v2|DTGbot|
- waltervl
- Posts: 7041
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: How to collect data from multiple RPi systems?
Yes.chrisisbd wrote: Tuesday 24 November 2026 17:42 Thank you, I think that's what I want to do.
Does "http API Call to a temperature device in Domoticz" mean that Domoticz would record the temperature (or whatever) reading and allow one to display and use it in Domoticz?
You first need to create a temperature device manually (see wiki page https://wiki.domoticz.com/Dummy_for_virtual_Switches )
Then read the idx number of that device and use it in the API call.
When data is sent it is stored in the Domoticz database and you can use it for further analysis. Domoticz already creates nice graphs and reports out of the box through its user interface.
https://wiki.domoticz.com/Managing_Devices
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
Tukker
- Posts: 679
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: How to collect data from multiple RPi systems?
Let every device talk MQTT and wherever you like you can collect data.
I support @waltervl's solution as well.
I support @waltervl's solution as well.
Bugs bug me.