/MQTT-RFID_MRC522

Publish the UID of an RFID Card, Sticker or KeyChip to an MQTT Server.

Primary LanguageArduino

MQTT-RFID_MRC522

##Publish the UID of an RFID Card, Sticker or KeyChip to an MQTT Server.

#Hardware

  • ESP8266 (ESP-01 is not supported)
  • MRC522
  • RFID Tags

#Software

  • Arduino IDE (1.6.9)
  • ESP8266 Boards (2.3.0)
  • MQTT Lib (1.10.1)

#Pinout WEMOS D1 Mini

RC522 -> WEMOS

3V3 -> 3V3
GND -> GND
SDA -> D8
SCK -> D5
MOSI -> D7
MISO -> D6
RST -> D3

#FHEM integration

define rfid_reader MQTT_DEVICE
attr rfid_reader IODev MQTT (your mqtt device)
attr rfid_reader stateFormat transmission-state
attr rfid_reader subscribeReading_uid /hardware/rfid_reader/uid