Lyr3x / Roode

A reliable smart home people counter based on VL53L1X and ESPHome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Continuous distance readings

ruimarinho opened this issue · comments

Hi @Lyr3x,

It seems like I've been able to enable just the distance_sensor in order to get continuous readings by disabling the people counter sensor.

Is this a supported use-case? I see that the distance changes a lot even if the sensor is completely stable, which might indicate the distance mode is not correctly configured. Should I be manually configuring the sensor to mode 2 (in my case)?

Thanks,

Sure, it's possible to only use the readings. Remember that the calibration already sets a mode and timing budgets,which are fairly tight as we don't need super stable readings but rather quick one. Use the manual mode and set your own budget and you should be good to go!

However there is a bug right now which will be fixed with the next PR to master

#73 Will fix the manual mode and you should configure something like this:

roode:
  id: roode_platform
  i2c_address: 0x29
  update_interval: 10ms
  manual:
    sensor_mode: 3
    roi_height: 16
    roi_width: 6
    manual_threshold: 1280 
    timing_budget: 50
  restore_values: false

sensor_mode: 3 allows you ton configure an custom timing_budget

That looks good! What if I'm simply interested on distance readings (e.g. for detecting a parked car, etc) and not human presence?

You can just remove the people counter and use the manual mode which gives you distance and you could also use the presence sensor to see if the area is occupied. However you will have two zones, which might not be a problem

Ill close this, feel free to join our discord server for more questions :)