RFID with 7 segment display and a tasmota

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mufidsyed
New user
Posts: 8
Joined: 30 Sep 2018, 10:37

RFID with 7 segment display and a tasmota

#1 Post by mufidsyed » 30 Sep 2018, 10:56

hi,

please correct me if i posted in the wrong section. i am basically trying to setup an rfid reader (PN532) with a nodemcu and also a 7 segment display (MAX7219). i know how to get the details from the rfid reader through mqtt. but for the 7 segment display, i need it to give me the state of a tasmota sonsoff sv.

is there anyway that i can have the 7 segment display receive mqtt state.

thank you

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: RFID with 7 segment display and a tasmota

#2 Post by grovkillen » 30 Sep 2018, 11:36

If you can send MQTT from the Tasmota you must send the message as a float value (not in a JSON format). You can capture the value with MQTT import or in a event using rules.

But first you need to make sure you can send MQTT from the Tasmota unit.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

mufidsyed
New user
Posts: 8
Joined: 30 Sep 2018, 10:37

Re: RFID with 7 segment display and a tasmota

#3 Post by mufidsyed » 30 Sep 2018, 12:58

i think it is sending it in a float value. it is connected to my home assistant. do u have any idea how to setup the rules.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: RFID with 7 segment display and a tasmota

#4 Post by grovkillen » 30 Sep 2018, 13:01

If it's sending a float it's easiest to use MQTT import. You need to tell the MQTT import on what topic it should listen to. Use MQTT Snooper or similar app on your phone to see what topic Tasmota is publishing to. Once you got the MQTT import working you can use the wiki page on rules. Please get back here if you get stuck.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

mufidsyed
New user
Posts: 8
Joined: 30 Sep 2018, 10:37

Re: RFID with 7 segment display and a tasmota

#5 Post by mufidsyed » 30 Sep 2018, 13:41

i just checked it does not give a float value. is there another way.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: RFID with 7 segment display and a tasmota

#6 Post by grovkillen » 30 Sep 2018, 14:02

At this point no. You need to get it as a float or integer. JSON parsing is not working for rules. Can't Tasmota publish custom topics?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

mufidsyed
New user
Posts: 8
Joined: 30 Sep 2018, 10:37

Re: RFID with 7 segment display and a tasmota

#7 Post by mufidsyed » 30 Sep 2018, 14:09

i dont think so. mostly i think i will have to try automation with mqtt.publish in home assistant and then use that value as input for esp easy mqtt import. even if i am successful in gettin a float value i.e. 1 for on and 0 for off, can u tell me how do i setup the rule in esp easy

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: RFID with 7 segment display and a tasmota

#8 Post by grovkillen » 30 Sep 2018, 19:42

Sure I can help you with that but please look at the wiki first and try on your own.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests