Indentify tag id with the Zipato/beNext TagReader

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

User avatar
gijsje
Posts: 132
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Indentify tag id with the Zipato/beNext TagReader

Post by gijsje »

Is there already an update for the different rfid tags?
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
DanM
Posts: 79
Joined: Thursday 23 October 2014 22:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Indentify tag id with the Zipato/beNext TagReader

Post by DanM »

bit late to reply... but i call it from lua when the tag reader is triggered.
User avatar
gijsje
Posts: 132
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Indentify tag id with the Zipato/beNext TagReader

Post by gijsje »

Can you give me an example?
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
janpascal
Posts: 2
Joined: Tuesday 12 December 2017 18:31
Target OS: Linux
Domoticz version:
Contact:

Re: Indentify tag id with the Zipato/beNext TagReader

Post 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
pimseb
Posts: 42
Joined: Wednesday 13 September 2017 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: France
Contact:

Re: Indentify tag id with the Zipato/beNext TagReader

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest