Unfortunately I have recently stopped receiveiving updates for any binary_sensors in HomeASsistant. last_tripped_time is always of the last boot time. I've added logging as follows:
I don't see anything particularly wrong except maybe for last two lines (not sure if this is an expenses behaviour):
2019-11-14 16:03:07 DEBUG (SyncWorker_5) [pyhik.hikvision] pyHik 0.2.4 initializing new hikvision device at: http://192.168.2.200
2019-11-14 16:03:07 DEBUG (SyncWorker_5) [pyhik.hikvision] Using Namespace: http://www.isapi.org/ver20/XMLSchema
2019-11-14 16:03:07 DEBUG (SyncWorker_13) [pyhik.hikvision] pyHik 0.2.4 initializing new hikvision device at: http://192.168.1.200
2019-11-14 16:03:07 DEBUG (SyncWorker_13) [pyhik.hikvision] Using Namespace: http://www.isapi.org/ver20/XMLSchema
2019-11-14 16:03:07 DEBUG (SyncWorker_5) [pyhik.hikvision] Processed 48373635-3035-3034-3032-1868cb846fe1 as NVR Device.
2019-11-14 16:03:07 DEBUG (SyncWorker_5) [pyhik.hikvision] Found events: {'tamperdetection': [1, 2, 3, 4, 5], 'videoloss': [1, 2, 4, 5, 6], 'linedetection': [1, 2, 3, 4, 5], 'diskfull': [0], 'diskerror': [0], 'illaccess': [0], 'recordingfailure': [0]}
2019-11-14 16:03:07 DEBUG (SyncWorker_5) [pyhik.hikvision] Initialized Dictionary: {'Tamper Detection': [[False, 1, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733207)], [False, 2, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733218)], [False, 3, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733223)], [False, 4, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733227)], [False, 5, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733232)]], 'Video Loss': [[False, 1, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733238)], [False, 2, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733243)], [False, 4, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733248)], [False, 5, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733252)], [False, 6, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733257)]], 'Line Crossing': [[False, 1, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733262)], [False, 2, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733267)], [False, 3, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733272)], [False, 4, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733276)], [False, 5, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733280)]], 'Disk Full': [[False, 0, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733286)]], 'Disk Error': [[False, 0, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733292)]], 'Illegal Access': [[False, 0, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733298)]], 'Recording Failure': [[False, 0, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 733304)]]}
2019-11-14 16:03:07 DEBUG (SyncWorker_13) [pyhik.hikvision] Processed 48373635-3035-3033-3638-1868cb846fbf as NVR Device.
2019-11-14 16:03:07 DEBUG (SyncWorker_13) [pyhik.hikvision] Found events: {'tamperdetection': [1, 2, 3, 4, 5], 'linedetection': [1, 2, 3, 4, 5], 'diskfull': [0], 'diskerror': [0], 'illaccess': [0]}
2019-11-14 16:03:07 DEBUG (SyncWorker_13) [pyhik.hikvision] Initialized Dictionary: {'Tamper Detection': [[False, 1, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767031)], [False, 2, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767042)], [False, 3, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767048)], [False, 4, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767052)], [False, 5, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767057)]], 'Line Crossing': [[False, 1, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767063)], [False, 2, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767068)], [False, 3, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767072)], [False, 4, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767077)], [False, 5, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767081)]], 'Disk Full': [[False, 0, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767087)]], 'Disk Error': [[False, 0, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767092)]], 'Illegal Access': [[False, 0, 0, datetime.datetime(2019, 11, 14, 16, 3, 7, 767098)]]}
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Tamper Detection 1: off>> on 48373635-3035-3034-3032-1868cb846fe1.Tamper Detection.1
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Tamper Detection 2: off>> on 48373635-3035-3034-3032-1868cb846fe1.Tamper Detection.2
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Tamper Detection 3: off>> on 48373635-3035-3034-3032-1868cb846fe1.Tamper Detection.3
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Tamper Detection 1: off>> on 48373635-3035-3033-3638-1868cb846fbf.Tamper Detection.1
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Tamper Detection 4: off>> on 48373635-3035-3034-3032-1868cb846fe1.Tamper Detection.4
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Tamper Detection 2: off>> on 48373635-3035-3033-3638-1868cb846fbf.Tamper Detection.2
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Tamper Detection 5: off>> on 48373635-3035-3034-3032-1868cb846fe1.Tamper Detection.5
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Tamper Detection 3: off>> on 48373635-3035-3033-3638-1868cb846fbf.Tamper Detection.3
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Video Loss 1: off>> on 48373635-3035-3034-3032-1868cb846fe1.Video Loss.1
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Tamper Detection 4: off>> on 48373635-3035-3033-3638-1868cb846fbf.Tamper Detection.4
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Video Loss 2: off>> on 48373635-3035-3034-3032-1868cb846fe1.Video Loss.2
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Tamper Detection 5: off>> on 48373635-3035-3033-3638-1868cb846fbf.Tamper Detection.5
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Video Loss 4: off>> on 48373635-3035-3034-3032-1868cb846fe1.Video Loss.4
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Line Crossing 1: off>> on 48373635-3035-3033-3638-1868cb846fbf.Line Crossing.1
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Video Loss 5: off>> on 48373635-3035-3034-3032-1868cb846fe1.Video Loss.5
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Line Crossing 2: off>> on 48373635-3035-3033-3638-1868cb846fbf.Line Crossing.2
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Video Loss 6: off>> on 48373635-3035-3034-3032-1868cb846fe1.Video Loss.6
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Line Crossing 3: off>> on 48373635-3035-3033-3638-1868cb846fbf.Line Crossing.3
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Line Crossing 4: off>> on 48373635-3035-3033-3638-1868cb846fbf.Line Crossing.4
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Line Crossing 1: off>> on 48373635-3035-3034-3032-1868cb846fe1.Line Crossing.1
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Line Crossing 5: off>> on 48373635-3035-3033-3638-1868cb846fbf.Line Crossing.5
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Line Crossing 2: off>> on 48373635-3035-3034-3032-1868cb846fe1.Line Crossing.2
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Disk Full 0: off>> on 48373635-3035-3033-3638-1868cb846fbf.Disk Full.0
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Line Crossing 3: off>> on 48373635-3035-3034-3032-1868cb846fe1.Line Crossing.3
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Line Crossing 4: off>> on 48373635-3035-3034-3032-1868cb846fe1.Line Crossing.4
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Disk Error 0: off>> on 48373635-3035-3033-3638-1868cb846fbf.Disk Error.0
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Line Crossing 5: off>> on 48373635-3035-3034-3032-1868cb846fe1.Line Crossing.5
2019-11-14 16:03:08 DEBUG (SyncWorker_13) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Saturn NVR Illegal Access 0: off>> on 48373635-3035-3033-3638-1868cb846fbf.Illegal Access.0
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Disk Full 0: off>> on 48373635-3035-3034-3032-1868cb846fe1.Disk Full.0
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Disk Error 0: off>> on 48373635-3035-3034-3032-1868cb846fe1.Disk Error.0
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Illegal Access 0: off>> on 48373635-3035-3034-3032-1868cb846fe1.Illegal Access.0
2019-11-14 16:03:08 DEBUG (SyncWorker_5) [pyhik.hikvision] Added update callback to <bound method HikvisionBinarySensor._update_callback of <Entity Neptune NVR Recording Failure 0: off>> on 48373635-3035-3034-3032-1868cb846fe1.Recording Failure.0
2019-11-14 16:03:12 DEBUG (Thread-6) [pyhik.hikvision] Stream Thread Started: Neptune NVR, 48373635-3035-3034-3032-1868cb846fe1
2019-11-14 16:03:12 DEBUG (Thread-7) [pyhik.hikvision] Stream Thread Started: Saturn NVR, 48373635-3035-3033-3638-1868cb846fbf
2019-11-14 16:03:12 DEBUG (Thread-6) [pyhik.hikvision] Neptune NVR Connection Successful.
2019-11-14 16:03:12 DEBUG (Thread-7) [pyhik.hikvision] Saturn NVR Connection Successful.
....................................
2019-11-14 16:08:12 DEBUG (Thread-9) [pyhik.hikvision] Neptune NVR Watchdog expired. Resetting connection.
2019-11-14 16:08:12 DEBUG (Thread-10) [pyhik.hikvision] Saturn NVR Watchdog expired. Resetting connection.