logo elektroda
logo elektroda
X
logo elektroda

OpenHAB, ESP8266, MQTT, RaspberryPi: Smart Home Automation for Light/Gate Control and Setup

---trafopowielacz--- 9021 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16423755
    ---trafopowielacz---
    Level 23  
    Hello. I plan to create some intelligence and automation at home. Mainly light and gate control. I would like to do everything on ESP8266 modules and communication with them via MQTT. The server would be on RaspberryPi with OpenHAB software installed. Only now the question is how to program such an ESP8266 system? I have not dealt with them yet, I am still at the stage of atmega, uarta and BT HC-05. Can anyone suggest how to do this? Only software issues to establish a wifi connection, configure ports and it's MQTT. I am not familiar with Arduino, I can program in Bascom and I do not associate it with Lua or NodeMcu.

    Such an ESP bone would be appropriate? Would it replace atmega? link
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 16423924
    piterek-23
    Level 33  
    From what you write, you want to start everything from scratch. See the nettemp.pl forum, it may be easier for you to start.
    There we operate on Raspberry Pi and ESP8266 :)
  • ADVERTISEMENT
  • #3 16424012
    ---trafopowielacz---
    Level 23  
    I have a basic question. What language is ESP8266 Programmed in?
  • ADVERTISEMENT
  • #4 16424198
    ditomek
    Level 22  
    You can program Esp8266 and all other tiles with it on board from the Arduino environment. You just need to install an additional package that supports 8266. there are many instructions on how to do this. And I must admit that this is the easiest way of programming. In addition, I advise you to equip yourself in Nodemcu or similar.
    After installing ESP8266 support in the IDE arduino there will be a whole bunch of examples that will show how to connect to the network etc.
  • #5 16424205
    piterek-23
    Level 33  
    When I play ESP, I write programs in LUA :)
  • #6 16424486
    ---trafopowielacz---
    Level 23  
    Is NodeMcu a device or software for ESP? I would rather do something myself and not upload the ready arduino program. Pure ESP8266 is not enough to write in Lua? I have a Usb-Uart.
  • #7 16425922
    ditomek
    Level 22  
    You really didn't think of typing the word nodemcu in Google?
    For 30 PLN you have a plate that has everything on it: ESP, USB converter, pins pinned and described, two buttons, LED
  • ADVERTISEMENT
  • #8 16432679
    kosmogon
    Level 14  
    ---trafopowielacz--- wrote:
    I would rather do something myself and not upload the ready arduino program.


    And who said you need to upload cash? If you want to write the program your own way, write.
  • #9 16446790
    pawel3110
    Level 15  
    Check espeasy. It can be enough or good to start with.
  • #10 16447657
    DJ MHz
    Level 25  
    I recommend espeasy. I have it combined with domoticz on a raspberry. Control of lighting, relays, devices, for this now I add extra support for infrared equipment and issuing commands to the system with one remote control.
  • #11 16546003
    robja
    Level 15  
    I don't really see the sense of doing electronics or software on average
    As for ready ESP modules there are executive modules with relays, infrared, dimmers, 230V power supply.
    can be mounted:
    - up to 4 relays,
    - infrared receiver
    - infrared transmitter
    - infrared sensor
    - 230V power supply
    - connectors needed

    smart home wifi
    It can work on the open eHouse TCP / IP protocol connecting to the server
    eHouse lan / wifi communication protocol
    you can also refer via HTML request or control via WWW directly.
    or you can program it yourself by connecting the programmer to the appropriate pins of the controller

    The firmware of the eHouse controller includes drive control, switching on / off inputs, dimming lighting, 3 LED dimmers 12VDC / 3A PWM, control is from an IR remote control in the SONY standard, Audio / Video equipment control (broadcast in dozens of infrared standards). So it's probably better to send control commands than to break open doors and program a few months.
  • #12 16582229
    Espablo
    Level 14  
    And I recommend the free SUPLA project. I have several inCan flush modules on ESP-12 placed on it. However, you can successfully use most modules based on ESP8266, e.g. NodeMcu + relays.

Topic summary

The discussion revolves around setting up a smart home automation system using ESP8266 modules for light and gate control, with MQTT communication and a Raspberry Pi running OpenHAB. Users suggest starting with the Arduino IDE for programming the ESP8266, as it simplifies the process by providing numerous examples. NodeMCU is recommended for its ease of use, and alternatives like ESPEasy and SUPLA are mentioned for their compatibility with ESP8266 modules. The conversation also touches on the possibility of using ready-made ESP modules with integrated relays and other components, as well as the option to program the ESP8266 directly without relying on pre-built solutions.
Summary generated by the language model.
ADVERTISEMENT