Get RFID tag
Closed this issue · 7 comments
I'm using Home-Assistant 2024.9.1.
I got the Keba P30x with the RFID interface.
I like the feature, that i can add the RFID tag to Home-Assistant.
But how can i get the tag number?
I read the card with an NFC scanner on my phone and got the ID, ATQA and SAK. Do i need one of these values?
These hex-values were not working.
Hi @nils512
of I remember correctly the hex values you read via NFC are big endian and the charging station requires the hex rfid code little endian. Thus if you convert the hex code to little endian it should work 🙂
Example: 01 02 03 (big endian) converts to 03 02 01 (little endian)
ok thank you.
I used the ID if the card and convert it to little endian: 00:00:7E:7E:7E:7E:7E (first two values are 0, i changed the rest, to post it here)
I get this error message, when trying to unlock:
RFID tag must be a 8 byte hex string.
Is the ID, really the correct value?
Ah I see, my cards only had 8 hex values, others seem to have more. I already identified the problem, which is really easy to fix.
Unfortunatelly I am on a business trip right now, thus the fix will be delayed. Please remind me in two weeks if I have not fixed it by then!
no worries, thanks for checking the code :-)
I removed the colons so the value is: "00007E7E7E7E7E"
Home-Assistant is sending the value to the wall box without an error, but the value is not accepted by the box.
Is the card id really the correct value?
Sorry, i have no experience with RFID/NFC tags.
@dannerph : hey, do you have any news? Would be awesome to add the card to Home-Assistant :-)
I'm not sure, how to get the correct tag number from my card.
@dannerph Would also be very interested in this. Also my ID is longer than 8 characters and I get the error: “TCH-ERR:: wrong parameter count”
i fixed it today :-)
For everyone else, that have no access to the webinterface, but to the USB port inside the wallbox:
- get a FAT32 usb drive (other formats might also work)
- open the wallbox, so that you have access to the usb port
- Scan the card with the wallbox that you want to add to Home-Assistant
- connect the USB drive to the wallbox
- creating the lofgile takes about a minute. the display shows you the status
- remove the usb drive
- open the file located at "LOGS/P30_xxxxxxxx/P30_xxxxxxxx_diagnostics.tar.gz/kemove.log"
- search for the log-entry:
[nioEventLoopGroup-3-1] INFO (AuthorizationHandler:XX channelRead0) - AuthorizationReq [XXXXXXXX], principal: 00007E7E7E7E7E, classifier , type RFID
- 00007E7E7E7E7E is the ID of the card. This value can be added to Home Assistant