Reading filtered GPIO value inside an external component function #6410
Unanswered
PaulWieland
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Similar issue reported here: esphome/issues#4004 |
Beta Was this translation helpful? Give feedback.
3 replies
-
I did answer you on discord. Your "gpio definition" is incomplete. You don't show what type of thing that is, but I'll assume binary sensor. You would setup your component schema to accept a binary sensor and then use that to get the state. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an external component in which I would like to read the filtered/debounced state of a GPIO which is using the GPIO platform.
The GPIO is defined like this:
To read the value or state I tried:
What is the correct way to read the filtered state of
my_gpio_1
in my component's loop?Beta Was this translation helpful? Give feedback.
All reactions