libretiny icon indicating copy to clipboard operation
libretiny copied to clipboard

My S06 IR so hot after flash

Open duongvanba opened this issue 2 years ago • 12 comments

After flash with libretiny, my S06 so hot, tooo hot How can we fix that, is this problem with my chip or software problem ? Thank

duongvanba avatar Jul 02 '23 17:07 duongvanba

What is S06? If the chip is getting hot, it's likely that you overloaded it with too high voltage (for example 5V instead of 3.3V). What is the chip in that device? I'm afraid I'll need more details to help.

kuba2k2 avatar Jul 02 '23 17:07 kuba2k2

It is CBU chip (BK7231N) I see 5V 0.5A in its case It is tuya product to send IR signal with tuya/smartlife app

duongvanba avatar Jul 04 '23 18:07 duongvanba

How are you powering it for flashing? What voltage did you apply and where? A photo could also help.

kuba2k2 avatar Jul 04 '23 20:07 kuba2k2

I don't do anything with power With original firmware from tuya, device working well without hot problem I flashed with openbeken and no problem happend But after flashed to esphome it hot and so hot Both of tuya s06 and 06 pro same problem Can you check ? Thank so much

duongvanba avatar Jul 22 '23 04:07 duongvanba

I have s06 pro, working for a few months already, and no issues.

rakalex avatar Jul 26 '23 16:07 rakalex

esphome:
  name: s06-pro
  friendly_name: s06-pro

libretiny:
  board: generic-bk7231t-qfn32-tuya
  framework:
    version: dev

# Enable Home Assistant API
api:
  encryption:
    key: ""

ota:
  password: ""

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true
  
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "S06-Pro Fallback Hotspot"
    password: ""

captive_portal:

# Enable logging
logger:
  baud_rate: 0

uart:
  rx_pin: D6
  tx_pin: D7
  baud_rate: 9600

tuya:

status_led:
  pin:
    number: D5

sensor:
  - platform: "tuya"
    id: temp
    name: "Temperature"
    sensor_datapoint: 101
    device_class: "temperature"
    unit_of_measurement: "°C"
    state_class: "measurement"
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
    - offset: -0.8

  - platform: "tuya"
    name: "Humidity"
    sensor_datapoint: 102
    device_class: "humidity"
    unit_of_measurement: "%"
    state_class: "measurement"
    accuracy_decimals: 1

remote_transmitter:
  id: tamtr 
  pin:
    number: D17
  carrier_duty_percent: 50%      

rakalex avatar Jul 26 '23 16:07 rakalex

Hi @rakalex How about receiver PIN

duongvanba avatar Jul 27 '23 06:07 duongvanba

@duongvanba

remote_receiver: id: rcvr pin: number: D4 inverted: True mode: input: True pullup: true tolerance: 55%

climate:

  • platform: mitsubishi id: ac name: AC sensor: temp transmitter_id: tamtr receiver_id: rcvr set_fan_speeds: fan_low: "fan2" fan_medium: "fan3" fan_hi: "fan4" horizontal_default: "left" vertical_default: "down"
    visual: min_temperature: 18 max_temperature: 30 temperature_step: target_temperature: 1 current_temperature: 0.1

also no issue, I use it as Climate for my Mitsubishi AC.

rakalex avatar Jul 27 '23 09:07 rakalex

Can you check my config, i added it to hass successfully but can not control my AC. Although it can detect remote control and change status on hass when I press button on my remote

esphome:
  name: s06-pro
  friendly_name: s06-pro

libretiny:
  board: generic-bk7231t-qfn32-tuya
  framework:
    version: dev

# Enable logging
logger:
  level: DEBUG
  baud_rate: 0

# Enable Home Assistant API
api:
  encryption:
    key: "v1G36UtqDwcIZAuc3zjIH3KUI76RfKqUeRqkulwiasv="
    
  # services:
  #   - service: send_raw_command
  #     variables:
  #       command: int[]
  #     then:
  #       - remote_transmitter.transmit_raw:
  #           code: !lambda 'return command;'


ota:
  password: "c4f533ef8d08ec2b89f3a5b0bab95514"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "S06-Pro Fallback Hotspot"
    password: ""

captive_portal: 

uart:
  rx_pin: D6
  tx_pin: D7
  baud_rate: 9600

tuya:

status_led:
  pin:
    number: D5

sensor:
  - platform: "tuya"
    id: temp
    name: "Temperature"
    sensor_datapoint: 101
    device_class: "temperature"
    unit_of_measurement: "°C"
    state_class: "measurement"
    accuracy_decimals: 1
    filters:
    - multiply: 0.1
    - offset: -0.8

  - platform: "tuya"
    name: "Humidity"
    sensor_datapoint: 102
    device_class: "humidity"
    unit_of_measurement: "%"
    state_class: "measurement"
    accuracy_decimals: 1

remote_receiver:
  id: ir_rx
  pin: 
    number: D4
    inverted: True
    mode: INPUT_PULLUP
  dump: raw

remote_transmitter:
  pin: 
    number: D17
  carrier_duty_percent: 50%
  id: ir_tx

climate:
  - platform: climate_ir_lg    
    name: "Kiara master climate"
    supports_cool: True
    supports_heat: True 
    transmitter_id: ir_tx
    receiver_id: ir_rx
    header_high: 3265us
    header_low: 9856us 

duongvanba avatar Jul 27 '23 10:07 duongvanba

It looks correct to me, maybe Esphome doesn't support your AC? I have 2 AC, one is Mitsubishi Electric - it's working, another Mitsubishi Heavy Industries - which doesn't support it.

rakalex avatar Jul 27 '23 10:07 rakalex

So strange But i've successfully controled my AC with libretinty esphome before How do you start docker container for building firmware, manual build or pull from github Can you help me checking my docker-compose file

version: '3'
services:  

  libretiny-esphome:
    container_name: esphome-libretiny
    image: ghcr.io/libretiny-eu/libretiny-esphome-docker:latest
    volumes:
      - ./libretiny-esphome/configs:/config:rw 
      - /etc/localtime:/etc/localtime:ro
    restart: always
    privileged: false
    network_mode: host

I think it pull from

ghcr.io/libretiny-eu/libretiny-esphome-docker:latest

but i think this link is not newest version

duongvanba avatar Jul 27 '23 10:07 duongvanba

@duongvanba I'm using it as Addon on HA.

https://github.com/libretiny-eu/esphome-hass-addon

rakalex avatar Jul 27 '23 11:07 rakalex