Reading the forums, I see half of the people complaining about runing Vera, and praising the Aeotec Z-stick, and the other half complaining about issues with the Aeotec stick, and staying they had better luck using commercial controllers .
Back to the original issue, I cloned the pyVera repo, which had some Python scripts in the ./examples/ folder, namely device-listener.py.
Running that script, it seems that it’s getting lock values, though the Python object dump has some weird escape characters in it. I am not sure if that’s expected, or whether some of the key names are actually garbled. However, it looks like the alerts object/map is an empty set.
# hopefully I am not pasting my escaped door codes here...
# unlock via Vera
Front Door_3 values: {u'comment': u'', 'categoryName': u'Doorlock', u'parent': u'1', u'altid': u'2', u'configured': u'1', u'subcategory': 0, u'batterylevel': u'99', u'id': u'3', u'room': 0, u'category': 7, u'locked': u'0', u'pincodes': u'<VERSION=3>11\t1,1,2019-11-01 15:22:28,2019-11-01 15:38:23,****,Master;\t2,0;\t3,0;\t4,0;\t5,0;\t6,0;\t7,0;\t8,0;\t9,0;\t10,0;\t11,0;\t12,0;\t13,0;\t14,0;\t15,0;\t16,0;\t17,0;\t18,0;\t19,0;\t20,0;\t21,0;\t22,0;\t23,0;\t24,0;\t25,0;\t26,0;\t27,0;\t28,0;\t29,0;\t30,0;\t', u'commFailure': u'0', u'name': u'Front Door', u'state': u'1'}
Front Door_3 alerts: []
# lock via Vera
Front Door_3 values: {u'comment': u'', 'categoryName': u'Doorlock', u'parent': u'1', u'altid': u'2', u'configured': u'1', u'subcategory': 0, u'batterylevel': u'99', u'id': u'3', u'room': 0, u'category': 7, u'locked': u'1', u'pincodes': u'<VERSION=3>11\t1,1,2019-11-01 15:22:28,2019-11-01 15:38:23,****,Master;\t2,0;\t3,0;\t4,0;\t5,0;\t6,0;\t7,0;\t8,0;\t9,0;\t10,0;\t11,0;\t12,0;\t13,0;\t14,0;\t15,0;\t16,0;\t17,0;\t18,0;\t19,0;\t20,0;\t21,0;\t22,0;\t23,0;\t24,0;\t25,0;\t26,0;\t27,0;\t28,0;\t29,0;\t30,0;\t', u'commFailure': u'0', u'name': u'Front Door', u'state': u'1'}
# some time later (not immediately)
Front Door_3 alerts: []
Front Door_3 values: {u'comment': u'', 'categoryName': u'Doorlock', u'parent': u'1', u'altid': u'2', u'configured': u'1', u'subcategory': 0, u'batterylevel': u'99', u'id': u'3', u'room': 0, u'category': 7, u'locked': u'1', u'pincodes': u'<VERSION=3>11\t1,1,2019-11-01 15:22:28,2019-11-01 15:38:23,****,Master;\t2,0;\t3,0;\t4,0;\t5,0;\t6,0;\t7,0;\t8,0;\t9,0;\t10,0;\t11,0;\t12,0;\t13,0;\t14,0;\t15,0;\t16,0;\t17,0;\t18,0;\t19,0;\t20,0;\t21,0;\t22,0;\t23,0;\t24,0;\t25,0;\t26,0;\t27,0;\t28,0;\t29,0;\t30,0;\t', u'commFailure': u'0', u'name': u'Front Door', u'state': u'-1'}
Front Door_3 alerts: []
Front Door_3 values: {u'comment': u'', 'categoryName': u'Doorlock', u'parent': u'1', u'altid': u'2', u'configured': u'1', u'subcategory': 0, u'batterylevel': u'99', u'id': u'3', u'room': 0, u'category': 7, u'locked': u'1', u'pincodes': u'<VERSION=3>11\t1,1,2019-11-01 15:22:28,2019-11-01 15:38:23,****,Master;\t2,0;\t3,0;\t4,0;\t5,0;\t6,0;\t7,0;\t8,0;\t9,0;\t10,0;\t11,0;\t12,0;\t13,0;\t14,0;\t15,0;\t16,0;\t17,0;\t18,0;\t19,0;\t20,0;\t21,0;\t22,0;\t23,0;\t24,0;\t25,0;\t26,0;\t27,0;\t28,0;\t29,0;\t30,0;\t', u'commFailure': u'0', u'name': u'Front Door', u'state': u'-1'}
Front Door_3 alerts: []
Front Door_3 values: {u'comment': u'', 'categoryName': u'Doorlock', u'parent': u'1', u'altid': u'2', u'configured': u'1', u'subcategory': 0, u'batterylevel': u'99', u'id': u'3', u'room': 0, u'category': 7, u'locked': u'1', u'pincodes': u'<VERSION=3>11\t1,1,2019-11-01 15:22:28,2019-11-01 15:38:23,****,Master;\t2,0;\t3,0;\t4,0;\t5,0;\t6,0;\t7,0;\t8,0;\t9,0;\t10,0;\t11,0;\t12,0;\t13,0;\t14,0;\t15,0;\t16,0;\t17,0;\t18,0;\t19,0;\t20,0;\t21,0;\t22,0;\t23,0;\t24,0;\t25,0;\t26,0;\t27,0;\t28,0;\t29,0;\t30,0;\t', u'commFailure': u'0', u'name': u'Front Door', u'state': u'-1'}
When the listener is first started, the Initial values: section is populated with all the relevant fields, including alerts. But any subsequent alerts only show up as an empty set []
. This seems to replicate the behavior I see, where I see the values populate in HA upon start, but then they quickly disappear once the lock state changes again.