SmartHome
SERIES
🌐 VI • EN[OpenHAB] Xiaomi LYWSD03MMC Temperature and Humidity Sensor with ESPHome on ESP32-C3
![[OpenHAB] Xiaomi LYWSD03MMC Temperature and Humidity Sensor with ESPHome on ESP32-C3](/images/smarthome/lywsd03mmc_hu_a264d489366bcf78.webp)
TABLE OF CONTENTS (Nhấn để xem)
Requirements
- OpenHAB version: 4.3.3
- The MQTT binding is installed.
LYWSD03MMCsensors — see Shopee . Flash them with theATC_MiThermometercustom firmware (guide).- An ESP32 or ESP32-C3 SuperMini. For an ESP32-C3 SuperMini, a model with an antenna is recommended (see Shopee).

Build with ESPHome
- See the ESPHome project here.
- Install ESPHome on your PC using this guide.
- The following configuration sends data to the MQTT broker.
| |
- Line 24 configures the OTA update password.
- Lines 27-28 configure Wi-Fi.
- Lines 31-33 configure the MQTT broker.
- Lines 44, 48, 52, and 61 contain the sensor Bluetooth MAC addresses.
Check the MQTT broker to confirm that it has received the sensor data.
Configure the Things in OpenHAB
UID: mqtt:topic:17653025f5:lywsd03mmc
label: LYWSD03MMC Sensors
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:17653025f5
channels:
- id: pKhach_Temperature
channelTypeUID: mqtt:number
label: pKhach Temperature
description: ""
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pkhach_temperature/state
- id: pKhach_Humidity
channelTypeUID: mqtt:number
label: pKhach Humidity
description: ""
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pkhach_humidity/state
- id: pKhach_Battery_Level
channelTypeUID: mqtt:number
label: pKhach Battery Level
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pkhach_battery_level/state
- id: pNgu_Temperature
channelTypeUID: mqtt:number
label: pNgu Temperature
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pngu_temperature/state
- id: pNgu_Humidity
channelTypeUID: mqtt:number
label: pNgu Humidity
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pngu_humidity/state
- id: pNgu_Battery_Level
channelTypeUID: mqtt:number
label: pNgu Battery Level
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pngu_battery_level/state
- id: pKhach_BLE_RSSI
channelTypeUID: mqtt:number
label: pKhach BLE RSSI
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pkhach_ble_thermometer_rssi/state
- id: pNgu_BLE_RSSI
channelTypeUID: mqtt:number
label: pNgu BLE RSSI
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/pkhach_ble_thermometer_rssi/state
- id: LYWSD03MMC_WIFI_Signal_Level_dB
channelTypeUID: mqtt:number
label: LYWSD03MMC Sensors WIFI Signal Level dBm
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/wifi_signal_db/state
- id: LYWSD03MMC_WIFI_Signal_Level_Percent
channelTypeUID: mqtt:number
label: LYWSD03MMC Sensors WIFI Signal Level Percent
configuration:
stateTopic: lywsd03mmc-mqtt-00b368/sensor/wifi_signal_percent/state
- id: LYWSD03MMC_Sensors_Status
channelTypeUID: mqtt:string
label: LYWSD03MMC Sensors Status
configuration:
stateTopic: lywsd03mmc-mqtt/status
TAGS:
#openhab
Series
•
4 TậpSmartHome
- [OpenHAB] Share a Vietnamese Lunar Calendar Script for OpenHAB
- [OpenHAB] Xiaomi LYWSD03MMC Temperature and Humidity Sensor with ESPHome on ESP32-C3 Reading
- [OpenHAB] Energy Meter with PZEM004T and ESPHome on ESP32-C3
- [OpenHAB] Share a Remote-Control Widget for LG WebOS TV
Discussion & Feedback 0
Share your questions, feedback or insights with the community