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

APDS9306 Ambient Light Sensor #6709

Draft
wants to merge 78 commits into
base: dev
Choose a base branch
from
Draft

APDS9306 Ambient Light Sensor #6709

wants to merge 78 commits into from

Conversation

aodrenah
Copy link

@aodrenah aodrenah commented May 9, 2024

What does this implement/fix?

Adds support for the APDS9306 ambient light sensor.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#3826

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266
  • RP2040
  • BK72xx
  • RTL87xx

Example entry for config.yaml:

# Example config.yaml
sensor:
  - platform: apds9306
    name: "APDS9306 Light Level" # below are optional
    gain: 1
    bit_width: 18
    measurement_rate: 100ms
    update_interval: 60s

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

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

Successfully merging this pull request may close these issues.

None yet

4 participants