Page 1 of 1

Keypad MQTT on ESP

Posted: 29 Dec 2019, 17:22
by Curtis777
Hey Guys,

I got stucked.
I plugged a keypad as picture attached.
PCF8574 with GPIO 0 and GPIO 2
and setup my MQTT

all i want is that every keyinput should be reported to my MQTT Broker
connection to my broker is working
but the states are not reported to the MQTT Broker i only see the state -1 which i setted as startup script
Image
Image
Image

Re: Keypad MQTT on ESP

Posted: 29 Dec 2019, 22:15
by TD-er
The images are not visible.

Re: Keypad MQTT on ESP

Posted: 05 Jan 2020, 18:02
by Curtis777

Re: Keypad MQTT on ESP

Posted: 05 Jan 2020, 18:57
by TD-er
Why not use a keypad plugin for this?

Re: Keypad MQTT on ESP

Posted: 05 Jan 2020, 19:16
by Curtis777
good question i never knew there are some plugins.
ill try when the wiki is available again.

i dont know how to use plugins yet

Re: Keypad MQTT on ESP

Posted: 05 Jan 2020, 19:27
by TD-er
You can also use the Read The Docs: https://espeasy.readthedocs.io/en/lates ... lugin.html

Re: Keypad MQTT on ESP

Posted: 05 Jan 2020, 19:32
by Curtis777
ok found it but dont know how to add them in my existing espeasy firmware

Re: Keypad MQTT on ESP

Posted: 05 Jan 2020, 22:07
by TD-er
Just use the build in which they are include (normal/test/dev)

Re: Keypad MQTT on ESP

Posted: 06 Jan 2020, 12:20
by Curtis777
i get exactly the same.....
no effect on pressing any button

Re: Keypad MQTT on ESP

Posted: 06 Jan 2020, 18:19
by budman1758
Curtis777 wrote:
06 Jan 2020, 12:20
i get exactly the same.....
no effect on pressing any button
If the plugin is working you will get an event in the log. You then need rules to act on the event. Unless you changed the label in the device page you will get
the event "ScanCode" with a 2 digit value. You need to write some rules to do anything from that event. See the code notes at the top of this page.
https://github.com/letscontrolit/ESPEas ... KeyPad.ino