Lyr3x / Roode

A reliable smart home people counter based on VL53L1X and ESPHome
The Unlicense
149 stars 41 forks source link

Add configurable sampling #80

Closed Lyr3x closed 2 years ago

Lyr3x commented 2 years ago

Make sampling configurable with a default of 2. This is another configuration change:

roode:
  id: roode_platform
  i2c_address: 0x29
  update_interval: 10ms
  # roi:
    # roi_height: 16
    # roi_width: 6
  calibration:
    max_threshold_percentage: 85
    min_threshold_percentage: 5
    roi_calibration: true
    # sensor_offset_calibration: 8
    # sensor_xtalk_calibration: 53406
  # manual:
  #   sensor_mode: 3
  #   manual_threshold: 1280
  #   timing_budget: 200
  sampling:
    active: true
    size: 3
  invert_direction: true
  restore_values: false
CarsonF commented 2 years ago

Is active really needed? can the off value just be 1?

Lyr3x commented 2 years ago

Thanks @CarsonF! I removed the activeattribute. You can configure it now as

sampling: 3
or
sampling:
    size: 3