https://github.com/shreyaskarnik/esphome-components
https://github.com/shreyaskarnik/esphome-components
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shreyaskarnik/esphome-components
- Owner: shreyaskarnik
- License: apache-2.0
- Created: 2022-11-23T02:39:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T03:50:13.000Z (over 3 years ago)
- Last Synced: 2024-12-31T16:42:31.733Z (over 1 year ago)
- Language: C++
- Size: 199 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esphome-components
This repo contains a custom esphome component/sensor for the person sensor [SEN-21231](https://www.sparkfun.com/products/21231) from [Useful Sensors](https://usefulsensors.com/)
## Motivation
I wanted to use the person sensor for triggering automations in Home Assistant using ESPHome.
This is a work in progress and I am not very well versed in C++ or interfacing with hardware over I2C.
Huge thank you to [Pete Warden](https://github.com/petewarden) and the Useful Sensors team for their work on the [Person Sensor](https://usefulsensors.com/) and providing example code which makes this custom component possible.
## Testing
I tested the custom component on a ESP32 dev board with the person sensor connected to the I2C bus. With `sda` connected to pin 21 and `scl` connected to pin 22.
## Example

## ESPHome Configuration
```yaml
esphome:
name: sense
platform: ESP32
board: esp32dev
external_components:
- source:
type: git
url: https://github.com/shreyaskarnik/esphome-components
components: [sen21231]
sensor:
- platform: sen21231
name: "Person Sensor"
```