Lyr3x / Roode

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

Adjustable Counter Min-Max Limits #132

Closed BEMSman closed 6 months ago

BEMSman commented 1 year ago

Is it possible to be able to have adjustable minimum and maximum count endpoints?

An example would be instead of 0-10 it could be say -100 to +100.

Reasoning for above would be to allow calculating a count when there is more than one door into a space, i.e. when there is random entry / exit, you would use more than one unit and sum the counts externally.

CarsonF commented 1 year ago

Max is configurable currently.

number:
  - platform: roode
    people_counter:
      max_value: 100

I think min might be hardcoded to 0 but you could PR a change for that. https://github.com/lyr3x/Roode/blob/master/components/roode/number.py#L31