TillFleisch / ESPHome-HLK-LD2450

ESPHome support for the HI-Link HLK-LD2450 millimeter wave sensor (external component) with support for custom zones using convex polygons.
MIT License
105 stars 19 forks source link

Fix possible lock-up while reading UART #6

Closed TillFleisch closed 9 months ago

TillFleisch commented 9 months ago

This PR fixes a potential case in which the incoming UART buffer is not cleared properly. Furthermore the Zone occupancy count sensor is marked unavailable if the sensor is stops communicating.

Might help solve #1.