Page 2 of 2

Re: Indentify tag id with the Zipato/beNext TagReader

Posted: Monday 13 November 2017 17:35
by gijsje
Is there already an update for the different rfid tags?

Re: Indentify tag id with the Zipato/beNext TagReader

Posted: Sunday 03 December 2017 19:51
by DanM
bit late to reply... but i call it from lua when the tag reader is triggered.

Re: Indentify tag id with the Zipato/beNext TagReader

Posted: Sunday 03 December 2017 21:57
by gijsje
Can you give me an example?

Re: Indentify tag id with the Zipato/beNext TagReader

Posted: Tuesday 15 January 2019 21:12
by janpascal
Maybe it's a bit late, but here's what works for me to parse the OpenZwave log from a domoticz lua script and log
the tag number. You will need to change the Node003 part of the expression, probably need to change the
openzwave log file location and check if your log lines follow the same format.

Code: Select all

        local zwave_log = "/var/lib/domoticz/OZW_Log.txt"
        local event
        local tag
        for l in io.lines(zwave_log) do
            _, _, event, tag = l.find(l, "Node003.*Received:.*0x06, 0x0(%d), 0x01, 0x(%x%x), 0x%x%x")
            if tag ~= nil then
                tag = tonumber(tag, 16)
                domoticz.log('event: ' .. event .. '; tag: ' .. tag, domoticz.LOG_INFO)
            end
        end
You can remove the

Code: Select all

domoticz.log(...)
line if all is working and just use the last tag that has been set in your script (e.g. set a user variable or just log the tag number).

Hope this helps

Jan-Pascal

Re: Indentify tag id with the Zipato/beNext TagReader

Posted: Sunday 17 March 2019 20:55
by pimseb
janpascal I'd like to use your lua script to indentify who is using the tag on my zipato.
However my OZW_Log.txt doesn't say much about it :

Code: Select all

2019-03-17 17:25:05.333 Always, End of queued log message dump
2019-03-17 17:25:05.333 Always, 
2019-03-17 20:22:57.319 Error, Node004, ERROR: Dropping command, expected response not received after 1 attempt(s)
2019-03-17 20:22:57.319 Always, 
2019-03-17 20:22:57.319 Always, Dumping queued log messages
2019-03-17 20:22:57.319 Always, 
2019-03-17 20:22:57.319 Always, 
2019-03-17 20:22:57.319 Always, End of queued log message dump
The log makes you think it is a fail but domoticz receive indeed the information
Is there a level of lof to change somewhere inorder to see all the details "*Received:.*0x06, 0x0(%d), 0x01..." ?
Thank you