A while ago i made an RFID entry system and with the help of a few here we managed to squeeze a large rule into something quite small.
This was due the amount of RFID tags used and we had to come up with an simplified system.
So far so good as that worked perfect without any issues.
Just as reference this was:
Code: Select all
//Jerome
On RFID#Tag do
if [RFID#Tag]=1899267376
WifiAPMode
if [RFID#Tag]=82431090
Event,OkTag
if [RFID#Tag]=83398378
Event,OkTag
if [RFID#Tag]=3497384643
Event,OkTag
if [RFID#Tag]=63002323
Event,OkTag
if [RFID#Tag]=2271020827
Event,OkTag
if [RFID#Tag]=2382158275
Event,OkTag
//Kosta
if [RFID#Tag]=2590891203
Event,OkTag
if [RFID#Tag]=324590275
Event,OkTag
if [RFID#Tag]=1186585027
Event,OkTag
if [RFID#Tag]=4241495763
Event,OkTag
if [RFID#Tag]=3200668835
Event,OkTag
//Ali
if [RFID#Tag]=2648774355
Event,OkTag
if [RFID#Tag]=4199927683
Event,OkTag
if [RFID#Tag]=3842933699
Event,OkTag
//Marina / Anna
if [RFID#Tag]=4225832659
Event,OkTag
if [RFID#Tag]=3579188947
Event,OkTag
if [RFID#Tag]=3348324307
Event,OkTag
if [RFID#Tag]=2964545235
Event,OkTag
if [RFID#Tag]=341776595
Event,OkTag
if [RFID#Tag]=182785747
Event,OkTag
if [RFID#Tag]=177785987
Event,OkTag
endon
endif
On OkTag do
gpio,13,0
gpio,14,1
//publish domoticz/in,{"command": "switchlight", "idx": 125, "switchcmd": "On" }
timerSet,1,5
endon
On Rules#Timer=1 do
gpio,13,1
gpio,14,0
//publish domoticz/in,{"command": "switchlight", "idx": 125, "switchcmd": "Off" }
endon
When i scan a tag now it doesn't activate the rule anymore:
711462: PN532: Tag: 83398378 55
711465: EVENT: RFID#Tag=83398378
711564: Domoticz: Sensortype: 20 idx: 124 values: 83398378
I noticed one thing if i shorten my rule to just only one tag it works again.
When i use the rule as described above it stops working.
Has this something to do with changes in the Rule system (i use the classic rule system since i dont understand the new one)
Any help would be appreciated as now i have angry neighbors