esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
418 stars 26 forks source link

AHT-30 Temperature / Humidity Sensor Support (ESP32-S3-Box3 SENSOR-Dock) #2472

Closed ChristophCaina closed 10 months ago

ChristophCaina commented 11 months ago

Describe the problem you have/What new integration you would like The ESP32-S3-Box 3 comes with a Sensor-Docking Station. Part of this Station is an AHT30 Temperature and Humidity Sensor.

Based on the information I found, it is connected to the I2C of the Chip. grafik

SCL = GPIO40 SDA = GPIO41

Please describe your use case for this integration and alternatives you've tried: I've tried to set the Sensor up with the platform AHT-10, but the Sensor value in HA remains UNKNOWN It seems, that the AHT-30 is not yet supported by ESPHome, and it is not working with "AHT10" platform. https://github.com/espressif/esp-box/blob/master/docs/hardware_overview/esp32_s3_box_3/hardware_overview_for_box_3.md

In the Documentation

Additional context

taylorfinnell commented 10 months ago

With this https://github.com/esphome/esphome/pull/5198 I am getting correct values from my dock sensors (setting variant: aht20)

ChristophCaina commented 10 months ago

I just wanted to link this PR since it is now in the official release... :)

ChristophCaina commented 10 months ago

@taylorfinnell: Are you using the S3-Box3 default VoiceAssistant Firmware?

If yes - might you share your config? Because I am getting errors when adding the I2C component and other custom sensors... :-(

taylorfinnell commented 10 months ago

Yea, this works or seems to at first glance.

substitutions:
  name: esp32-s3-box-3-5ab3d8
  friendly_name: ESP32 S3 Box 3 5ab3d8
packages:
  esphome.voice-assistant: github://esphome/firmware/voice-assistant/esp32-s3-box-3.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}

api:
  encryption:
    key: "asdad"

ota:
  password: "asdasd"

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

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

i2c:
  - id: bus_a
    sda: GPIO08
    scl: GPIO18
    scan: true

  - sda: GPIO41
    scl: GPIO40
    id: bus_b

sensor:
  - platform: aht10
    i2c_id: bus_b
    variant: AHT20
    temperature:
      name: "Temperature"
    humidity:
      name: "Humidity"
    update_interval: 1s
ChristophCaina commented 10 months ago

Thanks :) Probably my issue was with the Bus then ^^ Will try it later

[EDIT] Thanks a lot - working fine 👍