logo elektroda
logo elektroda
X
logo elektroda

Connecting Xiaomi Aqara Door Sensor to ESP Wroom: Software Recommendations?

Michal8883 846 17
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19755288
    Michal8883
    Level 5  
    Do I connect the xiaomi aqua door sensor to the esp wrom with easy or other software? Or are there any other sensors on wifi that can be paired with the esp wrom.
  • ADVERTISEMENT
  • #2 19755907
    starob
    Level 29  
    Michal8883 wrote:
    Will I connect xiaomi aqua door sensor to esp wrom with easy or other software?
    .
    No, because Xiaomi's ZigBee module is different from Wifi and requires a special gateway.
    Michal8883 wrote:
    And maybe there are some other sensors on wifi that can be paired with esp wrom.

    This is what I don't understand anymore, please specify what "pair" means to you.
    You can connect most sensors to GPIO ports and the list is long:
    https://www.letscontrolit.com/wiki/index.php?title=Devices
  • #3 19755919
    Michal8883
    Level 5  
    I would like to connect wireless reed switches and PIR detectors via wifi to esp is this possible
  • ADVERTISEMENT
  • #4 19755949
    starob
    Level 29  
    Michal8883 wrote:
    wireless reed switches and PIR detectors
    .
    Since they are wireless they already work after some "radio"?

    Or were you more concerned with "how to connect regular detectors and reed switches wirelessly over wifi" ?
    Write more about what you want to achieve, then it will be easier to advise something.
  • #5 19756014
    Michal8883
    Level 5  
    Exactly as you write "how to connect ordinary detectors and reed switches wirelessly over wifi"? And program it via esp wroom
    Write more about what you want to achieve, then it will be easier to advise something.
  • ADVERTISEMENT
  • #6 19756054
    starob
    Level 29  
    So you can esp program with Tasmota, ESP Easy or Espurna. These are very similar solutions to each other.
    Connect the sensors of your choice to the esp pins and send their status to some IoT system.... Homeassistant, Domoticz or an MQTT broker. These also have their own web pages through which you can control or read the states and create internal simple automations.
    What you want is totally doable.
  • #7 19756081
    Michal8883
    Level 5  
    I don't want to connect the sensors to the esp via cable, but I want to control the status of the reed switches, high or low, and the PIR detectors all via wifi.
  • #8 19756158
    starob
    Level 29  
    Devices with Wifi as the transmission medium, are power intensive and powering them from batteries is problematic. I don't think you can buy off-the-shelf solutions and build anything sensible. You are left with one with a 'normal' 433MHz radio. It is possible with a bit of persistence to combine this with esp, Read about the Sonoff RF Bridge 433MHz RF and its mods, but I see it poorly due to the use of different coding protocols by sensor manufacturers.
    There is RFLink which operates over the radio. You still haven't written what you want to do with the received data....
  • #10 19756912
    starob
    Level 29  
    If you don't care so much about doing it yourself, buy ready-made Sonoff 433Mhz sensors and the aforementioned gateway.
    Integrate this using a dedicated app.
    Clean, fast, cheap and wireless.

    If you continue in the DIY direction, the ESP alone will not be the end of it, there will be the problem of sending emails.
  • #11 19756926
    Michal8883
    Level 5  
    I still have an arduino mega. Actually it is better to do it wired. Only I have yet to figure out how to connect 10 sensors to the esp
  • #12 19757015
    starob
    Level 29  
    Michal8883 wrote:
    Only I still haven't figured out how to connect 10 sensors to the esp
    .
    The sensors are nothing more than a button - they have a contact on their output.
    So the same as a button;
    https://microcontrollerslab.com/push-button-esp32-gpio-digital-input/
    You have the module, so upload the tasmota and start for now with the usual buttons "on the table". in small steps, first add one, then another.

    Read up on the rules to see if you can continue. Unfortunately, if you don't want a master system, you will have to go through this.
    https://tasmota.github.io/docs/Rules/
    https://tasmota.github.io/docs/Scripting-Language/

    It costs you nothing, apart from a bit of effort.
  • #14 19757054
    starob
    Level 29  
    Do you have the whole board,Connecting Xiaomi Aqara Door Sensor to ESP Wroom: Software Recommendations? or just the one in red?
  • ADVERTISEMENT
  • #16 19757101
    starob
    Level 29  
    Michal8883 wrote:
    I'm looking for something like this https://czh-labs.com/products/.... hRCh2izgfuEAQYCCABEgIEd D BwE
    .
    This one would also be suitable, it would just be enough to rename the names on the terminal blocks.
    There is nothing else there but a pin-screw connection;
    I have not seen anything else like it
  • #17 19759128
    Michal8883
    Level 5  
    Can you advise me on the best solution, as I am thinking of either building a display under the RPI to control e.g. domoticz and communicating with esp via wifi, or building on an arduino and plugging it under the RPI. Unless you have other ideas
  • #18 19759541
    starob
    Level 29  
    There is no best solution, it all depends on your skills and preferences
    Stay with esp wifi gives more flexibility.
    Domotycz seems easy at first, as most can be cobbled together and the implementation process is quick. However, as your needs grow, the limitations come out. As a first - is a good choice.

    The second (of many) is Home Assistant. It is a little more difficult, as it requires configuration via .yaml files and more learning. After that, it is fairly even.
    The advantage is a better mobile app and you can use a tablet instead of a display.

    If you don't want to decide now, put an MQTT broker on the RPI, which is also supported in Tasmote and EasyEsp (just like domoticz and HA).
    Then the transition of Domoticz<>HA will be painless (both support Mqtt).

Topic summary

The discussion revolves around connecting Xiaomi Aqara Door Sensors to ESP Wroom modules. It is clarified that Xiaomi's ZigBee sensors require a specific gateway for connectivity, as they do not operate over Wi-Fi. Users express interest in connecting wireless reed switches and PIR detectors via Wi-Fi to ESP Wroom, seeking software solutions for programming. Recommendations include using Tasmota, ESP Easy, or Espurna for programming the ESP, and integrating with IoT systems like Home Assistant or Domoticz. The challenges of power consumption for Wi-Fi sensors and the potential use of 433MHz RF sensors are also discussed. Users are encouraged to consider ready-made solutions like Sonoff 433MHz sensors for ease of use. The conversation highlights the importance of understanding the capabilities and limitations of different systems and sensors for effective home automation.
Summary generated by the language model.
ADVERTISEMENT