I’m lost with the libretiny configuration on a device with MCU, it’s a light switch with 3 touch keys.
I currently have this device with openbeken and below is the configuration of the autoexec.bat file:
startDriver TuyaMCU
setChannelType 1 toggle
linkTuyaMCUOutputToChannel 1 1 1
setChannelType 2 toggle
linkTuyaMCUOutputToChannel 2 1 2
setChannelType 3 toggle
linkTuyaMCUOutputToChannel 3 1 3
Is the configuration below correct?
esphome:
name: testetuya1
friendly_name: testetuya1
bk72xx:
board: generic-bk7231t-qfn32-tuya
# framework:
# version: dev
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "sghDalrd+R6biWwqSQLLysLJgLaQ/F5o2wCNJUnTOG4="
ota:
password: "2c103b047a62734ff0e396db36155aa9"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Testetuya1 Fallback Hotspot"
password: "SwjVE4Xwe0B5"
captive_portal:
web_server:
port: 80
uart:
rx_pin: P10
tx_pin: P11
baud_rate: 9600
# Register the Tuya MCU connection
tuya:
light:
- platform: "tuya"
name: "Lavanderia"
switch_datapoint: 1
- platform: "tuya"
name: "Entrada"
switch_datapoint: 2
- platform: "tuya"
name: "Frente"
switch_datapoint: 3