OpenBeken + WVC Microinverter (Tuya MCU) – Working dpID Mapping
I successfully integrated a WVC microinverter (Tuya MCU, BK7231N) with OpenBeken and mapped the correct dpIDs without needing RAW parsing.
* WVC microinverter (Tuya-based)
* BK7231N WiFi module
* OpenBeken 1.18.x
---
* **103 → AC Power (actual output)** ✅
* **102 → DC Power (panel input)** ✅
* **18 → Temperature** ✅
* **101 → ON/OFF** ✅
---
* **dpID 103 is the correct AC power** (matches Tuya app precisely)
* **dpID 10 looks similar but is inaccurate → do NOT use**
* **dpID 7 contains RAW data (power, voltage, etc.), but parsing is not needed**
* Some dpIDs are scaled or internal values and may be misleading
---
```id="hpr2r3"
startDriver TuyaMCU
tuyaMcu_setBaudRate 115200
tuyaMcu_defWiFiState 4
linkTuyaMCUOutputToChannel 101 1 1
linkTuyaMCUOutputToChannel 103 2 2
linkTuyaMCUOutputToChannel 18 2 3
linkTuyaMCUOutputToChannel 102 2 4
setChannelType 2 Power
setChannelType 3 Temperature
setChannelType 4 Power
setChannelLabel 1 state
setChannelLabel 2 power_ac
setChannelLabel 3 temperature
setChannelLabel 4 power_dc
```
---
Use a unique device name:
```id="1vzwax"
MqttClient sklad_vzadu
```
For multiple units:
```id="eygd4m"
sklad_vzadu_1
sklad_vzadu_2
...
```
---
After changing device name or configuration, remove old retained MQTT discovery topics to avoid duplicate entities.
---
* Accurate AC and DC power readings
* Temperature monitoring
* ON/OFF control
* Full MQTT integration with Home Assistant
---
This setup works reliably and avoids unnecessary reverse engineering of RAW Tuya data.
startDriver TuyaMCU
tuyaMcu_setBaudRate 115200
tuyaMcu_defWiFiState 4
linkTuyaMCUOutputToChannel 101 1 1
linkTuyaMCUOutputToChannel 102 2 2
linkTuyaMCUOutputToChannel 103 2 3
linkTuyaMCUOutputToChannel 18 2 4
linkTuyaMCUOutputToChannel 2 2 5
setChannelType 1 Toggle
setChannelType 2 Power_div10
setChannelType 3 Power_div10
setChannelType 4 Temperature
setChannelType 5 EnergyTotal_kWh_div100
setChannelLabel 1 "Switch"
setChannelLabel 2 "Vykon DC"
setChannelLabel 3 "Vykon"
setChannelLabel 4 "Teplota"
setChannelLabel 5 "Celkova energia"
flags 40 1
MqttClient sklad_vzadu
ShortName sklad_vzadu
I successfully integrated a WVC microinverter (Tuya MCU, BK7231N) with OpenBeken and mapped the correct dpIDs without needing RAW parsing.
Device
* WVC microinverter (Tuya-based)
* BK7231N WiFi module
* OpenBeken 1.18.x
---
Working dpIDs
* **103 → AC Power (actual output)** ✅
* **102 → DC Power (panel input)** ✅
* **18 → Temperature** ✅
* **101 → ON/OFF** ✅
---
Important Notes
* **dpID 103 is the correct AC power** (matches Tuya app precisely)
* **dpID 10 looks similar but is inaccurate → do NOT use**
* **dpID 7 contains RAW data (power, voltage, etc.), but parsing is not needed**
* Some dpIDs are scaled or internal values and may be misleading
---
OpenBeken Configuration
```id="hpr2r3"
startDriver TuyaMCU
tuyaMcu_setBaudRate 115200
tuyaMcu_defWiFiState 4
ON/OFF
linkTuyaMCUOutputToChannel 101 1 1
AC Power
linkTuyaMCUOutputToChannel 103 2 2
Temperature
linkTuyaMCUOutputToChannel 18 2 3
DC Power
linkTuyaMCUOutputToChannel 102 2 4
setChannelType 2 Power
setChannelType 3 Temperature
setChannelType 4 Power
setChannelLabel 1 state
setChannelLabel 2 power_ac
setChannelLabel 3 temperature
setChannelLabel 4 power_dc
```
---
MQTT Recommendation
Use a unique device name:
```id="1vzwax"
MqttClient sklad_vzadu
```
For multiple units:
```id="eygd4m"
sklad_vzadu_1
sklad_vzadu_2
...
```
---
Home Assistant Note
After changing device name or configuration, remove old retained MQTT discovery topics to avoid duplicate entities.
---
Result
* Accurate AC and DC power readings
* Temperature monitoring
* ON/OFF control
* Full MQTT integration with Home Assistant
---
This setup works reliably and avoids unnecessary reverse engineering of RAW Tuya data.
autoexec.bat
startDriver TuyaMCU
tuyaMcu_setBaudRate 115200
tuyaMcu_defWiFiState 4
linkTuyaMCUOutputToChannel 101 1 1
linkTuyaMCUOutputToChannel 102 2 2
linkTuyaMCUOutputToChannel 103 2 3
linkTuyaMCUOutputToChannel 18 2 4
linkTuyaMCUOutputToChannel 2 2 5
setChannelType 1 Toggle
setChannelType 2 Power_div10
setChannelType 3 Power_div10
setChannelType 4 Temperature
setChannelType 5 EnergyTotal_kWh_div100
setChannelLabel 1 "Switch"
setChannelLabel 2 "Vykon DC"
setChannelLabel 3 "Vykon"
setChannelLabel 4 "Teplota"
setChannelLabel 5 "Celkova energia"
flags 40 1
MqttClient sklad_vzadu
ShortName sklad_vzadu