Giter VIP home page Giter VIP logo

Comments (13)

ssieb avatar ssieb commented on August 20, 2024 1

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.

Protoncek avatar Protoncek commented on August 20, 2024

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.

ssieb avatar ssieb commented on August 20, 2024

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.

danyboy666 avatar danyboy666 commented on August 20, 2024

Is there a way to use this with the PCF8574 componant? I guess I need a I2C keypad library or componant?

from esphome_components.

ssieb avatar ssieb commented on August 20, 2024

https://esphome.io/components/pcf8574.html
You can use the pin: definition there with the keypad.

from esphome_components.

ssieb avatar ssieb commented on August 20, 2024

I recommend coming to the esphome Discord server for more interactive help.

from esphome_components.

danyboy666 avatar danyboy666 commented on August 20, 2024

I'll come check it out thank you.

from esphome_components.

Protoncek avatar Protoncek commented on August 20, 2024

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.

irqnet avatar irqnet commented on August 20, 2024

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.

belgianrubs avatar belgianrubs commented on August 20, 2024

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.

ssieb avatar ssieb commented on August 20, 2024

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.

ssieb avatar ssieb commented on August 20, 2024

@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.

belgianrubs avatar belgianrubs commented on August 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.