Keypad MQTT on ESP

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Curtis777
Normal user
Posts: 5
Joined: 29 Dec 2019, 17:10

Keypad MQTT on ESP

#1 Post by Curtis777 » 29 Dec 2019, 17:22

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
Last edited by Curtis777 on 05 Jan 2020, 18:03, edited 1 time in total.

TD-er
Core team member
Posts: 3129
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Keypad MQTT on ESP

#2 Post by TD-er » 29 Dec 2019, 22:15

The images are not visible.

Curtis777
Normal user
Posts: 5
Joined: 29 Dec 2019, 17:10

Re: Keypad MQTT on ESP

#3 Post by Curtis777 » 05 Jan 2020, 18:02


TD-er
Core team member
Posts: 3129
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Keypad MQTT on ESP

#4 Post by TD-er » 05 Jan 2020, 18:57

Why not use a keypad plugin for this?

Curtis777
Normal user
Posts: 5
Joined: 29 Dec 2019, 17:10

Re: Keypad MQTT on ESP

#5 Post by Curtis777 » 05 Jan 2020, 19:16

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

TD-er
Core team member
Posts: 3129
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Keypad MQTT on ESP

#6 Post by TD-er » 05 Jan 2020, 19:27

You can also use the Read The Docs: https://espeasy.readthedocs.io/en/lates ... lugin.html

Curtis777
Normal user
Posts: 5
Joined: 29 Dec 2019, 17:10

Re: Keypad MQTT on ESP

#7 Post by Curtis777 » 05 Jan 2020, 19:32

ok found it but dont know how to add them in my existing espeasy firmware

TD-er
Core team member
Posts: 3129
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Keypad MQTT on ESP

#8 Post by TD-er » 05 Jan 2020, 22:07

Just use the build in which they are include (normal/test/dev)

Curtis777
Normal user
Posts: 5
Joined: 29 Dec 2019, 17:10

Re: Keypad MQTT on ESP

#9 Post by Curtis777 » 06 Jan 2020, 12:20

i get exactly the same.....
no effect on pressing any button

User avatar
budman1758
Normal user
Posts: 252
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: Keypad MQTT on ESP

#10 Post by budman1758 » 06 Jan 2020, 18:19

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
"The glass is twice as big as it needs to be".

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests