---
title: "Home-Office-Project-Chanathip"
url: "https://maker.wiznet.io/Hannah/projects/home-office-project-chanathip/"
markdown_url: "https://maker.wiznet.io/Hannah/projects/home-office-project-chanathip/md"
type: "UCC: User Created Content"
author: "CprE-KMUTNB"
author_url: "https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "CprE-KMUTNB"
original_url: "https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip"
published: "2024-08-05"
language: "en"
likes: 0
views: 575
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Home-Office-Project-Chanathip

> The Home office automation project

Original author: CprE-KMUTNB (source: https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip)

## Article

Here's that plan of this project

[![image](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/raw/main/images/diagram_svg.svg)](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/blob/main/images/diagram_svg.svg)
Project Diagram

## Overview

<https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip#overview>

In this project there consists of 5 parts that are works together.

1. Node-RED
Node-RED is a Open Source Low-Code platform written in Javascript which is run as a backend for the whole project. It's also connects to the database like `influxdb` to store and get query the data of the rfid module and then Node-RED is also connected to Zigbee2MQTT service through MQTT to expand the possibility of available devices.

[![image](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/raw/main/images/nodered.png)](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/blob/main/images/nodered.png)
Node-RED Flows

2. ESP32 Relay board
This board is connected to the same WiFi network as the Node-RED and communicate with Node-RED through web-socket protocol. This board is powered by normal 5V power supply and be able to control 6 relays through web-socket command.

[![image](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/raw/main/images/relay_board.png)](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/blob/main/images/relay_board.png)
Relay Board

3. Zigbee Devices
These device connect to Node-RED by a dongle which forward the message to the MQTT broker through Zigbee2MQTT. Zigbee2MQTT also has it's own web interface so that we can config.

[![image](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/raw/main/images/dongle.jpg)](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/blob/main/images/dongle.jpg)
Zigbee Dongle

[![image](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/raw/main/images/gang_switch.png)](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/blob/main/images/gang_switch.png)
3 Gang Switch

4. Motion Detector
This device operates by sensing the motion sensor and and sends it to the [MQTT](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip#more-about-mqtt) broker

[![image](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/raw/main/images/motion_detect.png)](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/blob/main/images/motion_detect.png)
Motion Detector Module

5. Apple Homekit
Node-RED has module called [`node-red-contrib-homekit-bridged`](https://flows.nodered.org/node/node-red-contrib-homekit-bridged)which are capable of connecting Node-RED to Apple HomeKit app (as a bridge or a device) to connect the device to HomeKit through Node-RED

[![image](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/raw/main/images/homekit_interface.png)](https://github.com/CprE-KMUTNB/Home-Office-Project-Chanathip/blob/main/images/homekit_interface.png)
HomeKit App interface with devices

---

Source: https://maker.wiznet.io/Hannah/projects/home-office-project-chanathip/
