Lyr3x / Roode

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

Fix manual roi setting #78

Closed Lyr3x closed 2 years ago

Lyr3x commented 2 years ago

Fix for #65 This is a breaking config change. The new config schema is:

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
  # manual:
  #   sensor_mode: 3
  #   manual_threshold: 1280
  #   timing_budget: 200
  # use_sampling: true
  invert_direction: true
  restore_values: false

roi:can be used to overwrite any ROI setting. Validation improved.