# LoRa Home Control

A handmade CYD control panel with long-range room sensors.

用 CYD 触摸屏和远距离传感器打造自己的家庭控制面板。

- id: jbil-kebir-home-assist-esp32-cyd
- author: jbil-kebir
- repository: https://github.com/jbil-kebir/Home-Assist-ESP32-CYD
- license: MIT
- shape: wide
- scenes: home
- boards: ESP32 CYD, ESP32-C3, ESP32-S3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/jbil-kebir-home-assist-esp32-cyd/
- html_zh: https://esp32gallery.com/zh/projects/jbil-kebir-home-assist-esp32-cyd/
- json: https://esp32gallery.com/data/catalog/projects/jbil-kebir-home-assist-esp32-cyd.json

## Hardware

ESP32-C3/S3 sensor nodes, LoRa P2P, MQTT gateway and a CYD touchscreen. Wiring and radio requirements depend on the upstream build.

## English

```
LoRa P2P carries readings from battery-powered room sensors up to the CYD touch controller, which also speaks MQTT; a separate ESP32-S3 gateway relays LoRa packets into MQTT for Home Assistant, and an Android app built with Flutter watches and drives the actuators. Sensors report temperature and humidity through a DHT20, wired temperature with a DS18B20, battery level, a float switch and colour/light with a TCS34725. Old 433 MHz CC1101 gear is still supported. Deep sleep is tuned so a sensor runs for months on AA cells. Each ESP32 subfolder is its own PlatformIO project with its own platformio.ini, with esp32c3 and esp32s3 environments; the Flutter app needs SDK 3.11 or newer and asks for the MQTT broker address on first launch.
```

## 中文

```
房间里的电池传感器用 LoRa P2P 把读数送到带触摸屏的 CYD 主控，主控同时挂在 MQTT 上；另有一块 ESP32-S3 当网关，收 LoRa 再转成 MQTT，交给 Home Assistant。手机端是 Flutter 写的安卓应用，看数据也控制投影仪、灯串、暖气和锅炉。传感器测的是 DHT20 温湿度、DS18B20 有线温度、电池电量、浮子开关，以及 TCS34725 的颜色和亮度；老的 433 MHz CC1101 设备也还能接。深度睡眠调过，两节 AA 电池能撑几个月。每个 ESP32 子目录都是独立的 PlatformIO 工程，各有自己的 platformio.ini，提供 esp32c3 和 esp32s3 环境；Flutter 应用要求 SDK 3.11 以上，首次启动要填 MQTT broker 的地址和端口。
```
