My DFRobot arrived today so will be getting that hooked up soon, thanks for all the info in this thread as otherwise I’d be a bit lost on where to start!
Am I right in thinking based on the ESPHome yaml in your OP you’ve wired up the TX (to GPIO18), RX(to GPIO19) AND GPIO(to GPIO23) pin to your board? As without the TX/RX you’re unable to modify certain distance settings? Also the esphome code in the OP your most up to date version of code for this?
I have five of these DFRobot now, each wired to suit their deployment with other sensors and different dev boards. So be sure to wire them up and adjust the yaml GPIO to suit your actual deployment.
As for UART, yes that is entirely optional. And yes you are correct that without UART you will be using the stock distance and delay parameters setting per the DFRobot wiki
I would highly recommend configuring serial as it makes them very versatile.
As for the rest of the yaml - yes it works and works well. If any new developments occur I will be sure to update.
The DFRobot are excellent for lighting. Especially with a PIR. Sadly the SeeedStudio are not really suitable IMHO. I have never tried to return anything to Digikey - sooo let me know how it goes!
Also, on the DFRobot page, it seems to show that the range is >9m??
Sensing distance: “16.5m” “detRangeCfg -1 0 110”. Implying the max range is at maybe 1650cm or more.
In the UK they’re lower priced if you’re buying more than 1 and then qualify for free shipping. Otherwise I found if you really just want the one then pimoroni was the cheapest option.
Hello @crlogic , @all
I received the sensor as well and do the wiring + take the example of code.
So far so good !
I added a “device_class: motion” into the binary_sensor.
It’s wired with nodemcu. GPIO13 and GPIO15 for UART and GPIO16 (which is the only one apparently with a pull_down resistor) for connecting the IO2 from the sensor.
I don’t understand exactly the latency. I need to play a bit with the config What is the usecase ?
Modify values are saved into the sensor flash. It means that is maintain after a complete shutdown and restart. Supposed true.
But HA states will not be aligned with the real value of the sensor after the restart. There are may be a way to maintain the value saved in HA as well to keep the same. (There is no API code to read the data after save).