I’m in the middle of a rewrite of the component from using Gstreamer and threads to only using native Python and async. My goals are to be following HASS guidelines as close as possible as well as making it fully plug and play since using Gstreamer complicates the setup of the environment too much.
I’m running Hass.io 0.55.0 and after installing this PR all camera and motion detection functionality was restored to the way it used to work under hassbian with the GI dependancy loaded…
Thanks
For some reason the rtsp handshake doesn’t work properly. Can you enable debug and post the printouts? Follow the instructions here https://home-assistant.io/components/logger/
I have now upgraded my system, and RTSP setup does work for me. Though it is with the same devices used in the development system. But since all Axis devices behave more or less the same you might have a system issue or found a bug in the component. Lets try to solve it!
I’m running HASS.io on a RPi2 and trying to get a Axis M1034-W to work with it. A couple of versions ago, probably a week or two, I got it to work but now I don’t. Have tried to configure it through the front-end and also through input in configuration.yaml.
2017-11-13 22:11:38 ERROR (MainThread) [asyncio] Unhandled error in exception handler
context: {‘exception’: KeyError(‘Source_value’,)}
Traceback (most recent call last):
File “uvloop/handles/udp.pyx”, line 339, in uvloop.loop.__uv_udp_on_receive (uvloop/loop.c:105874)
File “uvloop/handles/udp.pyx”, line 241, in uvloop.loop.UDPTransport._on_receive (uvloop/loop.c:104790)
File “/usr/lib/python3.6/site-packages/axis/rtsp.py”, line 168, in datagram_received
self.callback(‘data’)
File “/usr/lib/python3.6/site-packages/axis/streammanager.py”, line 62, in session_callback
self.event.manage_event(self.data)
File “/usr/lib/python3.6/site-packages/axis/event.py”, line 81, in manage_event
new_event = AxisEvent(data)
File “/usr/lib/python3.6/site-packages/axis/event.py”, line 110, in init
self.id = data[‘Source_value’]
KeyError: ‘Source_value’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “uvloop/loop.pyx”, line 1879, in uvloop.loop.Loop.call_exception_handler (uvloop/loop.c:35032)
File “/usr/lib/python3.6/site-packages/homeassistant/core.py”, line 94, in async_loop_exception_handler
_LOGGER.error(“Error doing job: %s”, context[‘message’], **kwargs)
KeyError: ‘message’