Comments (13)
You don't use the includes:
for this. It works just like the built-in components. I think you've put the folder in the wrong place though. You should have /config/esphome/custom_components/keypad/__init__.py
for example.
from esphome_components.
Great, many thanks! Keypad now works! Now i have to send finished code into HA- how should i create text sensor to send finished code into HA?
And: when i stop typing code and i DON'T press # - is is any reset time or program holds partly entered code indefinitely?
(sorry for "dumb" questions, i'm pretty noob in these things... i'm still heavily learning...)
from esphome_components.
The keypad text_sensor
already does the sending to HA. It depends on what you want to do with the result. There's also the on_value
trigger of the text_sensor if you want to have other actions.
There is no reset timeout. You could file an issue if you want that.
from esphome_components.
Is there a way to use this with the PCF8574 componant? I guess I need a I2C keypad library or componant?
from esphome_components.
https://esphome.io/components/pcf8574.html
You can use the pin:
definition there with the keypad.
from esphome_components.
I recommend coming to the esphome Discord server for more interactive help.
from esphome_components.
I'll come check it out thank you.
from esphome_components.
The keypad
text_sensor
already does the sending to HA. It depends on what you want to do with the result.
That's what i thought, too, but i get nothing in HA, nor i find any "keypad" sensor... i did a copy/paste of your example in my yaml.
There is no reset timeout. You could file an issue if you want that.
It would be a very good idea to implement a reset after, say, 5-10 seconds. Currently it can happen a situation when someone (passing by) accidentally (or intentionally) hits a number or two and when i come to enter a number it won't be correct one unless i hit asterix first an only then enter a number.
from esphome_components.
The keypad
text_sensor
already does the sending to HA. It depends on what you want to do with the result.That's what i thought, too, but i get nothing in HA, nor i find any "keypad" sensor... i did a copy/paste of your example in my yaml.
There is no reset timeout. You could file an issue if you want that.
It would be a very good idea to implement a reset after, say, 5-10 seconds. Currently it can happen a situation when someone (passing by) accidentally (or intentionally) hits a number or two and when i come to enter a number it won't be correct one unless i hit asterix first an only then enter a number.
Same here, it seems that no sensor is exposed to Homeassistant so I cannot process the entered code there. Has anyone solved that?
from esphome_components.
The keypad
text_sensor
already does the sending to HA. It depends on what you want to do with the result.That's what i thought, too, but i get nothing in HA, nor i find any "keypad" sensor... i did a copy/paste of your example in my yaml.
There is no reset timeout. You could file an issue if you want that.
It would be a very good idea to implement a reset after, say, 5-10 seconds. Currently it can happen a situation when someone (passing by) accidentally (or intentionally) hits a number or two and when i come to enter a number it won't be correct one unless i hit asterix first an only then enter a number.
Same here, it seems that no sensor is exposed to Homeassistant so I cannot process the entered code there. Has anyone solved that?
I had the same. It's due to the fact that he didn't use the 'name:' field. If you add the name field, it should probably work.
I wrote a little bit more documentation about it, as I couldn't find anything about this interesting topic.
from esphome_components.
I didn't think it's generally useful to publish the value directly to HA. It's something you would normally process locally on the ESP. But yes, it's a standard text_sensor
, so if you want to publish it, just give it a name:
.
from esphome_components.
@belgianrubs just letting you know that there have been very large changes in how to use this component, so your documentation is out of date. Did you write it before external_components:
was available? Also, I'm in the process of integrating the components to main esphome.
from esphome_components.
@ssieb Sorry for the late response, totally missed your question. I'm not sure about that, I downloaded the files back in the day and copied them into the custom_components folder.
Great to hear that the component is moving to main ESPHome, I'm looking forward to see it pop-up there! Thanks for all the effort you're putting into ESPHome!
from esphome_components.
Related Issues (20)
- Feature request: configurable line separator for serial text sensor
- ht16k33_alpha: SparkFun pinout support
- Debugging mode via uart_mitm does not work HOT 3
- ht16k33a needs to updated now that ESPTime namespace change (ESPHome 2023.6) HOT 1
- Uart_mitm usage question HOT 1
- Esmart3 HOT 18
- seesaw neopixel [Adafruit StemmaQT Rotary Encoder]
- Problem using magic_switch component HOT 5
- Esmart3 load On Load Off
- Problem with magic_switch pulse timing report HOT 2
- Could not find components folder for source. HOT 3
- Another problem with magic_switch component
- Failed to compile the firmware with Magic Switch for Sonoff Basic R4 HOT 2
- `serial_csv` text and binary sensor
- No response from any Buttons on an ANO rotary encoder
- [pin] is an invalid option for [binary_sensor.seesaw] HOT 2
- [pin] is an invalid option for [sensor.seesaw] and type: encoder HOT 4
- Adafruit I2C Quad Rotary Encoder Breakout with NeoPixel / Seesaw Neopixel LED issue with 4 LED HOT 1
- Request Qr HOT 1
- on_clockwise & on_anticlockwise triggers invalid options for [Adafruit StemmaQT Rotary Encoder] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome_components.