Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions content/components/sensor/am2320.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,26 @@ The `am2320` Temperature+Humidity sensor allows you to use your AM2320
> [!NOTE]
> Logs might include some warnings about receiving a NACK from the sensor.
> This is due to a wake call to the sensor which the sensor never acknowledges by design.
> Sensor works on BUS frequency up to 100kHz, but by default is 200kHz in use. So decrease will help with sensor reliability.
Copy link

Copilot AI Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The note should explain why 50kHz is recommended when the sensor supports up to 100kHz. Consider revising to: 'The sensor supports I2C bus frequencies up to 100kHz. ESPHome's default frequency is 200kHz, which may cause reliability issues. Setting the frequency to 50kHz (well below the maximum) ensures stable operation.'

Suggested change
> Sensor works on BUS frequency up to 100kHz, but by default is 200kHz in use. So decrease will help with sensor reliability.
> The sensor supports I2C bus frequencies up to 100kHz. ESPHome's default frequency is 200kHz, which may cause reliability issues. Setting the frequency to 50kHz (well below the maximum) ensures stable operation.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know the default is 50kHz? Where do you see a default of 200?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just see there in the logs from some esp device. Maybe this is the default in some sensor library. Lets change the notes as needed.

def_freq


```yaml
# Example configuration entry
i2c:
- id: bus_a
sda: GPIO4
scl: GPIO5
scan: true
frequency: 50000
Copy link

Copilot AI Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a comment in the YAML example explaining the frequency value, such as frequency: 50000 # 50kHz - recommended for AM2320 reliability

Suggested change
frequency: 50000
frequency: 50000 # 50kHz - recommended for AM2320 reliability

Copilot uses AI. Check for mistakes.

sensor:
- platform: am2320
i2c_id: bus_a
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
update_interval: 60s
address: 0x5C
```

## Configuration variables
Expand Down