igiannakas / mmWave-Presense-Sensor-D1-Mini-DFRobot-

Room presence detection using mmWave radar (DFRobot SEN0395), D1 Mini ESP-8266 and ESPHome for HomeAssistant
116 stars 9 forks source link

Detection Segment Support #9

Open 54Comet opened 2 months ago

54Comet commented 2 months ago

https://esphome.io/components/dfrobot_sen0395.html

detection_segments (Optional, list): A list of detection segments. A segment specifies from where to where detection should trigger. One to four segments and ranges from 0cm to 9m may be specified. Distances should be defined in steps of 15cm. Note that the specified ranges are rounded internally. Segments can be defined in a one or two dimensional list. Pairs of values must be defined (from distance to distance). The default is one range from 0cm to 3m.

Would it be possible for this project to allow configuring the up to 4 detection segments that the sen0395 supports? Currently I think the id: distance variable is essentially allowing a single segment to be set.