Tuya-Cloudcutter

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

2 Curtiram

Estas lâmpadas tambem foram flashadas Over-the-Air mas desta vez usei o firmware OpenBeken que é muito semelhante ao Tasmota

3 Curtiram

Obrigado pela partilha já tinha ouvido falada desse firmware mas desconhecia ser semelhante ao tasmota.

Venho aqui deixar o feedback no Tuya Smart IR
Link: Page Not Found - Aliexpress.com
Exploit usado Cloud-tuya-cutter: 2.0.0 - BK7231N / oem_bk7231n_irbox_mol_ty
Configuração esphome específica do dispositivo:

---
substitutions:
  hostname: esp-tuya-ir
  name: Tuya IR

esphome:
  name: $hostname

bk72xx:
  board: cb3s

# falta wifi....secret etc.

remote_transmitter:
  id: ir_tx
  pin: P26
  carrier_duty_percent: 50%

remote_receiver:
  id: ir_rx
  pin:
    number: P7
    mode: INPUT_PULLUP
    inverted: true
  dump: all

output:
  - platform: libretiny_pwm
    pin: P8
    frequency: 1000 Hz
    id: pwm_output

light:
  - platform: monochromatic
    output: pwm_output
    name: "IR Status Light"

binary_sensor:
  - platform: gpio
    pin:
      number: P6
      mode:
        input: true
        pullup: true
      inverted: true
    name: "IR Button"

switch:
  - platform: template
    name: Power TV
    id: power_tv
    turn_on_action:
      - remote_transmitter.transmit_samsung:
          data: 0xE0E040BF

Feedback da sirene Blitzwolf BW-IS11
Link: https://www.blitzwolfeurope.com/BlitzWolf-BW-IS11-Wi-Fi-Smart-Siren-Alarm-90dB
Exploit usado Cloud-tuya-cutter: bk7231t-common-user-config-ty-1.1.71-sdk-1.0.2-40.00
Configuração esphome específica do dispositivo:

# Disable logging via UART, we need it for the Tuya MCU
logger:
  id: component_logger
  baud_rate: 0

# Becken Wifi chip WB3S/BK7231T - https://developer.tuya.com/en/docs/iot/wb3s-module-datasheet?id=K9dx20n6hz5n4
# Connected pins to board:  TXD1/RXD1/RXD2/TXD2/PWM1 and GND on one side, VCC on the other
# TXD1 and RXD1 are connected to Tuya MCU as per below UART defined connection
# LibreTiny board identification
bk72xx:
  board: wb3s

# Tuya MCU identified as HC32F003C4PA (https://jlcpcb.com/partdetail/XHSC-HC32F003C4PATSSOP20TR/C784649)
# Initialize the UART that connects to the Tuya MCU (via TXD1 and RXD1)
uart:
  rx_pin: P10
  tx_pin: P11
  baud_rate: 9600

# Register the Tuya MCU connection (https://esphome.io/components/tuya)
tuya:

# Siren State in form of problem binary sensor (similar to LocalTuya)
binary_sensor:
  - platform: "template"
    id: binary_sensor_siren_state
    name: "${device_name} State"
    device_class: problem
    icon: mdi:alarm-light
    lambda: |-
      if ( id(select_siren_mode).state == "Off" ) {
        return false;
      } else if ( id(select_siren_mode).state != "" ) {
        return true;
      } else {
        return {};
      }

# Siren Operation Mode (as in TuyaIOT platform)
# https://developer.tuya.com/en/docs/iot/f?id=K9gf47snd3n03
select:
  - platform: tuya
    id: select_siren_mode
    name: "${device_name} Mode"
    enum_datapoint: 1
    optimistic: true
    options:
      3: "Off" #normal
      1: "Light" #alarm_light
      0: "Sound" #alarm_sound
      2: "Sound + Light" #alarm_sound_light

# Siren Muffling/Mute (as in TuyaIOT platform)
# https://developer.tuya.com/en/docs/iot/f?id=K9gf47snd3n03
switch:
  - platform: "tuya"
    id: switch_siren_mute
    name: "${device_name} Mute"
    switch_datapoint: 16
2 Curtiram

Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade