Hello together,
I’m about to flash my first tuya devices, because the local key topic really sucks to me.
We have about 19 devices right now, and I’m starting with the MiBoxer Wifi 5 in 1 LED Strip Controller.
Right now, my Tuya cloud access is working again, so is there any possibility through the cloud API to check the built-in Wi-Fi MCU model?
Because of this article: MiBoxer WL5 LED Controller LED Controller (WL5) Configuration for Tasmota
I thought I have a WR3 chip, luckily I opened the device to find out, I actually have a CB3S chip.
Fortunately, this chip seams to be supported.
https://docs.libretiny.eu/boards/cb3s/
Now my first problem, is there any “easy” way to flash the chip via Tuya-Convert or so (without soldering)? I only found this blog (Flash Tuya CB3S Switches with OpenBeken | Coreforge).
If I have to solder, I would rather switch to a normal ESP32 chip.
Second problem, I’m still struggling with ESPHome config.
Though the cloud API, I found my important Tuya MCU DP:
20: switch_led
true = on
false = off
21: work_mode
color
white
scene
music
22: bright_value
0-1000
23: temp_value
0-1000
24: colour_data
HSV
104: switch_mode
single_color
dual_white
rgb
rgbw
rgbcct
105: pwm
low_frequency
high_frequency
How can I set up the switch select and transfer strings to the MCU?
I know, I have to use the provided library (Tuya MCU — ESPHome), but not how it should look like.
This is my current config:
uart:
rx_pin: 10
tx_pin: 11
baud_rate: 9600
tuya:
switch:
- platform: tuya
name: "ON/OFF"
switch_datapoint: 20
select:
- platform: tuya
name: "Work Mode"
enum_datapoint: 21
options:
"color": "Color"
"white": "White"
"scene": "Scene"
"music": "Music"
number:
- platform: tuya
name: "Brightness"
number_datapoint: 22
min_value: 0
max_value: 1000
step: 1
- platform: tuya
name: "Color Temperature"
number_datapoint: 23
min_value: 0
max_value: 1000
step: 1
light:
- platform: tuya
name: "RGBW Light"
dimmer_datapoint: 22
color_datapoint: 24
color_type: hsv
min_value: 0
max_value: 1000
default_transition_length: 0s
- platform: tuya
name: "Light Mode"
enum_datapoint: 104
options:
"single_color": "Single Color"
"dual_white": "Dual White"
"rgb": "RGB"
"rgbw": "RGBW"
"rgbcct": "RGBCCT"
- platform: tuya
name: "PWM Frequency"
enum_datapoint: 105
options:
"low_frequency": "Low Frequency"
"high_frequency": "High Frequency"
Thank you for input and any best practice tips or recommendations