RC522 RFID Tag Reading into Domoticz

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
claus1812
New user
Posts: 3
Joined: 28 Jun 2022, 17:11

RC522 RFID Tag Reading into Domoticz

#1 Post by claus1812 » 28 Jun 2022, 17:23

Hi,

I would like to use an RFID-RC522 Reader connected to a Wemo D1 mini (8266) running ESPEasy to transmit the recognized RFID.Tag-IDs to my Domoticz system.
I'm using this firmware: ESP_Easy_mega_20211105_test_C_ESP8266_4M1M
So far all is running well: Wenn approaching the reader with an RFID-TAG, it is shown in ESP-Easy's Log Windows correctly:
1075818: MFRC522: New Card Detected
1075821: MFRC522: Scanned PICC's UID
1075847: MFRC522: New Tag: 1834046931 card: MIFARE 1KB
1076142: MFRC522: New Tag: 0
However the Tag ID is not shown in ESP-Easy's Device-Tab (Tag is always Zero) .. see attached screenshot
Also no value is sent to the configured Domoticz controller, where I've set up a virtual device and entered the respective device IDX in ESP-Easy.
No Errors/Warnings/Hints in the Log.
What could be wrong here ?
Attachments
Screenshot000248.jpg
Screenshot000248.jpg (25.93 KiB) Viewed 4073 times

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

Re: RC522 RFID Tag Reading into Domoticz

#2 Post by TD-er » 28 Jun 2022, 21:36

What sort of device did you configure in Domoticz?
A custom device?

I know Domoticz has "nvalue" and "svalue" entries and it is quite strict on which type is belonging to which device type.
Maybe we're using the "wrong" one for rfid types?

claus1812
New user
Posts: 3
Joined: 28 Jun 2022, 17:11

Re: RC522 RFID Tag Reading into Domoticz

#3 Post by claus1812 » 29 Jun 2022, 22:26

Actually I forgot to enable the defined Domoticz controller in ESP-Easy.
Now it works like a charme.
Strangely the detected Tags are still not shown in the ESP-Easy Device Tab. (Tag shows always Zero)
However the detected Tags are transmitted to Domoticz (Strangely w/o any message in the Log)

To answer your question: I've defined a virtual Text-Type-Sensor in Domoticz.
This way I get in the sensor log a nice list of all detected RFID-Tags.

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: RC522 RFID Tag Reading into Domoticz

#4 Post by Ath » 29 Jun 2022, 23:07

To get the value updated, at least 1 device with an interval different from 0 needs to be configured. To avoid re-sending the last scanned tag at every interval, a Sysinfo task can be added, with a sensible interval set like close to 1 second and enabled, then the page will be refreshed at the shortest interval configured.
/Ton (PayPal.me)

claus1812
New user
Posts: 3
Joined: 28 Jun 2022, 17:11

Re: RC522 RFID Tag Reading into Domoticz

#5 Post by claus1812 » 30 Jun 2022, 18:17

I've configured another device (analog input internal) with 1s Interval.
This one is updated on the device screen as expected.
However the Tag of the RFID remain Zero whatever Tag is read.
Attachments
Screenshot000249.jpg
Screenshot000249.jpg (54.11 KiB) Viewed 4025 times

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests