Closed vpathuis closed 2 years ago
axis documentation axis source (message by IssueLinks)
Hey there @kane610, mind taking a look at this issue as it has been labeled with an integration (axis
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
could you enable debug logging for the axis integration and share the log output?
I'll add debug logging as they appear. This is the first, this occurs when I press "configure" for the integration:
2022-01-11 10:21:42 DEBUG (MainThread) [axis.vapix] Response: root.Image.TriggerDataEnabled=yes root.Image.ReferrersEnabled=no root.Image.Referrers= root.Image.MaxViewers=20 root.Image.MotionDetection=yes root.Image.NbrOfConfigs=1 root.Image.RFCCompliantMultipartEnabled=yes root.Image.PrivacyMaskType=mask_windows root.Image.OverlayPath=/etc/overlays/axis(128x44).ovl root.Image.DateFormat=YYYY-MM-DD root.Image.OwnDateFormat=%F root.Image.OwnDateFormatEnabled=no root.Image.TimeFormat=24 root.Image.OwnTimeFormat=%T root.Image.OwnTimeFormatEnabled=no root.Image.TimeResolution=1 root.Image.I0.Name= root.Image.I0.Source=0 root.Image.I0.Appearance.Resolution=640x480 root.Image.I0.Appearance.Compression=30 root.Image.I0.Appearance.Rotation=0 root.Image.I0.Appearance.MirrorEnabled=no root.Image.I0.Appearance.ColorEnabled=yes root.Image.I0.MPEG.ConfigHeaderInterval=1 root.Image.I0.MPEG.UserDataEnabled=yes root.Image.I0.MPEG.UserDataInterval=1 root.Image.I0.MPEG.ICount=1 root.Image.I0.MPEG.PCount=31 root.Image.I0.MPEG.Complexity=50 root.Image.I0.MPEG.ResyncMarkerEnabled=yes root.Image.I0.MPEG.H264.PSEnabled=no root.Image.I0.Overlay.Enabled=no root.Image.I0.Overlay.XPos=0 root.Image.I0.Overlay.YPos=0 root.Image.I0.Overlay.MaskWindows.Color=grey root.Image.I0.Overlay.MaskWindows.M0.Enabled=yes root.Image.I0.Overlay.MaskWindows.M0.XPos=75 root.Image.I0.Overlay.MaskWindows.M0.YPos=6 root.Image.I0.Overlay.MaskWindows.M0.Width=200 root.Image.I0.Overlay.MaskWindows.M0.Height=65 root.Image.I0.Overlay.MaskWindows.M0.Name=Mask%200 root.Image.I0.Overlay.MaskWindows.M1.Enabled=no root.Image.I0.Overlay.MaskWindows.M1.XPos=0 root.Image.I0.Overlay.MaskWindows.M1.YPos=0 root.Image.I0.Overlay.MaskWindows.M1.Width=0 root.Image.I0.Overlay.MaskWindows.M1.Height=0 root.Image.I0.Overlay.MaskWindows.M1.Name=Mask 2 root.Image.I0.Overlay.MaskWindows.M2.Enabled=no root.Image.I0.Overlay.MaskWindows.M2.XPos=0 root.Image.I0.Overlay.MaskWindows.M2.YPos=0 root.Image.I0.Overlay.MaskWindows.M2.Width=0 root.Image.I0.Overlay.MaskWindows.M2.Height=0 root.Image.I0.Overlay.MaskWindows.M2.Name=Mask 3 root.Image.I0.RateControl.Mode=vbr root.Image.I0.RateControl.Priority=framerate root.Image.I0.RateControl.TargetBitrate=0 root.Image.I0.RateControl.MaxFPS=30 root.Image.I0.RateControl.MinFPS=1 root.Image.I0.RateControl.MaxCompression=100 root.Image.I0.RateControl.MinCompression=0 root.Image.I0.RateControl.MaxBitrate=0 root.Image.I0.SizeControl.MaxFrameSize=0 root.Image.I0.SizeControl.DiffFrameSize=0 root.Image.I0.Stream.Duration=0 root.Image.I0.Stream.NbrOfFrames=0 root.Image.I0.Stream.FPS=0 root.Image.I0.Text.DateEnabled=no root.Image.I0.Text.ClockEnabled=yes root.Image.I0.Text.TextEnabled=no root.Image.I0.Text.String= root.Image.I0.Text.Position=top root.Image.I0.TriggerData.IOEnabled=yes root.Image.I0.TriggerData.AudioEnabled=yes root.Image.I0.TriggerData.TamperingEnabled=yes root.Image.I0.TriggerData.MotionDetectionEnabled=yes root.Image.I0.TriggerData.MotionLevelEnabled=no root.Image.I0.TriggerData.UserTriggers= from 192.168.1.23 2022-01-11 10:21:42 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 192, in post return await super().post(request) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper result = await method(view, request, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post result = await self._flow_mgr.async_init( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 203, in async_init flow, result = await task File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 230, in _async_init result = await self._async_handle_step(flow, flow.init_step, data, init_done) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/usr/src/homeassistant/homeassistant/components/axis/config_flow.py", line 235, in async_step_init return await self.async_step_configure_stream() File "/usr/src/homeassistant/homeassistant/components/axis/config_flow.py", line 267, in async_step_configure_stream if not video_source["Enabled"]: KeyError: 'Enabled'
Not sure this is related:
2022-01-12 14:39:14 DEBUG (MainThread) [axis.event_stream] {'topic': 'tns1:AudioSource/tnsaxis:TriggerLevel', 'operation': '', 'source': 'channel', 'source_idx': '1', 'type': 'triggered', 'value': '0'}
2022-01-12 14:39:14 DEBUG (MainThread) [axis.event_stream] Unsupported event operation
2022-01-12 14:39:24 DEBUG (MainThread) [axis.rtsp] OPTIONS rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 4
User-Agent: HASS Axis
Session: B455CBFD
Ok, so it does not have a "Enabled" key in the dictionary. Can you share the Properties printout done earlier?
Spamming some logging, hoping it's got what you need:
2022-01-11 19:05:22 DEBUG (MainThread) [axis.vapix] Response: root.Properties.API.HTTP.Version=3 root.Properties.API.HTTP.AdminPath=/operator/basic.shtml root.Properties.API.Metadata.Metadata=yes root.Properties.API.Metadata.Version=1.0 root.Properties.API.RTSP.Version=2.01 root.Properties.API.RTSP.RTSPAuth=yes root.Properties.API.WebService.WebService=yes root.Properties.API.WebService.ONVIF.ONVIF=yes root.Properties.API.WebService.ONVIF.Version=1.01 root.Properties.Audio.Audio=yes root.Properties.Audio.Format=g711,g726,aac root.Properties.Audio.DuplexMode=full,half,post,get root.Properties.Audio.InputType=mic root.Properties.Audio.Decoder.Format=g711,g726,axis-mulaw-128 root.Properties.Firmware.BuildNumber=1 root.Properties.Firmware.BuildDate=Jun 13 2017 14:57 root.Properties.Firmware.Version=5.20.5 root.Properties.HTTPS.HTTPS=yes root.Properties.Image.Rotation=0,180 root.Properties.Image.Resolution=640x480,480x360,320x240,240x180,160x120,176x144 root.Properties.Image.Format=jpeg,mjpeg,mpeg4,h264,bitmap root.Properties.Image.NbrOfViews=1 root.Properties.LightControl.LightControl=yes root.Properties.Motion.Motion=yes root.Properties.Motion.MaxNbrOfWindows=10 root.Properties.RemoteService.RemoteService=yes root.Properties.RTC.RTC=no root.Properties.System.Language=English root.Properties.System.HardwareID=170 root.Properties.System.SerialNumber=00408CA5FA37 root.Properties.System.Architecture=armv5tejl root.Properties.Tampering.Tampering=yes root.Properties.TemperatureSensor.TemperatureSensor=yes root.Properties.TemperatureSensor.TemperatureControl=no root.Properties.TemperatureSensor.Fan=no root.Properties.TemperatureSensor.Heater=no from 192.168.1.23
2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] <Response [404 Not Found]>, Client error '404 Not Found' for url 'http://192.168.1.23/axis-cgi/apidiscovery.cgi' For more information check: https://httpstatuses.com/404 2022-01-11 19:05:19 DEBUG (MainThread) [axis.api] '' 2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Properties {} 2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.PTZ {} 2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Brand {} 2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.StreamProfile {} 2022-01-11 19:05:19 INFO (MainThread) [homeassistant.setup] Setting up stream 2022-01-11 19:05:19 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.0 seconds 2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Input {} 2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.IOPort {} 2022-01-11 19:05:19 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Output {}
Strangely I haven't seen the call to 192.168.0.90 yet since setting it to debug logging.
It took a while, but today it's been spamming my log again. Now with debugging. Hopefully this will help:
2022-01-15 13:04:20 DEBUG (MainThread) [axis.rtsp] TEARDOWN rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 5
Authorization: Digest username="XXX", realm="AXIS_00408CA5FA37", algorithm="MD5", nonce="0014f286Y19947573734e03d04bfd177b92455ff1427fd", uri="rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on", response="a0da062ee6740b3641919a73bb0948b1"
User-Agent: HASS Axis
Session: 41CC0C7F
2022-01-15 13:04:20 DEBUG (MainThread) [axis.rtsp] RTSP session lost connection
2022-01-15 13:04:20 DEBUG (MainThread) [axis.rtsp] Stream recepient offline
2022-01-15 13:04:20 DEBUG (MainThread) [axis.api] {}
2022-01-15 13:04:20 DEBUG (MainThread) [axis.vapix] http://192.168.0.90:80/axis-cgi/apidiscovery.cgi {'json': {'method': 'getApiList', 'apiVersion': '1.0', 'context': 'Axis library'}}
2022-01-15 13:04:26 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:04:28 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:04:31 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:04:35 ERROR (MainThread) [homeassistant.components.axis] Error connecting to the Axis device at 192.168.0.90
2022-01-15 13:04:35 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Camera M1031-W' for axis integration not ready yet; Retrying in background
2022-01-15 13:04:40 DEBUG (MainThread) [axis.api] {}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/apidiscovery.cgi {'json': {'method': 'getApiList', 'apiVersion': '1.0', 'context': 'Axis library'}}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] <Response [404 Not Found]>, Client error '404 Not Found' for url 'http://192.168.1.23/axis-cgi/apidiscovery.cgi'
For more information check: https://httpstatuses.com/404
2022-01-15 13:04:40 DEBUG (MainThread) [axis.api] ''
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Properties {}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.PTZ {}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Brand {}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.StreamProfile {}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Input {}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.IOPort {}
2022-01-15 13:04:40 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Output {}
2022-01-15 13:04:42 INFO (MainThread) [charset_normalizer] ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-01-15 13:04:42 INFO (MainThread) [charset_normalizer] ascii is most likely the one. Stopping the process.
2022-01-15 13:04:42 DEBUG (MainThread) [axis.vapix] Response: # Error: Error -1 getting param in group 'root.PTZ'
from 192.168.1.23
2022-01-15 13:04:42 DEBUG (MainThread) [axis.vapix] Response: root.Input.NbrOfInputs=1
from 192.168.1.23
2022-01-15 13:04:42 DEBUG (MainThread) [axis.vapix] Response: root.Output.NbrOfOutputs=0
from 192.168.1.23
2022-01-15 13:04:43 INFO (MainThread) [charset_normalizer] ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-01-15 13:04:43 INFO (MainThread) [charset_normalizer] ascii is most likely the one. Stopping the process.
2022-01-15 13:04:43 DEBUG (MainThread) [axis.vapix] Response: root.Brand.Brand=AXIS
root.Brand.ProdFullName=AXIS M1031-W Network Camera
root.Brand.ProdShortName=AXIS M1031-W
root.Brand.ProdNbr=M1031-W
root.Brand.ProdType=Network Camera
root.Brand.WebURL=http://www.axis.com/
from 192.168.1.23
2022-01-15 13:04:43 INFO (MainThread) [charset_normalizer] ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-01-15 13:04:43 INFO (MainThread) [charset_normalizer] ascii is most likely the one. Stopping the process.
2022-01-15 13:04:43 DEBUG (MainThread) [axis.vapix] Response: root.IOPort.I0.Configurable=no
root.IOPort.I0.Direction=input
root.IOPort.I0.Input.Name=PIR sensor
root.IOPort.I0.Input.Trig=closed
from 192.168.1.23
2022-01-15 13:04:45 INFO (MainThread) [charset_normalizer] ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-01-15 13:04:45 INFO (MainThread) [charset_normalizer] ascii is most likely the one. Stopping the process.
2022-01-15 13:04:45 DEBUG (MainThread) [axis.vapix] Response: root.Properties.API.HTTP.Version=3
root.Properties.API.HTTP.AdminPath=/operator/basic.shtml
root.Properties.API.Metadata.Metadata=yes
root.Properties.API.Metadata.Version=1.0
root.Properties.API.RTSP.Version=2.01
root.Properties.API.RTSP.RTSPAuth=yes
root.Properties.API.WebService.WebService=yes
root.Properties.API.WebService.ONVIF.ONVIF=yes
root.Properties.API.WebService.ONVIF.Version=1.01
root.Properties.Audio.Audio=yes
root.Properties.Audio.Format=g711,g726,aac
root.Properties.Audio.DuplexMode=full,half,post,get
root.Properties.Audio.InputType=mic
root.Properties.Audio.Decoder.Format=g711,g726,axis-mulaw-128
root.Properties.Firmware.BuildNumber=1
root.Properties.Firmware.BuildDate=Jun 13 2017 14:57
root.Properties.Firmware.Version=5.20.5
root.Properties.HTTPS.HTTPS=yes
root.Properties.Image.Rotation=0,180
root.Properties.Image.Resolution=640x480,480x360,320x240,240x180,160x120,176x144
root.Properties.Image.Format=jpeg,mjpeg,mpeg4,h264,bitmap
root.Properties.Image.NbrOfViews=1
root.Properties.LightControl.LightControl=yes
root.Properties.Motion.Motion=yes
root.Properties.Motion.MaxNbrOfWindows=10
root.Properties.RemoteService.RemoteService=yes
root.Properties.RTC.RTC=no
root.Properties.System.Language=English
root.Properties.System.HardwareID=170
root.Properties.System.SerialNumber=00408CA5FA37
root.Properties.System.Architecture=armv5tejl
root.Properties.Tampering.Tampering=yes
root.Properties.TemperatureSensor.TemperatureSensor=yes
root.Properties.TemperatureSensor.TemperatureControl=no
root.Properties.TemperatureSensor.Fan=no
root.Properties.TemperatureSensor.Heater=no
from 192.168.1.23
2022-01-15 13:04:46 INFO (MainThread) [charset_normalizer] ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-01-15 13:04:46 INFO (MainThread) [charset_normalizer] ascii is most likely the one. Stopping the process.
2022-01-15 13:04:46 DEBUG (MainThread) [axis.vapix] Response: root.StreamProfile.MaxGroups=20
root.StreamProfile.S0.Name=Quality
root.StreamProfile.S0.Description=Best image quality and full frame rate.
root.StreamProfile.S0.Parameters=videocodec=h264&resolution=640x480&compression=20&fps=0&videokeyframeinterval=8&videobitrate=0
root.StreamProfile.S0.Default.Name=Quality
root.StreamProfile.S0.Default.Description=Best image quality and full frame rate.
root.StreamProfile.S0.Default.Parameters=videocodec=h264&resolution=640x480&compression=20&fps=0&videokeyframeinterval=8&videobitrate=0
root.StreamProfile.S1.Name=Balanced
root.StreamProfile.S1.Description=Medium image quality and frame rate.
root.StreamProfile.S1.Parameters=videocodec=h264&resolution=640x480&compression=30&fps=15&videokeyframeinterval=15&videobitrate=0
root.StreamProfile.S1.Default.Name=Balanced
root.StreamProfile.S1.Default.Description=Medium image quality and frame rate.
root.StreamProfile.S1.Default.Parameters=videocodec=h264&resolution=640x480&compression=30&fps=15&videokeyframeinterval=15&videobitrate=0
root.StreamProfile.S2.Name=Bandwidth
root.StreamProfile.S2.Description=Low bandwidth with medium image quality.
root.StreamProfile.S2.Parameters=videocodec=h264&resolution=640x480&compression=50&fps=15&videokeyframeinterval=32&videobitrate=250&videomaxbitrate=1000&videobitratepriority=framerate
root.StreamProfile.S2.Default.Name=Bandwidth
root.StreamProfile.S2.Default.Description=Low bandwidth with medium image quality.
root.StreamProfile.S2.Default.Parameters=videocodec=h264&resolution=640x480&compression=50&fps=15&videokeyframeinterval=32&videobitrate=250&videomaxbitrate=1000&videobitratepriority=framerate
root.StreamProfile.S3.Name=Mobile
root.StreamProfile.S3.Description=Mobile device settings.
root.StreamProfile.S3.Parameters=videocodec=h264&resolution=176x144&compression=50&fps=15&videokeyframeinterval=32&videobitrate=120&videomaxbitrate=128&videobitratepriority=quality&audio=0
root.StreamProfile.S3.Default.Name=Mobile
root.StreamProfile.S3.Default.Description=Mobile device settings.
root.StreamProfile.S3.Default.Parameters=videocodec=h264&resolution=176x144&compression=50&fps=15&videokeyframeinterval=32&videobitrate=120&videomaxbitrate=128&videobitratepriority=quality&audio=0
from 192.168.1.23
2022-01-15 13:04:46 DEBUG (MainThread) [axis.api] {0: {'Configurable': False,
'Direction': 'input',
'Input.Name': 'PIR sensor',
'Input.Trig': 'closed'}}
2022-01-15 13:04:46 DEBUG (MainThread) [axis.api] {}
2022-01-15 13:04:46 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.axis
2022-01-15 13:04:46 INFO (MainThread) [homeassistant.components.camera] Setting up camera.axis
2022-01-15 13:04:46 INFO (MainThread) [homeassistant.components.light] Setting up light.axis
2022-01-15 13:04:46 INFO (MainThread) [homeassistant.components.switch] Setting up switch.axis
2022-01-15 13:04:46 DEBUG (MainThread) [axis.api] {}
2022-01-15 13:04:46 DEBUG (MainThread) [axis.streammanager] rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] Stream listener online
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] OPTIONS rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 0
User-Agent: HASS Axis
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 200 OK', 'CSeq: 0', 'Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN', 'Date: Tue, 21 Dec 2021 16:42:05 GMT', ''] from 192.168.1.23
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] DESCRIBE rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 1
User-Agent: HASS Axis
Accept: application/sdp
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 401 Unauthorized', 'CSeq: 1', 'WWW-Authenticate: Digest realm="AXIS_00408CA5FA37", nonce="0014ff97Y2504586701771319d7b8a2720aadec03cdc62", stale=FALSE', 'WWW-Authenticate: Basic realm="AXIS_00408CA5FA37"', 'Date: Tue, 21 Dec 2021 16:42:05 GMT', ''] from 192.168.1.23
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] DESCRIBE rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 1
Authorization: Digest username="XXX", realm="AXIS_00408CA5FA37", algorithm="MD5", nonce="0014ff97Y2504586701771319d7b8a2720aadec03cdc62", uri="rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on", response="625936e5ada632d8322ff439ae3ab937"
User-Agent: HASS Axis
Accept: application/sdp
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 200 OK', 'CSeq: 1', 'Content-Type: application/sdp', 'Content-Base: rtsp://192.168.1.23/axis-media/media.amp/', 'Date: Tue, 21 Dec 2021 16:42:05 GMT', 'Content-Length: 384', '', 'v=0', 'o=- 1640104925271009 1640104925271009 IN IP4 192.168.1.23', 's=Media Presentation', 'e=NONE', 'c=IN IP4 0.0.0.0', 't=0 0', 'a=control:rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on', 'a=range:npt=0.000000-', 'm=application 0 RTP/AVP 98', 'a=sendonly', 'a=control:rtsp://192.168.1.23/axis-media/media.amp/trackID=3?video=0&audio=0&event=on', 'a=rtpmap:98 vnd.onvif.metadata/90000'] from 192.168.1.23
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] SETUP rtsp://192.168.1.23/axis-media/media.amp/trackID=3?video=0&audio=0&event=on RTSP/1.0
CSeq: 2
Authorization: Digest username="XXX", realm="AXIS_00408CA5FA37", algorithm="MD5", nonce="0014ff97Y2504586701771319d7b8a2720aadec03cdc62", uri="rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on", response="08e31734943853539a27fd2e79c7e38b"
User-Agent: HASS Axis
Transport: RTP/AVP;unicast;client_port=52100-52101
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 200 OK', 'CSeq: 2', 'Session: 15CB412A; timeout=60', 'Transport: RTP/AVP;unicast;client_port=52100-52101;server_port=50002-50003;ssrc=B88BD1E0;mode="PLAY"', 'Date: Tue, 21 Dec 2021 16:42:05 GMT', ''] from 192.168.1.23
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] PLAY rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 3
Authorization: Digest username="XXX", realm="AXIS_00408CA5FA37", algorithm="MD5", nonce="0014ff97Y2504586701771319d7b8a2720aadec03cdc62", uri="rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on", response="20be08fbe33bb4967aa9c22510e2b256"
User-Agent: HASS Axis
Session: 15CB412A
2022-01-15 13:04:46 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 200 OK', 'CSeq: 3', 'Session: 15CB412A', 'Range: npt=0-', 'RTP-Info: url=rtsp://192.168.1.23/axis-media/media.amp/trackID=3?video=0&audio=0&event=on;seq=8968;rtptime=657281524', 'Date: Tue, 21 Dec 2021 16:42:05 GMT', ''] from 192.168.1.23
2022-01-15 13:04:46 DEBUG (MainThread) [axis.event_stream] {'topic': 'tns1:Device/tnsaxis:IO/VirtualPort', 'operation': 'Initialized', 'source': 'port', 'source_idx': '0', 'type': 'state', 'value': '0'}
2022-01-15 13:04:46 DEBUG (MainThread) [axis.event_stream] Unsupported event tns1:Device/tnsaxis:IO/VirtualPort
2022-01-15 13:04:47 DEBUG (MainThread) [axis.event_stream] {'topic': 'tns1:Device/tnsaxis:Sensor/PIR', 'operation': 'Initialized', 'source': 'sensor', 'source_idx': '0', 'type': 'state', 'value': '0'}
2022-01-15 13:05:41 DEBUG (MainThread) [axis.rtsp] OPTIONS rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 4
User-Agent: HASS Axis
Session: 15CB412A
2022-01-15 13:05:41 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 200 OK', 'CSeq: 4', 'Session: 15CB412A', 'Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN', 'Date: Tue, 21 Dec 2021 16:43:00 GMT', ''] from 192.168.1.23
2022-01-15 13:06:01 DEBUG (MainThread) [axis.rtsp] TEARDOWN rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 5
Authorization: Digest username="XXX", realm="AXIS_00408CA5FA37", algorithm="MD5", nonce="0014ff97Y2504586701771319d7b8a2720aadec03cdc62", uri="rtsp://192.168.1.23/axis-media/media.amp?video=0&audio=0&event=on", response="1babc41463cf9d456fff4304f7828ae1"
User-Agent: HASS Axis
Session: 15CB412A
2022-01-15 13:06:01 DEBUG (MainThread) [axis.rtsp] RTSP session lost connection
2022-01-15 13:06:01 DEBUG (MainThread) [axis.rtsp] Stream recepient offline
2022-01-15 13:06:01 DEBUG (MainThread) [axis.api] {}
2022-01-15 13:06:01 DEBUG (MainThread) [axis.vapix] http://192.168.0.90:80/axis-cgi/apidiscovery.cgi {'json': {'method': 'getApiList', 'apiVersion': '1.0', 'context': 'Axis library'}}
2022-01-15 13:06:08 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:06:08 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:06:09 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:06:09 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:06:12 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:06:12 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 166, in async_new_address_callback
device = hass.data[AXIS_DOMAIN][entry.unique_id]
KeyError: '00:40:8c:a5:fa:37'
2022-01-15 13:06:16 ERROR (MainThread) [homeassistant.components.axis] Error connecting to the Axis device at 192.168.0.90
2022-01-15 13:06:16 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Camera M1031-W' for axis integration not ready yet; Retrying in background
2022-01-15 13:06:21 DEBUG (MainThread) [axis.api] {}
2022-01-15 13:06:21 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/apidiscovery.cgi {'json': {'method': 'getApiList', 'apiVersion': '1.0', 'context': 'Axis library'}}
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] <Response [404 Not Found]>, Client error '404 Not Found' for url 'http://192.168.1.23/axis-cgi/apidiscovery.cgi'
For more information check: https://httpstatuses.com/404
2022-01-15 13:06:22 DEBUG (MainThread) [axis.api] ''
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Properties {}
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.PTZ {}
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Brand {}
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.StreamProfile {}
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Input {}
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.IOPort {}
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] http://192.168.1.23:80/axis-cgi/param.cgi?action=list&group=root.Output {}
2022-01-15 13:06:22 INFO (MainThread) [charset_normalizer] ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-01-15 13:06:22 INFO (MainThread) [charset_normalizer] ascii is most likely the one. Stopping the process.
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] Response: # Error: Error -1 getting param in group 'root.PTZ'
from 192.168.1.23
2022-01-15 13:06:22 INFO (MainThread) [charset_normalizer] ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
2022-01-15 13:06:22 INFO (MainThread) [charset_normalizer] ascii is most likely the one. Stopping the process.
2022-01-15 13:06:22 DEBUG (MainThread) [axis.vapix] Response: root.IOPort.I0.Configurable=no```
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Im keeping track of these issues even if they are closed. Though it does take some time before I can get to it.
The problem
My Axis M1031-W works fine in HA and no real problems with the integration, but it does spam my logs with all sorts of messages.
It seems to keep trying to connect to the default IP :
FYI, my Axis is configured on 192.168.1.23.
The configure button from the integration panel, gives me this error:
which gives this logging:
I also found this logging, not sure its related:
And finally:
What version of Home Assistant Core has the issue?
core-2021.12.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
axis
Link to integration documentation on our website
https://www.home-assistant.io/integrations/axis
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response