Tenho vindo a flashar alguns equipamentos Over-the-Air com o tuya-cloudcutter
Hoje flashei um termostato com ESPHome
LibreTiny ESPHome yaml
# BHT-006GBW Thermostat
esphome:
name: thermostat
friendly_name: Thermostat
libretiny:
board: generic-bk7231n-qfn32-tuya
framework:
version: dev
logger:
baud_rate: 0
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
password: !secret wifi_password
captive_portal:
web_server:
uart:
rx_pin: P10
tx_pin: P11
baud_rate: 9600
time:
- platform: homeassistant
id: ha_time
tuya:
time_id: ha_time
climate:
- platform: tuya
name: "Termostato"
switch_datapoint: 1
target_temperature_datapoint: 16
current_temperature_datapoint: 24
active_state_datapoint: 3
active_state_heating_value: 0
eco_datapoint: 4
eco_temperature: 20 °C
temperature_multiplier: 0.1
visual:
min_temperature: 10 °C
max_temperature: 30 °C
temperature_step: 0.5 °C
sensor:
- platform: tuya
name: "Temperatura"
device_class: "temperature"
sensor_datapoint: 24
unit_of_measurement: "°C"
accuracy_decimals: 1
filters:
- multiply: 0.1
- platform: tuya
name: "Temperatura Sensor Externo"
device_class: "temperature"
sensor_datapoint: 101
unit_of_measurement: "°C"
accuracy_decimals: 1
filters:
- multiply: 0.1
switch:
- platform: tuya
name: "Modo Económico"
icon: mdi:leaf
switch_datapoint: 4
- platform: tuya
name: "Travar Painel"
icon: mdi:lock
switch_datapoint: 40
select:
- platform: tuya
name: "Programa"
enum_datapoint: 2
options:
0: Agendamento
1: Manual
- platform: tuya
name: "Sensor Temperatura"
enum_datapoint: 102
options:
0: Interno
2: Externo
1: Interno e Externo