logo elektroda
logo elektroda
X
logo elektroda

Integrating RPI with Domoticz on Ubuntu Server: Connecting Sensors (e.g. ds18b20) & Devices

waluszek 5346 13
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16803677
    waluszek
    Level 19  
    Hello, I am trying to play the basics of home automation with some successes.

    But it occurred to me that the central point of the whole system was not located on the RPI and on the server, and there is nothing strange in it because domoticz itself nicely flies on the ubuntu server, unfortunately the stairs began, namely I do not know how to connect it all to domoticz which is on a device other than RPI itself.

    As far as I found some howto how to connect sensors, e.g. ds18b20 in the form of a script and here everything would be ok because in the script I give the IP address of the home.

    But I wonder if the domoticz can somehow connect the whole RPI in the form of adding it as a device or only as separate elements made by RPI?
  • ADVERTISEMENT
  • #2 16803722
    xury
    Automation specialist
    Dummy is used for such things. No matter where a device is physically connected. It is important how to receive and process data from them and give one to domoticz.
    You have to read about the domoticz API and how to transfer data to it, e.g. using mqtt or via regular http.
  • #3 16803802
    waluszek
    Level 19  
    So, with the help of dummy, I can add the entire GPIO resource from RPI to domoticz? I understand that then I can add more RPI to the same domoticz?
  • #4 16805059
    xury
    Automation specialist
    So you can do something like slave sub-units.
  • ADVERTISEMENT
  • #5 16805230
    waluszek
    Level 19  
    Is there a chance for a description or direction in which to look for a solution?
  • #7 16826453
    wampirek
    Level 18  
    First of all, on rpi you create a user with permission to share the equipment. Secondly, on the ubuntu server where you have domoticza in your devices, add the Domoticz Remote server and enter the rpi IP, login and password there. After a while, a list of all connected devices will appear in your devices and you will add them to the server by clicking on the green arrow and describing them. If you have a problem, I invite you to priv or contact by phone
    I mention that my domoticz works on an orange pi pc rpi3 and orange pi they are all fastened together. and works fine.
  • ADVERTISEMENT
  • #8 16827286
    waluszek
    Level 19  
    Great, that's exactly what I meant.

    And tell me, how do I understand this way I can connect more raspberries to domoticz?

    best regards
  • ADVERTISEMENT
  • #10 16828536
    waluszek
    Level 19  
    Ok, so if I understand it correctly, domoticz must be installed on each raspberry. And the parent domoticz collects from the child data.

    I understand it well.
  • #11 16829053
    DJ MHz
    Level 25  
    yes, you will also do it on esp + espmega, some collect and share the results with others.
  • #12 16833354
    wampirek
    Level 18  
    Just like I have the whole domoticz broken into 3 raspberry hardware 1 master and 2 slaves. You can even connect dozens of raspberries in different locations not only on the local network

    I don't have any read errors, everything works fine. The DJ MHz post from 2016 has changed a lot so far.
  • #13 16843485
    Sickboy
    Level 12  
    You can always write a script in python that will collect readings and through the GET / POST queries will communicate with the domoticz.
  • #14 16849275
    wampirek
    Level 18  
    Sickboy, why make an open door?

Topic summary

The discussion revolves around integrating Raspberry Pi (RPI) with Domoticz on an Ubuntu server for home automation, specifically focusing on connecting sensors like the DS18B20. Users explore the possibility of adding RPI as a device in Domoticz rather than just individual components. It is suggested to utilize the Domoticz API for data transfer, employing methods such as MQTT or HTTP. Users can create a user on RPI to share resources and configure the Ubuntu server to recognize the RPI by entering its IP address and credentials. The setup allows for multiple RPIs to be connected as slave devices to a master Domoticz instance, although some users report issues with sensor visibility on the master device. Python scripts can also be employed for data collection and communication with Domoticz.
Summary generated by the language model.
ADVERTISEMENT