Page 1 of 1

RC522 RFID Tag Reading into Domoticz

Posted: 28 Jun 2022, 17:23
by claus1812
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 ?

Re: RC522 RFID Tag Reading into Domoticz

Posted: 28 Jun 2022, 21:36
by TD-er
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?

Re: RC522 RFID Tag Reading into Domoticz

Posted: 29 Jun 2022, 22:26
by claus1812
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.

Re: RC522 RFID Tag Reading into Domoticz

Posted: 29 Jun 2022, 23:07
by Ath
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.

Re: RC522 RFID Tag Reading into Domoticz

Posted: 30 Jun 2022, 18:17
by claus1812
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.