RFID allowed list

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
lucalg
Posts: 8
Joined: Monday 31 August 2015 17:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

RFID allowed list

Post by lucalg »

Good morning,
i want to create different profiles inside my home. I've setted some RFIDS with Esp8266 and they works perfectly, and i want to divide zones to allow some users to open garage (for example) but not the wine room, and some others entrance door. Keys are 30 at the moment but could be more. Actually i've done something working with one key but if i want to make them work i need to create one event for each key. (i'm not able to program so i use events Scratch)
My target is to have an allowed Rfid codes lists (or better, one per profile) so say: If the key the reader is checking is inside this list THEN.....
Is that possible?

Thank you very much,
Luca
:geek:
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: RFID allowed list

Post by emme »

ciao,

I don't know how you structure the RFid key manager... but I assume something like that:

each RFID terminal will be configured with an ID:
ID 00 = ALL
ID 01 = Home
ID 02 = Garage
ID FF = REVOKE / BLACKLIST

put all RFidCodes into a file with the following syntax:
{RFIDCode, Area}

than have a code that reads the tag, browse the file and grab the ID...
check if the ID is equal to 00, or equal to the terminal ID and not equal FF... than open the door

what is 'Event Scratch'?
The most dangerous phrase in any language is:
"We always done this way"
lucalg
Posts: 8
Joined: Monday 31 August 2015 17:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFID allowed list

Post by lucalg »

Thank you very much for the answer.
Do you have some code to share with a NotProgrammer Domoticz addicted?
Thank you very much,
Luca

(Scratch is that part on events creation without coding, but using visual boxes and so on)
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: RFID allowed list

Post by emme »

aah.. blocky :oops: :oops:
scusa! :P

on ESP i'm not so skilled... (not even on python or lua to be honest :lol: :lol: )
but we could make a try....

if you want to send me a PM with the exact structure you have, we could try to face it....
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
serengeti76
Posts: 2
Joined: Thursday 23 November 2017 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFID allowed list

Post by serengeti76 »

Hi lucalg,
I wanted to PM you but I am a new member and not allowed yet.
Would you explain how you got Domoticz to read RFID tags?
Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest