Closed TillFleisch closed 9 months ago
@TillFleisch thank you very much for adding this :-) 😊👍
I have "quickly" (after connecting 5V to GND and wondering why it does not work) checked if there are any sideeffects/issues. Would you mind double checking if there is any unexpected behviour? You can use:
external_components:
- source: github://TillFleisch/ESPHome-HLK-LD2450@allow_multi_conf
Keep in mind that using 2 of these sensors close to one another could introduce interference.
I've implemented the allow_multi_conf branch, it seems to be working without any issues. I've placed the sensors +- 15cm from each other in a 90 degree angle, so far no interference.
I do however sometimes get the "Sending command timed out! Is the sensor connected?" message, even after multiple soft restarts. Only a hard restart of the ESP32 helps. My LD2420s have the same issue, so maybe it's just an Hi-Link quirk.
"Sending command timed out! Is the sensor connected?" [...] so maybe it's just an Hi-Link quirk
That's what I'm thinking as well. Sometime it returns back into a working "config" state, seemingly at random.
You can use:
external_components: - source: github://TillFleisch/ESPHome-HLK-LD2450@allow_multi_conf
If you've added the device in the last 24h you shouldn't forget the refresh: 0s (or some other low value), otherwise esphome will keep using the old cached version.
So:
external_components:
- source: github://TillFleisch/ESPHome-HLK-LD2450@allow_multi_conf
refresh: 0s
Remove the refresh entry afterwards to prevent esphome from requesting data too often.
"Sending command timed out! Is the sensor connected?" [...] so maybe it's just an Hi-Link quirk
That's what I'm thinking as well. Sometime it returns back into a working "config" state, seemingly at random.
As long as it's stable during usage this does not cause too much issues. I normally auto-update my esphome devices, but that can cause these sensors to stop working, so updates need to be done manually. Hopefully a future firmware update will fix this.
This PR enables multiple component configuration.
Close #3