Smart Home Automation Forum
KinCony ESP32-S3 Core Board ESPHome yaml for home assistant - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: Extender module (https://www.kincony.com/forum/forumdisplay.php?fid=57)
+--- Thread: KinCony ESP32-S3 Core Board ESPHome yaml for home assistant (/showthread.php?tid=5716)



KinCony ESP32-S3 Core Board ESPHome yaml for home assistant - admin - 05-10-2024

Code:
esphome:
  name: s3
  friendly_name: s3
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf

# Enable logging
logger:
  hardware_uart: USB_SERIAL_JTAG

ethernet:
  type: W5500
  clk_pin: GPIO43
  mosi_pin: GPIO44
  miso_pin: GPIO42
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1

uart:
  - id: uart_485
    baud_rate: 9600
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
    tx_pin: 16
    rx_pin: 15

  - id: uart_sim7600
    baud_rate: 115200
    debug:
      direction: BOTH
      dummy_receiver: true
      after:
        timeout: 10ms
      sequence:
        - lambda: UARTDebug::log_string(direction, bytes);
    tx_pin: 18
    rx_pin: 17

switch:
  - platform: uart
    uart_id: uart_485
    name: "RS485 Button"
    data: [0x11, 0x22, 0x33, 0x44, 0x55]

  - platform: uart
    uart_id: uart_sim7600
    name: "UART 4G"
    data: "AT+CGSN\r\n" # read 4G SIM7600 ID

binary_sensor:

  - platform: gpio
    name: "S3 TMP1"
    pin:
      number: 8
      inverted: true

  - platform: gpio
    name: "S3 TMP2"
    pin:
      number: 40
      inverted: true

  - platform: gpio
    name: "S3 DL"
    pin:
      number: 0
      inverted: true

  - platform: gpio
    name: "S3 SDA"
    pin:
      number: 39
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 SCL"
    pin:
      number: 38
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO10"
    pin:
      number: 10
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO11"
    pin:
      number: 11
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO12"
    pin:
      number: 12
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO13"
    pin:
      number: 13
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO14"
    pin:
      number: 14
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO21"
    pin:
      number: 21
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO47"
    pin:
      number: 47
      inverted: true
      mode:
        input: true
        pullup: true

  - platform: gpio
    name: "S3 IO48"
    pin:
      number: 48
      inverted: true
      mode:
        input: true
        pullup: true

sensor:

  - platform: adc
    pin: 4
    name: "S3 IO04 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

  - platform: adc
    pin: 5
    name: "S3 IO05 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

  - platform: adc
    pin: 6
    name: "S3 IO06 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

  - platform: adc
    pin: 7
    name: "S3 IO07 Current"
    update_interval: 2s
    unit_of_measurement: V
    attenuation: 11db
    filters:
      - multiply: 5

web_server:
  port: 80
yaml file download: 
.txt   S3-HA.txt (Size: 3.5 KB / Downloads: 103)


RE: KinCony ESP32-S3 Core Board ESPHome yaml for home assistant - jhobson - 07-30-2024

How can this be used with framework = arduino instead ?

ESP-IDF does NOT allow the use of the ESPHome OTA and having the ability to upload firmware via the webserver interface.
You can't just change to to usr arduino either, as that then causes causes a compile to fail, due to  'USB_SERIAL_JTAG' being used.

Is there anyway that logger can use hardware = USB_CDC instead? That would then allow framework = arduino to be used.

Also with 9-24V input being required to power the board (not even USB power), why doesn't this also include a 5V output, to allow powering the vast number of sensors that require 5V to run?
With this sorted, this would be a good 'mass use' board, allowing placing a bunch in a DIN cabinet and using to monitor sensors.
POE HAT would be nice, instead of 4G module.


Thanks,

Justin


RE: KinCony ESP32-S3 Core Board ESPHome yaml for home assistant - admin - 07-30-2024

How can this be used with framework = arduino instead ? Sure, you can use arduino. I use ESP-IDF, just debug my code while can enable 'USB_SERIAL_JTAG' .
Is there anyway that logger can use hardware = USB_CDC instead? That would then allow framework = arduino to be used. Now no this way, ESPHome not support that way.
Because we suggest sensor's power use another power supply. if many sensor use 5v power from board, maybe let the board not stable. because we don't know what sensor or how many sensors will connected. if you want use POE, you can add a POE adapter. This time, we just want board smallerSmile maybe in furture we can update, thanks for suggestion.