Coder Social home page Coder Social logo

compatible firmware about pyhik HOT 31 CLOSED

mezz64 avatar mezz64 commented on June 24, 2024
compatible firmware

from pyhik.

Comments (31)

mezz64 avatar mezz64 commented on June 24, 2024

Did you do these tests with the latest 0.0.7 version, or the previous 0.0.6 version? I don't believe the PR to bump HASS up the 0.0.7 has been merged into stable yet.

The 0.0.6 version uses a hard coded XML namespace which it seems may not match as many cameras as I though it did so I made the XML namespace discovery dynamic in the 0.0.7 version.

If you were on the 0.0.7 version could you post some XML samples from the cameras when they are running a firmware version that produces the error? It's more than likely just an XML formatting change that I should be able to easily accommodate.

from pyhik.

boverby avatar boverby commented on June 24, 2024

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Also, as another data point, this library was developed with two cameras, both on V5.3.0 build 150513 firmware, which you seemed to have issues with. So maybe there is something else at play here.

from pyhik.

boverby avatar boverby commented on June 24, 2024

from pyhik.

ChipSkylark37 avatar ChipSkylark37 commented on June 24, 2024

Im experiencing the same issue with V5.4.0 build 160826 where its flooding the logs with list index out of range. Previous,y was on 5.3.4, and that was also having the same issue, decided to upgrade thinking it would resolve and no go. There was no interim release from LTS (rebranded firmware - not directly Hik) so I had to go straight to the latest.

On the other hand, I have another camera (EU version) running on V5.4.4 build 161125 and that works fine without issue and able to see all the binary sensors associated (line crossing, motion, etc).

If there's further logs or testing I could perform, let me know as I'd like to get this working inside of Home Assistant. Thanks!

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

See my reply to your issue on the HASS repository. You're running one version behind on the pyHik library. Your LTS camera should work with pyHik 0.0.7.

from pyhik.

testermax avatar testermax commented on June 24, 2024

I have two DS-2CD2532F-IWS cameras, (chinese version) with fw V5.2.5 build 141201 onboard. I get all motion, line detection and Intrution detection sensors triggered, but after a while, these sensors stop updating (in e.x HA).
Is fw V5.2.5 build 141201 tested ?

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

The cameras used for development were both on V5.3.0 build 150513. I have not personally tested with anything else. If the updates stopping is repeatable, please turn on debug logging for the component in HASS and look for any instances of the connection being dropped. There is logic to reconnect automatically, but something may be getting hung up somewhere.

from pyhik.

testermax avatar testermax commented on June 24, 2024

I did a new test with 2CD2142 V5.4.0 build160511 which I borrow at work.
I get the same results: motion, line and intrution detection triggers for around 12 hours, then it get hung up. All activity is logged in the HASS log (activated debug logging). I scouted for some connections being droppet, but couldnt find any reason for the events to stop fireing...
Is there any other debug possibilities?
I really want to get this working, since it saves me from installing separate PIR sensors in my setup.

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Can you post the debug log?

from pyhik.

testermax avatar testermax commented on June 24, 2024

At the moment, the line crossing and field detection is hung up, since I restarted HASS:
Log from HASS:
17-01-24 18:30:17 homeassistant.loader: Unable to find component switchWD
17-01-24 18:30:19 homeassistant.components.binary_sensor: Setting up binary_sensor.hikvision
17-01-24 18:30:19 homeassistant.components.binary_sensor: Setting up binary_sensor.hikvision
17-01-24 18:30:19 homeassistant.components.binary_sensor: Setting up binary_sensor.hikvision
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Test - Illegal_Access, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Test - Line_Crossing, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Test - Disk_Error, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Test - Field_Detection, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Test - Motion, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Inngang - Line_Crossing, Options - Ignore: True, Delay: 0
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Inngang - Disk_Error, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Inngang - Motion, Options - Ignore: True, Delay: 0
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Inngang - Illegal_Access, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Inngang - Disk_Full, Options - Ignore: None, Delay: None
17-01-24 18:30:19 homeassistant.components.binary_sensor.hikvision: Entity: Inngang - Field_Detection, Options - Ignore: None, Delay: None
17-01-24 18:30:21 homeassistant.components.binary_sensor.hikvision: Entity: Hage - Line_Crossing, Options - Ignore: None, Delay: None
17-01-24 18:30:21 homeassistant.components.binary_sensor.hikvision: Entity: Hage - Disk_Error, Options - Ignore: None, Delay: None
17-01-24 18:30:21 homeassistant.components.binary_sensor.hikvision: Entity: Hage - Motion, Options - Ignore: True, Delay: 0
17-01-24 18:30:21 homeassistant.components.binary_sensor.hikvision: Entity: Hage - Illegal_Access, Options - Ignore: None, Delay: None
17-01-24 18:30:21 homeassistant.components.binary_sensor.hikvision: Entity: Hage - Disk_Full, Options - Ignore: None, Delay: None
17-01-24 18:30:21 homeassistant.components.binary_sensor.hikvision: Entity: Hage - Field_Detection, Options - Ignore: True, Delay: 0
17-01-24 18:30:48 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:30:48 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:31:00 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:31:04 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:31:14 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:31:14 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:31:46 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:31:51 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:31:56 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:32:01 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:34:08 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:34:08 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:34:18 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:34:18 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:34:28 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:34:38 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:35:45 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:35:59 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:36:05 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:36:14 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:36:24 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:36:34 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing
17-01-24 18:36:44 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:36:54 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:37:05 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Field Detection
17-01-24 18:37:05 homeassistant.components.binary_sensor.hikvision: Dispatcher callback, signal: ValueChanged.5ced97f8-bb27-11b3-820e-006cfd17ff88, sender: Line Crossing

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

The key to debugging is enabling it for pyHik, not so much the HASS hikvision component. Add the following to your logger settings:

pyhik.hikvision: debug

from pyhik.

testermax avatar testermax commented on June 24, 2024

Good tip! I have activated logging now, and I can see all the event changes. I'll check the log after a while.
Thanks again.

from pyhik.

testermax avatar testermax commented on June 24, 2024

I have now got the logs filling up, and lost the events from the cameras at around 17:04 tonight.
The log says "Timeout getting camera image", but I get updated pictures in HASS, but no events from pyHik...

17-01-25 00:52:03 homeassistant.loader: Unable to find component switchWD
17-01-25 00:52:05 pyhik.hikvision: Initializing new hikvision device at: http://192.168.1.254
17-01-25 00:52:05 pyhik.hikvision: Initializing new hikvision device at: http://192.168.1.251
17-01-25 00:52:05 pyhik.hikvision: Initializing new hikvision device at: http://192.168.1.252
17-01-25 00:52:05 pyhik.hikvision: Using Namespace: http://www.hikvision.com/ver20/XMLSchema
17-01-25 00:52:05 pyhik.hikvision: Using Namespace: http://www.hikvision.com/ver20/XMLSchema
17-01-25 00:52:05 pyhik.hikvision: Found events: ['VMD', 'diskerror', 'illaccess', 'linedetection', 'fielddetection']
17-01-25 00:52:05 pyhik.hikvision: Initialized Dictionary: {'Disk Error': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 912137)], 'Line Crossing': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 912169)], 'Motion': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 912064)], 'Illegal Access': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 912153)], 'Field Detection': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 912183)]}
17-01-25 00:52:05 pyhik.hikvision: Stream Thread Started: Test, 5ced97f8-bb27-11b3-820e-006cfd17ff88
17-01-25 00:52:05 pyhik.hikvision: Found events: ['VMD', 'diskfull', 'diskerror', 'illaccess', 'linedetection', 'fielddetection']
17-01-25 00:52:05 pyhik.hikvision: Initialized Dictionary: {'Disk Error': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 954631)], 'Field Detection': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 954674)], 'Illegal Access': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 954647)], 'Line Crossing': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 954661)], 'Motion': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 954563)], 'Disk Full': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 5, 954614)]}
17-01-25 00:52:05 pyhik.hikvision: Stream Thread Started: Inngang, c08e578c-043b-11b4-826b-aca213d702f2
17-01-25 00:52:06 pyhik.hikvision: Using Namespace: http://www.hikvision.com/ver20/XMLSchema
17-01-25 00:52:07 pyhik.hikvision: Found events: ['VMD', 'diskfull', 'diskerror', 'illaccess', 'linedetection', 'fielddetection']
17-01-25 00:52:07 pyhik.hikvision: Initialized Dictionary: {'Disk Error': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 7, 48869)], 'Field Detection': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 7, 48911)], 'Illegal Access': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 7, 48883)], 'Line Crossing': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 7, 48897)], 'Motion': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 7, 48806)], 'Disk Full': [False, 1, 0, datetime.datetime(2017, 1, 25, 0, 52, 7, 48853)]}
17-01-25 00:52:07 pyhik.hikvision: Stream Thread Started: Hage, 5d779be9-3b69-11b5-83f7-aca213d6af38
17-01-25 00:52:46 homeassistant.components.recorder: Ended unfinished session (id=4 from 2017-01-24 19:59:35.661897)
17-01-25 00:52:46 homeassistant.components.recorder: Found unfinished sessions
17-01-25 01:06:12 homeassistant.components.recorder: Error during query: (sqlite3.OperationalError) database is locked
17-01-25 01:06:16 aiohttp.server: Error handling request
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/deps/aiohttp/web_server.py", line 61, in handle_request
resp = yield from self._handler(request)
File "/home/homeassistant/.homeassistant/deps/aiohttp/web.py", line 249, in _handle
resp = yield from handler(request)
File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
res = yield from res
File "/usr/lib/python3.4/asyncio/coroutines.py", line 143, in coro
res = yield from res
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/http/init.py", line 427, in handle
result = yield from result
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/history.py", line 236, in get
self.filters)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in iter
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 269, in result
raise CancelledError
concurrent.futures._base.CancelledError
17-01-25 01:06:17 homeassistant.components.recorder: Error during query: (sqlite3.OperationalError) database is locked
17-01-25 01:06:22 homeassistant.components.recorder: Error during query: (sqlite3.OperationalError) database is locked
17-01-25 01:21:27 pyhik.hikvision: Inngang Update: Motion, [True, 1, 1, datetime.datetime(2017, 1, 25, 1, 21, 27, 781207)]
17-01-25 01:21:37 pyhik.hikvision: Inngang Update: Motion, [False, 1, 17, datetime.datetime(2017, 1, 25, 1, 21, 37, 635166)]
17-01-25 02:31:45 homeassistant.components.verisure: Could not login to Verisure MyPages, Not logged in
17-01-25 02:41:22 pyhik.hikvision: Inngang Update: Motion, [True, 1, 18, datetime.datetime(2017, 1, 25, 2, 41, 22, 660359)]
17-01-25 02:41:32 pyhik.hikvision: Inngang Update: Motion, [False, 1, 34, datetime.datetime(2017, 1, 25, 2, 41, 32, 586686)]
17-01-25 03:07:15 homeassistant.components.verisure: Could not login to Verisure MyPages, Not logged in
17-01-25 05:00:11 homeassistant.components.sensor.snmp: SNMP error: No SNMP response received before timeout
17-01-25 05:45:01 homeassistant.core: Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out
17-01-25 07:17:57 pyhik.hikvision: Inngang Update: Motion, [True, 1, 35, datetime.datetime(2017, 1, 25, 7, 17, 57, 487924)]
17-01-25 07:18:11 pyhik.hikvision: Inngang Update: Motion, [False, 1, 62, datetime.datetime(2017, 1, 25, 7, 18, 11, 676699)]
17-01-25 07:33:58 pyhik.hikvision: Inngang Update: Motion, [True, 1, 63, datetime.datetime(2017, 1, 25, 7, 33, 58, 177556)]
17-01-25 07:34:09 pyhik.hikvision: Inngang Update: Motion, [False, 1, 84, datetime.datetime(2017, 1, 25, 7, 34, 9, 669226)]
17-01-25 08:02:24 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 08:03:02 pyhik.hikvision: Inngang Update: Motion, [True, 1, 85, datetime.datetime(2017, 1, 25, 8, 3, 2, 670925)]
17-01-25 08:03:15 pyhik.hikvision: Inngang Update: Motion, [False, 1, 109, datetime.datetime(2017, 1, 25, 8, 3, 15, 315657)]
17-01-25 08:04:50 pyhik.hikvision: Inngang Update: Motion, [True, 1, 110, datetime.datetime(2017, 1, 25, 8, 4, 50, 338472)]
17-01-25 08:04:51 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 1, datetime.datetime(2017, 1, 25, 8, 4, 51, 520179)]
17-01-25 08:05:01 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 16, datetime.datetime(2017, 1, 25, 8, 5, 1, 198557)]
17-01-25 08:05:08 pyhik.hikvision: Inngang Update: Motion, [False, 1, 154, datetime.datetime(2017, 1, 25, 8, 5, 8, 735314)]
17-01-25 08:06:07 pyhik.hikvision: Test Update: Field Detection, [True, 1, 1, datetime.datetime(2017, 1, 25, 8, 6, 7, 626998)]
17-01-25 08:06:07 pyhik.hikvision: Test Update: Line Crossing, [True, 1, 1, datetime.datetime(2017, 1, 25, 8, 6, 7, 925926)]
17-01-25 08:06:17 pyhik.hikvision: Test Update: Field Detection, [False, 1, 17, datetime.datetime(2017, 1, 25, 8, 6, 17, 572620)]
17-01-25 08:06:18 pyhik.hikvision: Test Update: Line Crossing, [False, 1, 17, datetime.datetime(2017, 1, 25, 8, 6, 18, 782503)]
17-01-25 08:06:21 pyhik.hikvision: Test Update: Field Detection, [True, 1, 18, datetime.datetime(2017, 1, 25, 8, 6, 21, 788831)]
17-01-25 08:06:25 pyhik.hikvision: Test Update: Line Crossing, [True, 1, 18, datetime.datetime(2017, 1, 25, 8, 6, 25, 398387)]
17-01-25 08:06:30 pyhik.hikvision: Test Update: Field Detection, [False, 1, 32, datetime.datetime(2017, 1, 25, 8, 6, 30, 822944)]
17-01-25 08:06:35 pyhik.hikvision: Test Update: Line Crossing, [False, 1, 34, datetime.datetime(2017, 1, 25, 8, 6, 35, 350063)]
17-01-25 08:33:52 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 08:34:26 pyhik.hikvision: Inngang Update: Motion, [True, 1, 155, datetime.datetime(2017, 1, 25, 8, 34, 26, 822188)]
17-01-25 08:34:28 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 17, datetime.datetime(2017, 1, 25, 8, 34, 28, 622990)]
17-01-25 08:34:38 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 33, datetime.datetime(2017, 1, 25, 8, 34, 38, 995579)]
17-01-25 08:34:42 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 08:34:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 08:35:00 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 34, datetime.datetime(2017, 1, 25, 8, 35, 0, 308856)]
17-01-25 08:35:02 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 08:35:10 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 50, datetime.datetime(2017, 1, 25, 8, 35, 10, 325849)]
17-01-25 08:35:12 homeassistant.components.camera.generic: Error getting new camera image: [Errno 113] Cannot connect to host 192.168.1.253:80 ssl:False [Can not connect to 192.168.1.253:80 [Connect call failed ('192.168.1.253', 80)]]
17-01-25 08:35:12 homeassistant.components.camera.generic: Error getting new camera image: [Errno 113] Cannot connect to host 192.168.1.253:80 ssl:False [Can not connect to 192.168.1.253:80 [Connect call failed ('192.168.1.253', 80)]]
17-01-25 08:35:15 homeassistant.components.camera.generic: Error getting new camera image: [Errno 113] Cannot connect to host 192.168.1.253:80 ssl:False [Can not connect to 192.168.1.253:80 [Connect call failed ('192.168.1.253', 80)]]
17-01-25 08:35:21 pyhik.hikvision: Inngang Update: Motion, [False, 1, 314, datetime.datetime(2017, 1, 25, 8, 35, 21, 68552)]
17-01-25 08:35:32 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 08:50:15 homeassistant.core: Error doing job: Fatal write error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 641, in _write_ready
n = self._sock.send(self._buffer)
OSError: [Errno 113] No route to host
17-01-25 08:50:18 homeassistant.core: Error doing job: Fatal write error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 641, in _write_ready
n = self._sock.send(self._buffer)
OSError: [Errno 113] No route to host
17-01-25 08:50:18 homeassistant.core: Error doing job: Fatal write error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 641, in _write_ready
n = self._sock.send(self._buffer)
OSError: [Errno 113] No route to host
17-01-25 08:51:03 homeassistant.core: Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-01-25 08:51:51 homeassistant.core: Error doing job: Fatal write error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 641, in _write_ready
n = self._sock.send(self._buffer)
OSError: [Errno 113] No route to host
17-01-25 08:51:54 homeassistant.core: Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-01-25 08:57:53 homeassistant.core: Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-01-25 09:16:30 pyhik.hikvision: Inngang Update: Motion, [True, 1, 1, datetime.datetime(2017, 1, 25, 9, 16, 30, 981144)]
17-01-25 09:16:32 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 1, datetime.datetime(2017, 1, 25, 9, 16, 32, 701071)]
17-01-25 09:16:46 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 29, datetime.datetime(2017, 1, 25, 9, 16, 46, 342878)]
17-01-25 09:16:59 pyhik.hikvision: Inngang Update: Motion, [False, 1, 80, datetime.datetime(2017, 1, 25, 9, 16, 59, 893762)]
17-01-25 10:00:16 homeassistant.components.sensor.snmp: SNMP error: No SNMP response received before timeout
17-01-25 11:00:13 homeassistant.components.sensor.snmp: SNMP error: No SNMP response received before timeout
17-01-25 11:03:11 homeassistant.components.verisure: Could not login to Verisure MyPages, Not logged in
17-01-25 12:26:10 homeassistant.components.verisure: Could not login to Verisure MyPages, Not logged in
17-01-25 13:00:15 homeassistant.components.sensor.snmp: SNMP error: No SNMP response received before timeout
17-01-25 14:09:43 pyhik.hikvision: Inngang Update: Motion, [True, 1, 81, datetime.datetime(2017, 1, 25, 14, 9, 43, 762117)]
17-01-25 14:09:45 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 30, datetime.datetime(2017, 1, 25, 14, 9, 45, 72413)]
17-01-25 14:09:54 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 45, datetime.datetime(2017, 1, 25, 14, 9, 54, 749177)]
17-01-25 14:10:19 pyhik.hikvision: Inngang Update: Motion, [False, 1, 182, datetime.datetime(2017, 1, 25, 14, 10, 19, 234481)]
17-01-25 14:34:36 homeassistant.core: Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready
data = self._sock.recv(self.max_size)
OSError: [Errno 113] No route to host
17-01-25 15:09:05 pyhik.hikvision: Inngang Update: Motion, [True, 1, 183, datetime.datetime(2017, 1, 25, 15, 9, 5, 960519)]
17-01-25 15:09:06 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 46, datetime.datetime(2017, 1, 25, 15, 9, 6, 251793)]
17-01-25 15:09:16 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 62, datetime.datetime(2017, 1, 25, 15, 9, 16, 154459)]
17-01-25 15:09:29 pyhik.hikvision: Inngang Update: Motion, [False, 1, 244, datetime.datetime(2017, 1, 25, 15, 9, 29, 447834)]
17-01-25 16:00:11 homeassistant.components.sensor.snmp: SNMP error: No SNMP response received before timeout
17-01-25 16:16:47 pyhik.hikvision: Inngang Update: Motion, [True, 1, 245, datetime.datetime(2017, 1, 25, 16, 16, 47, 361871)]
17-01-25 16:16:47 pyhik.hikvision: Inngang Update: Line Crossing, [True, 1, 1, datetime.datetime(2017, 1, 25, 16, 16, 47, 637869)]
17-01-25 16:16:48 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 63, datetime.datetime(2017, 1, 25, 16, 16, 48, 317397)]
17-01-25 16:16:57 pyhik.hikvision: Inngang Update: Line Crossing, [False, 1, 16, datetime.datetime(2017, 1, 25, 16, 16, 57, 341416)]
17-01-25 16:16:58 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 78, datetime.datetime(2017, 1, 25, 16, 16, 58, 258812)]
17-01-25 16:17:03 pyhik.hikvision: Inngang Update: Motion, [False, 1, 282, datetime.datetime(2017, 1, 25, 16, 17, 3, 687321)]
17-01-25 16:17:25 pyhik.hikvision: Inngang Update: Motion, [True, 1, 283, datetime.datetime(2017, 1, 25, 16, 17, 25, 133672)]
17-01-25 16:17:36 pyhik.hikvision: Inngang Update: Field Detection, [True, 1, 79, datetime.datetime(2017, 1, 25, 16, 17, 36, 275009)]
17-01-25 16:17:46 pyhik.hikvision: Inngang Update: Field Detection, [False, 1, 95, datetime.datetime(2017, 1, 25, 16, 17, 46, 745903)]
17-01-25 16:18:05 pyhik.hikvision: Inngang Update: Motion, [False, 1, 392, datetime.datetime(2017, 1, 25, 16, 18, 5, 314274)]
17-01-25 16:21:47 pyhik.hikvision: Test Update: Field Detection, [True, 1, 33, datetime.datetime(2017, 1, 25, 16, 21, 47, 694450)]
17-01-25 16:21:47 pyhik.hikvision: Test Update: Line Crossing, [True, 1, 35, datetime.datetime(2017, 1, 25, 16, 21, 47, 941541)]
17-01-25 16:21:57 pyhik.hikvision: Test Update: Field Detection, [False, 1, 50, datetime.datetime(2017, 1, 25, 16, 21, 57, 589595)]
17-01-25 16:21:58 pyhik.hikvision: Test Update: Line Crossing, [False, 1, 51, datetime.datetime(2017, 1, 25, 16, 21, 58, 93798)]
17-01-25 16:22:48 pyhik.hikvision: Test Update: Field Detection, [True, 1, 51, datetime.datetime(2017, 1, 25, 16, 22, 48, 796281)]
17-01-25 16:22:58 pyhik.hikvision: Test Update: Field Detection, [False, 1, 67, datetime.datetime(2017, 1, 25, 16, 22, 58, 716694)]
17-01-25 16:23:11 pyhik.hikvision: Test Update: Field Detection, [True, 1, 68, datetime.datetime(2017, 1, 25, 16, 23, 11, 667104)]
17-01-25 16:23:11 pyhik.hikvision: Test Update: Line Crossing, [True, 1, 52, datetime.datetime(2017, 1, 25, 16, 23, 11, 967651)]
17-01-25 16:23:21 pyhik.hikvision: Test Update: Field Detection, [False, 1, 84, datetime.datetime(2017, 1, 25, 16, 23, 21, 328753)]
17-01-25 16:23:21 pyhik.hikvision: Test Update: Line Crossing, [False, 1, 67, datetime.datetime(2017, 1, 25, 16, 23, 21, 615709)]
17-01-25 16:23:41 pyhik.hikvision: Test Update: Field Detection, [True, 1, 85, datetime.datetime(2017, 1, 25, 16, 23, 41, 482478)]
17-01-25 16:23:51 pyhik.hikvision: Test Update: Field Detection, [False, 1, 101, datetime.datetime(2017, 1, 25, 16, 23, 51, 423235)]
17-01-25 16:23:59 pyhik.hikvision: Test Update: Field Detection, [True, 1, 102, datetime.datetime(2017, 1, 25, 16, 23, 59, 251929)]
17-01-25 16:24:08 pyhik.hikvision: Test Update: Field Detection, [False, 1, 117, datetime.datetime(2017, 1, 25, 16, 24, 8, 886447)]
17-01-25 16:24:30 pyhik.hikvision: Test Update: Field Detection, [True, 1, 118, datetime.datetime(2017, 1, 25, 16, 24, 30, 895625)]
17-01-25 16:24:37 pyhik.hikvision: Test Update: Line Crossing, [True, 1, 68, datetime.datetime(2017, 1, 25, 16, 24, 37, 506881)]
17-01-25 16:24:44 pyhik.hikvision: Test Update: Field Detection, [False, 1, 146, datetime.datetime(2017, 1, 25, 16, 24, 44, 133192)]
17-01-25 16:24:47 pyhik.hikvision: Test Update: Line Crossing, [False, 1, 84, datetime.datetime(2017, 1, 25, 16, 24, 47, 470501)]
17-01-25 16:37:08 pyhik.hikvision: Test Update: Field Detection, [True, 1, 147, datetime.datetime(2017, 1, 25, 16, 37, 8, 443177)]
17-01-25 16:37:18 pyhik.hikvision: Test Update: Field Detection, [False, 1, 163, datetime.datetime(2017, 1, 25, 16, 37, 18, 380543)]
17-01-25 16:44:59 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 16:52:12 pyhik.hikvision: Inngang Update: Motion, [True, 1, 393, datetime.datetime(2017, 1, 25, 16, 52, 12, 186176)]
17-01-25 16:52:22 pyhik.hikvision: Inngang Update: Motion, [False, 1, 410, datetime.datetime(2017, 1, 25, 16, 52, 22, 391693)]
17-01-25 16:53:23 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 16:56:25 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 16:56:25 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:00:34 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:00:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:03:40 pyhik.hikvision: Test Update: Field Detection, [True, 1, 164, datetime.datetime(2017, 1, 25, 17, 3, 40, 775105)]
17-01-25 17:03:42 pyhik.hikvision: Test Update: Line Crossing, [True, 1, 85, datetime.datetime(2017, 1, 25, 17, 3, 42, 223229)]
17-01-25 17:03:51 pyhik.hikvision: Test Update: Field Detection, [False, 1, 182, datetime.datetime(2017, 1, 25, 17, 3, 51, 224037)]
17-01-25 17:03:52 pyhik.hikvision: Test Update: Line Crossing, [False, 1, 101, datetime.datetime(2017, 1, 25, 17, 3, 52, 131120)]
17-01-25 17:03:59 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:04:01 pyhik.hikvision: Test Update: Line Crossing, [True, 1, 102, datetime.datetime(2017, 1, 25, 17, 4, 1, 473385)]
17-01-25 17:04:13 pyhik.hikvision: Test Update: Line Crossing, [False, 1, 117, datetime.datetime(2017, 1, 25, 17, 4, 13, 485029)]
17-01-25 17:06:35 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:06:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:06:48 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:07:25 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:07:25 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:24:39 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:28:19 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:28:19 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:32:29 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:32:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:32:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:32:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:33:32 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:33:32 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:33:52 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:33:52 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:34:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:35:05 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:35:05 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:35:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:35:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:36:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:36:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:36:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:36:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:36:39 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:36:39 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:36:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:08 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:08 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:39 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:37:39 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:38:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:38:08 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:38:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:38:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:39:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:39:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:39:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:39:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:39:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:39:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:40:08 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:40:14 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:40:14 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:40:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:40:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:40:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:08 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:41:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:42:19 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:42:20 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:42:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:42:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:42:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:42:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:43:08 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:43:08 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:43:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:43:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:09 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:09 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:40 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:40 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:44:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:45:18 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:45:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:45:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:45:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:45:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:45:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:46:14 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:46:14 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:46:45 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:46:45 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:47:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:47:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:47:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:47:49 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:47:49 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:47:49 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 17:48:19 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:48:20 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:48:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:48:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:48:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:49:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:49:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:49:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:49:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:49:48 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:49:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:49:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:50:13 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:50:24 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:50:24 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:50:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:50:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:50:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:51:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:51:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:51:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:51:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:51:59 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:51:59 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:52:18 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:52:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:52:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:52:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:52:53 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:53:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:53:23 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:53:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:53:34 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:53:34 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:53:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:53:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:54:05 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:54:05 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:54:33 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:54:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:54:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:54:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:54:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:55:28 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:55:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:55:38 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:55:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:55:43 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:56:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:56:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:57:58 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 17:58:03 homeassistant.components.camera.generic: Timeout getting camera image
17-01-25 18:00:16 homeassistant.components.sensor.snmp: SNMP error: No SNMP response received before timeout
17-01-25 18:02:44 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 18:04:19 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 18:05:53 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 18:06:25 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 18:06:55 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 18:06:55 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 18:06:55 homeassistant.components.camera.generic: Error getting new camera image:
17-01-25 18:07:59 homeassistant.components.camera.generic: Error getting new camera image:

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

You have lots of network errors in that log, not just from pyHik, but multiple other components. What platform are you running HASS on? Can you ping the cameras from the HASS host after the updates stop?

from pyhik.

testermax avatar testermax commented on June 24, 2024

Hi,
Im running HASS on a RPi 3. Im able to ping the cameras from HASS after updates stops.
The Pi is connected to my main router, through ethernet over powerline.
The cameras are either conencted to my main router directly or through extenders...

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

The only thing I can think of, given all your connection errors, is that the stream is getting corrupted in such a way that it's not disconnecting, but it's also no longer producing usable output.

If I remember correctly the "videoloss" alarm is continuous within the event stream so I suppose I could possibly use that as a keep-alive message. Would you be able to do a simple curl request direct to your camera event stream and post the output here after letting it run for 60s or so?

From your logs, I still believe the root of your problems lies in networking, but i'm willing to work with you to make the connection lost/reconnect methods more robust and hopefully work around your issue.

from pyhik.

testermax avatar testermax commented on June 24, 2024

The log is really not representative of how my connections are. I usually get +-5 connection error in 24 hours. Not sure why I got all those in the previous log.
Now, I have connected the Rpi directly to my router, and the camera is connected through wifi.
Anyway, the get the log you mention, I`m not familiar with "curl request", but is it possible to do this through ssh when connected to the Rpi?
Thanks for helping me out.

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

I think most of the Pi distributions have curl installed by default. Try the following command in an ssh window replacing the relevant details with the correct ones for your setup.

curl -u USER:PASS http://YOURCAMIP/ISAPI/Event/notification/alertStream

It should start dumping a bunch of XML into your session from the stream. Let it run for 15-30seconds then break the connection with CTRL+C. Post the output here.

from pyhik.

testermax avatar testermax commented on June 24, 2024

Here is my log:

putty.txt

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Ok, you also get a repeated 'videoloss' event when connected to the stream so I can use that as a connection check. Give me some time to work in the changes and i'll have you do some testing.

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

I put together a simple watchdog class and implemented it to monitor the event stream. I think this should fix your issue, but it's hard for me to test.

In order to minimize the HASS interactions i've pushed the changes to a new testing branch you can find here: https://github.com/mezz64/pyHik/tree/watchdog-test

Please download that branch to your PI and edit the "test_simple.py" file to match up with the settings for a camera you are having problems with. Once the file is correct run it from your ssh session with:
python3 test_simple.py
Note that this will tie up that ssh session and will stop if you close it so you'll need to keep it open for 24hrs or so to do this test.

If all is well you should get the camera name, id, and supported events printed in the shell and a log file named "api_out.log" should be created in the same directory. The log file will catch all pyhik actions and should let me know if things are working as expected. Feel free to check it periodically and make sure events are being logged. Upload it here after a 24hr run.

It may also be beneficial to start this test in conjunction with a fresh start of HASS. That way I can compare HASS logs with the logs from the watchdog version.

from pyhik.

testermax avatar testermax commented on June 24, 2024

Hi,
I tried to run the testapp today, but it seems I`m missing some dependencies. I copied the repo to "Documents" on the pi and started test_simple.py from there:

pi@HomeAssistant:~/Documents/pyHik-watchdog-test $ python3 test_simple.py
Traceback (most recent call last):
File "test_simple.py", line 6, in
import pyhik.hikvision as hikvision
File "/home/pi/Documents/pyHik-watchdog-test/pyhik/hikvision.py", line 24, in
from pydispatch import dispatcher
ImportError: No module named 'pydispatch'

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Quick solution is to install pydispatcher through pip. The command below should get it in the right place for your python3 install.

sudo python3 -m pip install PyDispatcher

from pyhik.

testermax avatar testermax commented on June 24, 2024

Here is my 24 hour log:

02/06/2017 07:54:20 PM Initializing new hikvision device at: http://192.168.1.254
02/06/2017 07:54:20 PM Starting new HTTP connection (1): 192.168.1.254
02/06/2017 07:54:20 PM "GET /ISAPI/System/deviceInfo HTTP/1.1" 200 974
02/06/2017 07:54:20 PM Using Namespace: http://www.hikvision.com/ver20/XMLSchema
02/06/2017 07:54:20 PM Resetting dropped connection: 192.168.1.254
02/06/2017 07:54:20 PM "GET /ISAPI/Event/triggers HTTP/1.1" 200 6130
02/06/2017 07:54:20 PM Found events: ['VMD', 'diskerror', 'illaccess', 'linedetection', 'fielddetection']
02/06/2017 07:54:20 PM Initialized Dictionary: {'Illegal Access': [False, 1, 0, datetime.datetime(2017, 2, 6, 19, 54, 20, 942354)], 'Line Crossing': [False, 1, 0, datetime.datetime(2017, 2, 6, 19, 54, 20, 942369)], 'Field Detection': [False, 1, 0, datetime.datetime(2017, 2, 6, 19, 54, 20, 942384)], 'Disk Error': [False, 1, 0, datetime.datetime(2017, 2, 6, 19, 54, 20, 942337)], 'Motion': [False, 1, 0, datetime.datetime(2017, 2, 6, 19, 54, 20, 942297)]}
02/06/2017 07:54:20 PM Stream Thread Started: Test, 5ced97f8-bb27-11b3-820e-006cfd17ff88
02/06/2017 07:54:20 PM Starting new HTTP connection (1): 192.168.1.254
02/06/2017 07:54:20 PM "GET /ISAPI/Event/notification/alertStream HTTP/1.1" 200 None
02/06/2017 07:54:50 PM Test Update: Field Detection, [True, 1, 1, datetime.datetime(2017, 2, 6, 19, 54, 50, 786474)]
02/06/2017 07:55:00 PM Test Update: Field Detection, [False, 1, 17, datetime.datetime(2017, 2, 6, 19, 55, 0, 714517)]
02/06/2017 07:55:16 PM Test Update: Line Crossing, [True, 1, 1, datetime.datetime(2017, 2, 6, 19, 55, 16, 383997)]
02/06/2017 07:55:25 PM Test Update: Field Detection, [True, 1, 18, datetime.datetime(2017, 2, 6, 19, 55, 25, 696259)]
02/06/2017 07:55:25 PM Test Update: Line Crossing, [False, 1, 16, datetime.datetime(2017, 2, 6, 19, 55, 25, 998585)]
02/06/2017 07:55:35 PM Test Update: Field Detection, [False, 1, 34, datetime.datetime(2017, 2, 6, 19, 55, 35, 676153)]
02/06/2017 08:17:14 PM Test Update: Field Detection, [True, 1, 35, datetime.datetime(2017, 2, 6, 20, 17, 14, 316350)]
02/06/2017 08:17:17 PM Test Update: Line Crossing, [True, 1, 17, datetime.datetime(2017, 2, 6, 20, 17, 17, 301685)]
02/06/2017 08:17:23 PM Test Update: Field Detection, [False, 1, 50, datetime.datetime(2017, 2, 6, 20, 17, 23, 633752)]
02/06/2017 08:17:26 PM Test Update: Line Crossing, [False, 1, 32, datetime.datetime(2017, 2, 6, 20, 17, 26, 947485)]
02/06/2017 08:17:48 PM Test Update: Line Crossing, [True, 1, 33, datetime.datetime(2017, 2, 6, 20, 17, 48, 622568)]
02/06/2017 08:17:58 PM Test Update: Line Crossing, [False, 1, 49, datetime.datetime(2017, 2, 6, 20, 17, 58, 560435)]
02/06/2017 08:55:12 PM Test Update: Line Crossing, [True, 1, 50, datetime.datetime(2017, 2, 6, 20, 55, 12, 779644)]
02/06/2017 08:55:22 PM Test Update: Line Crossing, [False, 1, 66, datetime.datetime(2017, 2, 6, 20, 55, 22, 712211)]
02/07/2017 07:22:16 AM Test Update: Field Detection, [True, 1, 51, datetime.datetime(2017, 2, 7, 7, 22, 16, 137846)]
02/07/2017 07:22:26 AM Test Update: Field Detection, [False, 1, 67, datetime.datetime(2017, 2, 7, 7, 22, 26, 83777)]
02/07/2017 07:22:45 AM Test Update: Field Detection, [True, 1, 68, datetime.datetime(2017, 2, 7, 7, 22, 45, 345568)]
02/07/2017 07:22:45 AM Test Update: Line Crossing, [True, 1, 67, datetime.datetime(2017, 2, 7, 7, 22, 45, 649430)]
02/07/2017 07:22:55 AM Test Update: Field Detection, [False, 1, 85, datetime.datetime(2017, 2, 7, 7, 22, 55, 301459)]
02/07/2017 07:22:55 AM Test Update: Line Crossing, [False, 1, 83, datetime.datetime(2017, 2, 7, 7, 22, 55, 603818)]
02/07/2017 07:23:06 AM Test Update: Field Detection, [True, 1, 86, datetime.datetime(2017, 2, 7, 7, 23, 6, 442501)]
02/07/2017 07:23:06 AM Test Update: Line Crossing, [True, 1, 84, datetime.datetime(2017, 2, 7, 7, 23, 6, 742929)]
02/07/2017 07:23:15 AM Test Update: Field Detection, [False, 1, 99, datetime.datetime(2017, 2, 7, 7, 23, 15, 183787)]
02/07/2017 07:23:16 AM Test Update: Line Crossing, [False, 1, 100, datetime.datetime(2017, 2, 7, 7, 23, 16, 685196)]
02/07/2017 05:00:22 PM Test Update: Field Detection, [True, 1, 100, datetime.datetime(2017, 2, 7, 17, 0, 22, 998076)]
02/07/2017 05:00:32 PM Test Update: Field Detection, [False, 1, 115, datetime.datetime(2017, 2, 7, 17, 0, 32, 622264)]
02/07/2017 05:00:43 PM Test Update: Line Crossing, [True, 1, 101, datetime.datetime(2017, 2, 7, 17, 0, 43, 153410)]
02/07/2017 05:00:48 PM Test Update: Field Detection, [True, 1, 116, datetime.datetime(2017, 2, 7, 17, 0, 48, 871613)]
02/07/2017 05:00:53 PM Test Update: Line Crossing, [False, 1, 117, datetime.datetime(2017, 2, 7, 17, 0, 53, 92189)]
02/07/2017 05:00:58 PM Test Update: Field Detection, [False, 1, 131, datetime.datetime(2017, 2, 7, 17, 0, 58, 510987)]
02/07/2017 05:01:18 PM Test Update: Field Detection, [True, 1, 132, datetime.datetime(2017, 2, 7, 17, 1, 18, 698096)]
02/07/2017 05:01:33 PM Test Update: Field Detection, [False, 1, 164, datetime.datetime(2017, 2, 7, 17, 1, 33, 454260)]
02/07/2017 05:01:50 PM Test Update: Field Detection, [True, 1, 165, datetime.datetime(2017, 2, 7, 17, 1, 50, 21557)]
02/07/2017 05:01:59 PM Test Update: Field Detection, [False, 1, 181, datetime.datetime(2017, 2, 7, 17, 1, 59, 973880)]

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Ok, so it looks like everything stayed connected just fine for the complete 24hrs, correct? Did the HASS version stop itself during this same time period?

I don't see any instances of the watchdog or connection reset mechanisms kicking in during your test so there may be something weird going on with the pyhik/hass interaction on your system.

from pyhik.

testermax avatar testermax commented on June 24, 2024

Yes the HASS version stopped registering the line detections pretty quick after I restarted HASS, yesterday at around eight oclock afternoon.
I agree, there seems to be something with the pyhik/hass interaction, but Its quite simple to set this up, so I cant really understand what it should be.

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

What other components are you running in HASS along with hikvision? Have you tried running a HASS instance with just the hikvision component setup?

from pyhik.

testermax avatar testermax commented on June 24, 2024

I have not tried that, but I have noticed that when I run generic cameras (hikvision) together with binary sensors (hikvision), it seems to be more unstable. Other components are Hue, sonos, some mqtt, snmp...
But I will try to isolate this down, by removing all other components, and add the to see if there is any interference.

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Watchdog and improved notification functionality are now available in 0.0.9 and should show up in the next version of HASS. I'm closing this issue for now. Please open a new one if issues persist after using 0.0.9.

from pyhik.

testermax avatar testermax commented on June 24, 2024

Thank you for your support. Im looking forward to test v 0.0.9 in Hass.

from pyhik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.