Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esphome with esp32s3 UART not work #16

Open
fantasiataiwan opened this issue Jan 3, 2024 · 1 comment
Open

esphome with esp32s3 UART not work #16

fantasiataiwan opened this issue Jan 3, 2024 · 1 comment

Comments

@fantasiataiwan
Copy link

Hi sir

I tried to use faikin to flash the ESPHome firmware, but UART looked not work.
Faikin's GPIO tx/rx is 48/34

ESPHome yaml:

esphome:
name: $name
comment: $upper_devicename
name_add_mac_suffix: false
platformio_options:
board_build.flash_mode: dio
board_build.mcu: esp32s3

esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
flash_size: 4MB
#framework:

type: esp-idf

version: recommended

external_components:
#- source: github://joshbenner/esphome-daikin-s21@main

components: [ daikin_s21 ]

  • source:
    type: local
    path: /config/custom_components
    components: [ daikin_s21 ]

uart:

  • id: s21_tx
    tx_pin: 48
    baud_rate: 2400
    data_bits: 8
    parity: EVEN
    stop_bits: 2

  • id: s21_rx
    rx_pin:
    number: 34
    inverted: true
    baud_rate: 2400
    data_bits: 8
    parity: EVEN
    stop_bits: 2

daikin_s21:
tx_uart: s21_tx
rx_uart: s21_rx

climate:

  • name: "${upper_devicename} Daikin"
    platform: daikin_s21
    visual:
    temperature_step: 1.0

binary_sensor:

  • platform: status
    name: "${upper_devicename} Status"

button:

  • platform: safe_mode
    name: Safe Mode Boot
    entity_category: diagnostic
  • platform: restart
    name: "${upper_devicename} Restart"

light:

  • platform: esp32_rmt_led_strip
    chipset: WS2812
    pin: GPIO47
    num_leds: 3
    rgb_order: GRB
    rmt_channel: 0
    name: "${upper_devicename} RGB LED"

sensor:

  • platform: daikin_s21
    inside_temperature:
    name: "${upper_devicename} Inside Temperature"
    outside_temperature:
    name: "${upper_devicename} Outside Temperature"
    coil_temperature:
    name: "${upper_devicename} Coil Temperature"
    fan_speed:
    name: "${upper_devicename} Fan Speed"

  • platform: wifi_signal
    name: "${upper_devicename} WiFi Signal"
    update_interval: 60s

  • platform: uptime
    name: "${upper_devicename} Uptime"
    filters:

    • lambda: return x / 3600;
      unit_of_measurement: "h"
      accuracy_decimals: 1
      text_sensor:
  • platform: version
    name: "${upper_devicename} ESPHome Version"

  • platform: wifi_info
    ip_address:
    name: "${upper_devicename} IP Address"

@joshbenner
Copy link
Owner

I'm not sure what type of failure you're experiencing, and reading your config without being wrapped in a code block is challenging. I'd suggest getting basic UART working without this component first. See the Debugging heading on the ESPHome UART bus page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants