esphome / feature-requests

ESPHome Feature Request Tracker

Home Page:https://esphome.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grow Fingerprint Sensor - Sensing Pin as Binary Sensor

ShadyMCShadesen opened this issue · comments

Describe the problem you have/What new integration you would like

Last year it was possible to have a gpio binary sensor watching the sensing pin and having it configured in the fingerprint component at the same time.
This has been "fixed" in a update (I think at the beginning of this year) and now is there no way to get the pin state elsewhere.

It would be awesome if I could configure a binary sensor in the fingerprint component and have this available for the rest of the esphome code (like lambda).

Please describe your use case for this integration and alternatives you've tried:

I have programmed "advanced" animations for my fingerprint sensors, some of them rely on the status of the sensing pin.
I tried getting the state using lambda (id(fingerpint_sensor)->sensing_pin_->digital_read()) but the sensing_pin_ is protected.
Now I created a custom component and made it public to get around.

Additional context

Grow Fingerprint Sensor Component