ESPEASY WITH RFID PN532 AND DOMOTICZ
Moderators: grovkillen, Stuntteam, TD-er
ESPEASY WITH RFID PN532 AND DOMOTICZ
Hi everyone, I ask you a question. I have an RFID attached to a WEMOS card with ESPEASY software. Through Domoticz I can read the value of the card through a virtual text sensor. How do I use that string, for example, to trigger the alarm? Sorry but they are the first weapons with Domoticz. Thank you all for the help!
Re: ESPEASY WITH RFID PN532 AND DOMOTICZ
I have the same in use. I'm using rules in ESP Easy to do the job.
E.g.
on rfid#tag=123456789 do
publish domoticz/in,{"idx":123,"nvalue":0,"svalue":"ItsMe"}
event opendoor
endon
E.g.
on rfid#tag=123456789 do
publish domoticz/in,{"idx":123,"nvalue":0,"svalue":"ItsMe"}
event opendoor
endon
Re: ESPEASY WITH RFID PN532 AND DOMOTICZ
so for example if i have the idx 25 as light switch and rfid tag 123456789 I have to write
on rfid#tag=123456789 do
publish domoticz/in,{"idx":25,"nvalue":0,"svalue":"ItsMe"}
event switchlight
endon
on rfid#tag=123456789 do
publish domoticz/in,{"idx":25,"nvalue":0,"svalue":"ItsMe"}
event switchlight
endon
Re: ESPEASY WITH RFID PN532 AND DOMOTICZ
can I write such a thing?
IDX= 174
Domoticz Server: 192.168.0.100:8080
Tag Rfid: 123456789
On Rfid#tag=123456789 do
if SendToHTTP 192.168.0.100,8080,/json.htm?type=command¶m=switchlight&idx=174&nvalue=0&svalue=0
SendToHTTP 192.168.0.100,8080,/json.htm?type=command¶m=switchlight&idx=174&switchcmd=On
else
SendToHTTP 192.168.0.100,8080,/json.htm?type=command¶m=switchlight&idx=174&switchcmd=Off
endif
endon
IDX= 174
Domoticz Server: 192.168.0.100:8080
Tag Rfid: 123456789
On Rfid#tag=123456789 do
if SendToHTTP 192.168.0.100,8080,/json.htm?type=command¶m=switchlight&idx=174&nvalue=0&svalue=0
SendToHTTP 192.168.0.100,8080,/json.htm?type=command¶m=switchlight&idx=174&switchcmd=On
else
SendToHTTP 192.168.0.100,8080,/json.htm?type=command¶m=switchlight&idx=174&switchcmd=Off
endif
endon
Who is online
Users browsing this forum: No registered users and 24 guests