Home Assistant & Industrial Automation System
Introduction: Home Assistant & Industrial Automation System
The "Internet of Things" is the biggest current change nowadays, more and more home and industrial devices can be communicated together in its network. The protocol "Message Queue Telemetry Transport" (abbreviated: MQTT) is used in the I.o.T and I.I.o.T as a potential communication protocol.
My project shows how to combine Home Assistant and Industrial Automation System together by MQTT protocol. By this way, all home & industrial devices can be controlled and monitored by Home Assistant dashboard from laptop/ tablet or smart phone, and even they can be controlled by a portable ESP32-powered screen like M5Stack Core 2.
Let's getting started.
Step 1: Supplies
Main components are included as follows:
* 1pcs x Raspberry Pi 4 Model B.
* 1pcs x M5Stack® Core2 ESP32.
* 2pcs x SONOFF Basic 10A 2200W.
* 1pcs x M5StickC ESP32: https://www.digitspace.com/m5stickc-esp32-pico-min... or https://www.banggood.com/M5StickC-ESP32-PICO-Color...
* 1pcs x NodeMCU ESP8266.
* 1pcs x Xiaomi AIoT Router AX3600. I used a common switch/ router TP-LINK but I found that XIAOMI has a router that supports IOT. I think it should work better when there are more devices connected to the network.
* 1pcs x 4 Channels Relay Module or 8 Channels Relay Module.
* 1pcs x Siemens PS307 – 5A: SIMATIC S7-300 Regulated power supply input: 120/230 V AC, output: 24 V/5 ADC.
* 1pcs x Siemens CPU314C-2DP.
* 1pcs x Siemens CP 343-1 Lean: Communications processor CP 343-1 Lean for connection of SIMATIC S7-300 to Industrial Ethernet.
* Profibus remote I/O station ET200S, including:
⦾. 1pcs x Interface module IM151-1.
⦾. 1pcs x PM-E power modules for ET 200S.
⦾. 382
1pcs x Module 2AI RTD for 2-/3-/4-wire sensors: I used this module to read temperature from PT100.
⦾. And some more ET200S input modules/ ouput modules: 2AI, 2AO ... for futher testing.
* 4pcs x Relays 24VDC.
* 6pcs x Lamps 220V.
* 1 meters Profibus cables and 2pcs x Profibus connectors.
* LAN cables.
* 1pcs x FT232RL FTDI USB To TTL: for flashing Tasmota firmware.
* 1pcs x Siemens S7-200-300 / 400 PLC programming adapter cable.
* Some 1.5mm cables.
Step 2: Softwares, Firmwares and Add-ons.
The softwares required for this project include:
* SIMATIC Step 7 V5.6: is a Siemens PLC S7-300/ S7-400 programming software.
* Home Assistant For Raspberry Pi.
* Home Assistant Add-ons:
⦾. Node-RED: is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways. It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single click. Extension node-red-contrib-s7 need to be install to interact with Siemens S7 PLCs.
⦾. ESPHome: is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
⦾. Mosquitto Broker.
⦾. Home Assistant Community Store HACS: HACS gives us a powerful UI to handle downloads of all our custom needs.
* HomePoint: It can control your MQTT Home Devices from an ESP32-powered screen.
* Tasmotizer: The full-featured flashing tool for Tasmota.
* ESPHome-flasher: It is designed to make flashing ESPs devices with ESPHome.
* Python.
Step 3: Project Descriptions
There are 3 device groups in my Home Assistant Dashboard, as follows:
1. 977