Lyr3x / Roode

A reliable smart home people counter based on VL53L1X and ESPHome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide Recalibration as button

Lyr3x opened this issue · comments

As of 2021.12 ESPHome and HA support button entities which do a certain action on press. That is something that were missing to implement a proper recalibration, our counter reset button.

- platform: template
    name: $friendly_name Recalibrate
    on_press:
      - lambda: id(roode_platform)->recalibration();

This is working for now but it should be a -platform: roode button

Hello, have you actually tested this project?
I tested https://github.com/Andrea-Fox/peopleCounter before, and it can meet my needs. Now the home is being renovated and I need to integrate the ESPhome version.

I don't get your question. Andreas Version is a very basic Version and not really comparable anymore.