Configuring D6T-1A with esphome

Newbie question: how to port arduino code to esphome? I’m trying to find how to add D6T-1A occupancy sensor to homeassistant with esphome. I found a repo for d6t-44L(ESPHome D6T Custom Component · GitHub) but nothing available for D6T-1A. I found an arduino code(https://github.com/hankha/d6t-ap-SeatOccupancy-arduino/blob/d3a2af744b264bbab197bc5849c959ca1d23a775/examples/d6t-1a/d6t-1a.ino) D6T-1A, but not sure how port it. A little bit of handholding would really appreciated! Thanks

Usually it’s not that hard to use arduino code in an ESPHome custom sensor.

Custom Sensor Component — ESPHome is a good starting point :slightly_smiling_face:.

1 Like

Thank you!

1 Like