home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.46k stars 29.39k forks source link

Axis still broken after upgrading to 2024.3.1 #113513

Closed Gunth closed 5 months ago

Gunth commented 5 months ago

The problem

Hi all,

After the latest upgrade (2024.3.1) I still have a failed to setup error with my axis camera M2026-LE-MkII.

Gunth.

What version of Home Assistant Core has the issue?

2024.3.1

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/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-03-15 14:09:50.402 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/apidiscovery.cgi, 'b'{"apiVersion":"1.0","context":"Axis library","method":"getApiList"}'', 'None', 'None'
2024-03-15 14:10:04.895 DEBUG (MainThread) [axis.vapix.vapix] Response (from 192.168.0.43 /axis-cgi/apidiscovery.cgi): b'{"method": "getApiList", "apiVersion": "1.0", "data": {"apiList": [{"id": "privacy-mask", "version": "1.0", "name": "Privacy Masking", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "recording-storage-limit", "version": "1.0", "name": "Edge Recording storage limit", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "mdnssd", "version": "1.0", "name": "mDNS-SD", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "api-discovery", "version": "1.0", "name": "API Discovery Service", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "io-port-management", "version": "1.0", "name": "IO Port Management", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "stream-profiles", "version": "1.0", "name": "Stream Profiles", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "disk-management", "version": "1.0", "name": "Edge storage Disk management", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "oak", "version": "1.0", "name": "OAK", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "mqtt-client", "version": "1.0", "name": "MQTT Client API", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "ntp", "version": "1.2", "name": "NTP", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "upnp", "version": "1.1", "name": "UPnP", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "network-settings", "version": "1.6", "name": "Network Settings", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "systemready", "version": "1.1", "name": "Systemready", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "time-service", "version": "1.0", "name": "Time API", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "disk-properties", "version": "1.1", "name": "Edge storage Disk properties", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "custom-firmware-certificate", "version": "1.0", "name": "Custom Firmware Certificate", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "recording", "version": "1.0", "name": "Edge Recording", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "basic-device-info", "version": "1.1", "name": "Basic Device Information", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "user-management", "version": "1.1", "name": "User Management", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "shuttergain-cgi", "version": "2.0", "name": "Shuttergain CGI", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "packagemanager", "version": "1.4", "name": "Package Manager", "docLink": ""}, {"id": "overlayimage", "version": "1.0", "name": "Overlay image API", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "ptz-control", "version": "1.0", "name": "PTZ Control", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "capture-mode", "version": "1.0", "name": "Capture Mode", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "light-control", "version": "1.1", "name": "Light Control", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "disk-network-share", "version": "1.0", "name": "Edge storage Network share", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "onscreencontrols", "version": "1.5", "name": "On-Screen Controls", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "recording-export", "version": "1.1", "name": "Export edge recording", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "ssh", "version": "1.0", "name": "SSH", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "guard-tour", "version": "1.0", "name": "Guard Tour", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "param-cgi", "version": "1.0", "name": "Legacy Parameter Handling", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "customhttpheader", "version": "1.0", "name": "Custom HTTP header", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}, {"id": "fwmgr", "version": "1.4", "name": "Firmware Management", "docLink": "https://www.axis.com/partner_pages/vapix_library/#/"}]}, "context": "Axis library"}\n'
2024-03-15 14:10:04.897 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.898 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.898 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.899 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.899 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.908 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.919 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.920 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.933 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.934 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.935 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.936 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.937 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.938 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.939 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.939 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.940 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.941 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.942 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.942 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.943 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.943 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.944 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.944 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.945 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.945 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.946 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.946 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.947 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.947 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.948 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.948 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:04.949 DEBUG (MainThread) [axis.vapix.models.api_discovery] Unsupported API discovery status ''
2024-03-15 14:10:05.087 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/basicdeviceinfo.cgi, 'b'{"apiVersion":"1.1","context":"Axis library","method":"getAllProperties"}'', 'None', 'None'
2024-03-15 14:10:05.093 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/io/portmanagement.cgi, 'b'{"apiVersion":"1.0","context":"Axis library","method":"getPorts"}'', 'None', 'None'
2024-03-15 14:10:05.098 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/lightcontrol.cgi, 'b'{"apiVersion":"1.1","context":"Axis library","method":"getLightInformation"}'', 'None', 'None'
2024-03-15 14:10:05.104 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/streamprofile.cgi, 'b'{"apiVersion":"1.0","context":"Axis library","method":"list","params":{"streamProfileName":[]}}'', 'None', 'None'
2024-03-15 14:10:08.178 DEBUG (MainThread) [axis.vapix.vapix] <Response [401 Unauthorized]>, Client error '401 Unauthorized' for url 'http://192.168.0.43/axis-cgi/basicdeviceinfo.cgi'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
2024-03-15 14:10:08.739 DEBUG (MainThread) [axis.vapix.vapix] Response (from 192.168.0.43 /axis-cgi/io/portmanagement.cgi): b'{\n  "apiVersion": "1.0",\n  "context": "Axis library",\n  "method": "getPorts",\n  "data": {\n    "numberOfPorts": 0\n  }\n}'
2024-03-15 14:10:09.387 DEBUG (MainThread) [axis.vapix.vapix] Response (from 192.168.0.43 /axis-cgi/streamprofile.cgi): b'{"method": "list", "context": "Axis library", "apiVersion": "1.0", "data": {"streamProfile": [], "maxProfiles": 26}}\r\n'
2024-03-15 14:10:09.981 DEBUG (MainThread) [axis.vapix.vapix] <Response [401 Unauthorized]>, Client error '401 Unauthorized' for url 'http://192.168.0.43/axis-cgi/lightcontrol.cgi'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
2024-03-15 14:10:10.103 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/param.cgi, 'None', '{'action': 'list', 'group': 'root.Properties'}', 'None'
2024-03-15 14:10:14.659 DEBUG (MainThread) [axis.vapix.vapix] Response (from 192.168.0.43 /axis-cgi/param.cgi): b'root.Properties.AlwaysMulticast.AlwaysMulticast=yes\nroot.Properties.API.Browser.Language=yes\nroot.Properties.API.Browser.RootPwdSetValue=yes\nroot.Properties.API.Browser.UserGroup=yes\nroot.Properties.API.ClientNotes.ClientNotes=yes\nroot.Properties.API.HTTP.AdminPath=/index.html\nroot.Properties.API.HTTP.Version=3\nroot.Properties.API.Metadata.Metadata=yes\nroot.Properties.API.Metadata.Version=1.0\nroot.Properties.API.OnScreenControls.OnScreenControls=yes\nroot.Properties.API.PTZ.Presets.Version=2.00\nroot.Properties.API.RTSP.RTSPAuth=yes\nroot.Properties.API.RTSP.Version=2.01\nroot.Properties.API.WebService.EntryService=yes\nroot.Properties.API.WebService.WebService=yes\nroot.Properties.API.WebService.ONVIF.ONVIF=yes\nroot.Properties.API.WebService.ONVIF.Version=1.02\nroot.Properties.API.WebSocket.RTSP.RTSP=yes\nroot.Properties.ApiDiscovery.ApiDiscovery=yes\nroot.Properties.EmbeddedDevelopment.CacheSize=51380224\nroot.Properties.EmbeddedDevelopment.DefaultCacheSize=67108864\nroot.Properties.EmbeddedDevelopment.EmbeddedDevelopment=yes\nroot.Properties.EmbeddedDevelopment.Version=2.16\nroot.Properties.EmbeddedDevelopment.RuleEngine.MultiConfiguration=yes\nroot.Properties.Firmware.BuildDate=Feb 23 2023 23:20\nroot.Properties.Firmware.BuildNumber=1\nroot.Properties.Firmware.Version=9.80.22\nroot.Properties.FirmwareManagement.Version=1.4\nroot.Properties.Gatekeeper.Gatekeeper=no\nroot.Properties.Geolocation.Geolocation=yes\nroot.Properties.Geolocation.Version=1.0\nroot.Properties.GuardTour.GuardTour=yes\nroot.Properties.GuardTour.MaxGuardTours=100\nroot.Properties.GuardTour.MinGuardTourWaitTime=1\nroot.Properties.GuardTour.RecordedTour=no\nroot.Properties.HTTPS.HTTPS=yes\nroot.Properties.Image.Format=jpeg,mjpeg,h264,h265\nroot.Properties.Image.NbrOfViews=2\nroot.Properties.Image.Resolution=2688x1520,1920x1080,1280x960,1280x720,1024x768,1024x576,800x600,640x480,640x360,352x240,320x240\nroot.Properties.Image.Rotation=0,90,180,270\nroot.Properties.Image.H264.Profiles=Main,High\nroot.Properties.Image.H265.Profiles=Main\nroot.Properties.Image.RateControl.Version=1.1\nroot.Properties.Image.RateControl.ABR.ABR=no\nroot.Properties.ImageSource.DayNight=yes\nroot.Properties.IO.ManualTriggerNbr=6\nroot.Properties.LEDControl.LEDControl=yes\nroot.Properties.LightControl.LightControl2=yes\nroot.Properties.LightControl.LightControlAvailable=yes\nroot.Properties.LocalStorage.AutoRepair=yes\nroot.Properties.LocalStorage.ContinuousRecording=yes\nroot.Properties.LocalStorage.DiskEncryption=yes\nroot.Properties.LocalStorage.DiskHealth=yes\nroot.Properties.LocalStorage.ExportRecording=yes\nroot.Properties.LocalStorage.FailOverRecording=yes\nroot.Properties.LocalStorage.LocalStorage=yes\nroot.Properties.LocalStorage.NbrOfContinuousRecordingProfiles=1\nroot.Properties.LocalStorage.RequiredFileSystem=yes\nroot.Properties.LocalStorage.SDCard=yes\nroot.Properties.LocalStorage.StorageLimit=yes\nroot.Properties.LocalStorage.Version=1.00\nroot.Properties.Motion.MaxNbrOfWindows=10\nroot.Properties.Motion.Motion=yes\nroot.Properties.NetworkShare.CIFS=yes\nroot.Properties.NetworkShare.IPV6=yes\nroot.Properties.NetworkShare.NameLookup=yes\nroot.Properties.NetworkShare.NetworkShare=yes\nroot.Properties.PackageManager.FormatListing=yes\nroot.Properties.PackageManager.LicenseKeyManagement=yes\nroot.Properties.PackageManager.PackageManager=yes\nroot.Properties.PrivacyMask.MaxNbrOfPrivacyMasks=16\nroot.Properties.PrivacyMask.PrivacyMask=no\nroot.Properties.PTZ.DigitalPTZ=yes\nroot.Properties.PTZ.DriverManagement=no\nroot.Properties.PTZ.DriverModeList=none\nroot.Properties.PTZ.PTZ=yes\nroot.Properties.PTZ.PTZOnQuadView=no\nroot.Properties.PTZ.SelectableDriverMode=no\nroot.Properties.RemoteService.RemoteService=no\nroot.Properties.RTC.RTC=yes\nroot.Properties.Serial.Serial=no\nroot.Properties.System.Architecture=armv7hf\nroot.Properties.System.HardwareID=784\nroot.Properties.System.Language=\nroot.Properties.System.LanguageType=\nroot.Properties.System.SerialNumber=ACCC8EB51466\nroot.Properties.System.Soc=Ambarella S3L (Flattened Device Tree)\nroot.Properties.Tampering.Tampering=yes\nroot.Properties.TemperatureSensor.Fan=no\nroot.Properties.TemperatureSensor.Heater=yes\nroot.Properties.TemperatureSensor.TemperatureControl=yes\nroot.Properties.TemperatureSensor.TemperatureSensor=yes\nroot.Properties.VirtualInput.VirtualInput=yes\nroot.Properties.ZipStream.ZipStream=yes\n'
2024-03-15 14:10:14.896 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/param.cgi, 'None', '{'action': 'list', 'group': 'root.PTZ'}', 'None'
2024-03-15 14:10:15.576 DEBUG (MainThread) [axis.vapix.vapix] Response (from 192.168.0.43 /axis-cgi/param.cgi): b'root.PTZ.BoaProtPTZOperator=password\nroot.PTZ.CameraDefault=1\nroot.PTZ.NbrOfCameras=2\nroot.PTZ.NbrOfSerPorts=0\nroot.PTZ.PresetNameMaxLen=95\nroot.PTZ.CamPorts.Cam1Port=1\nroot.PTZ.CamPorts.Cam2Port=2\nroot.PTZ.ImageSource.I0.PTZEnabled=false\nroot.PTZ.Limit.L1.MaxFieldAngle=100\nroot.PTZ.Limit.L1.MaxPan=137\nroot.PTZ.Limit.L1.MaxTilt=137\nroot.PTZ.Limit.L1.MaxZoom=9999\nroot.PTZ.Limit.L1.MinFieldAngle=1\nroot.PTZ.Limit.L1.MinPan=-137\nroot.PTZ.Limit.L1.MinTilt=-137\nroot.PTZ.Limit.L1.MinZoom=1\nroot.PTZ.Limit.L2.MaxFieldAngle=100\nroot.PTZ.Limit.L2.MaxPan=137\nroot.PTZ.Limit.L2.MaxTilt=137\nroot.PTZ.Limit.L2.MaxZoom=9999\nroot.PTZ.Limit.L2.MinFieldAngle=1\nroot.PTZ.Limit.L2.MinPan=-137\nroot.PTZ.Limit.L2.MinTilt=-137\nroot.PTZ.Limit.L2.MinZoom=1\nroot.PTZ.Preset.P0.HomePosition=1\nroot.PTZ.Preset.P0.ImageSource=0\nroot.PTZ.Preset.P0.Name=\nroot.PTZ.Preset.P0.Position.P1.Data=pan=0.000000:tilt=0.000000:zoom=1.000000\nroot.PTZ.Preset.P0.Position.P1.Name=Home\nroot.PTZ.Preset.P1.HomePosition=1\nroot.PTZ.Preset.P1.ImageSource=1\nroot.PTZ.Preset.P1.Name=\nroot.PTZ.Preset.P1.Position.P1.Data=pan=0.000000:tilt=0.000000:zoom=1.000000\nroot.PTZ.Preset.P1.Position.P1.Name=Home\nroot.PTZ.PTZDriverStatuses.Driver1Status=3\nroot.PTZ.PTZDriverStatuses.Driver2Status=3\nroot.PTZ.Support.S1.AbsoluteBrightness=false\nroot.PTZ.Support.S1.AbsoluteFocus=false\nroot.PTZ.Support.S1.AbsoluteIris=false\nroot.PTZ.Support.S1.AbsolutePan=true\nroot.PTZ.Support.S1.AbsoluteTilt=true\nroot.PTZ.Support.S1.AbsoluteZoom=true\nroot.PTZ.Support.S1.ActionNotification=true\nroot.PTZ.Support.S1.AreaZoom=true\nroot.PTZ.Support.S1.AutoFocus=false\nroot.PTZ.Support.S1.AutoIrCutFilter=false\nroot.PTZ.Support.S1.AutoIris=false\nroot.PTZ.Support.S1.Auxiliary=false\nroot.PTZ.Support.S1.BackLight=false\nroot.PTZ.Support.S1.ContinuousBrightness=false\nroot.PTZ.Support.S1.ContinuousFocus=false\nroot.PTZ.Support.S1.ContinuousIris=false\nroot.PTZ.Support.S1.ContinuousPan=true\nroot.PTZ.Support.S1.ContinuousTilt=true\nroot.PTZ.Support.S1.ContinuousZoom=true\nroot.PTZ.Support.S1.DevicePreset=false\nroot.PTZ.Support.S1.DigitalZoom=false\nroot.PTZ.Support.S1.GenericHTTP=false\nroot.PTZ.Support.S1.IrCutFilter=false\nroot.PTZ.Support.S1.JoyStickEmulation=true\nroot.PTZ.Support.S1.LensOffset=false\nroot.PTZ.Support.S1.OSDMenu=false\nroot.PTZ.Support.S1.ProportionalSpeed=true\nroot.PTZ.Support.S1.RelativeBrightness=false\nroot.PTZ.Support.S1.RelativeFocus=false\nroot.PTZ.Support.S1.RelativeIris=false\nroot.PTZ.Support.S1.RelativePan=true\nroot.PTZ.Support.S1.RelativeTilt=true\nroot.PTZ.Support.S1.RelativeZoom=true\nroot.PTZ.Support.S1.ServerPreset=true\nroot.PTZ.Support.S1.SpeedCtl=true\nroot.PTZ.Support.S2.AbsoluteBrightness=false\nroot.PTZ.Support.S2.AbsoluteFocus=false\nroot.PTZ.Support.S2.AbsoluteIris=false\nroot.PTZ.Support.S2.AbsolutePan=true\nroot.PTZ.Support.S2.AbsoluteTilt=true\nroot.PTZ.Support.S2.AbsoluteZoom=true\nroot.PTZ.Support.S2.ActionNotification=true\nroot.PTZ.Support.S2.AreaZoom=true\nroot.PTZ.Support.S2.AutoFocus=false\nroot.PTZ.Support.S2.AutoIrCutFilter=false\nroot.PTZ.Support.S2.AutoIris=false\nroot.PTZ.Support.S2.Auxiliary=false\nroot.PTZ.Support.S2.BackLight=false\nroot.PTZ.Support.S2.ContinuousBrightness=false\nroot.PTZ.Support.S2.ContinuousFocus=false\nroot.PTZ.Support.S2.ContinuousIris=false\nroot.PTZ.Support.S2.ContinuousPan=true\nroot.PTZ.Support.S2.ContinuousTilt=true\nroot.PTZ.Support.S2.ContinuousZoom=true\nroot.PTZ.Support.S2.DevicePreset=false\nroot.PTZ.Support.S2.DigitalZoom=false\nroot.PTZ.Support.S2.GenericHTTP=false\nroot.PTZ.Support.S2.IrCutFilter=false\nroot.PTZ.Support.S2.JoyStickEmulation=true\nroot.PTZ.Support.S2.LensOffset=false\nroot.PTZ.Support.S2.OSDMenu=false\nroot.PTZ.Support.S2.ProportionalSpeed=true\nroot.PTZ.Support.S2.RelativeBrightness=false\nroot.PTZ.Support.S2.RelativeFocus=false\nroot.PTZ.Support.S2.RelativeIris=false\nroot.PTZ.Support.S2.RelativePan=true\nroot.PTZ.Support.S2.RelativeTilt=true\nroot.PTZ.Support.S2.RelativeZoom=true\nroot.PTZ.Support.S2.ServerPreset=true\nroot.PTZ.Support.S2.SpeedCtl=true\nroot.PTZ.UserAdv.U1.MoveSpeed=100\nroot.PTZ.UserAdv.U2.MoveSpeed=100\nroot.PTZ.Various.V1.CtlQueueing=false\nroot.PTZ.Various.V1.CtlQueueLimit=20\nroot.PTZ.Various.V1.CtlQueuePollTime=20\nroot.PTZ.Various.V1.HomePresetSet=true\nroot.PTZ.Various.V1.Locked=true\nroot.PTZ.Various.V1.MaxProportionalSpeed=200\nroot.PTZ.Various.V1.PanEnabled=true\nroot.PTZ.Various.V1.ProportionalSpeedEnabled=true\nroot.PTZ.Various.V1.ReturnToOverview=30\nroot.PTZ.Various.V1.SpeedCtlEnabled=true\nroot.PTZ.Various.V1.TiltEnabled=true\nroot.PTZ.Various.V1.ZoomEnabled=true\nroot.PTZ.Various.V2.CtlQueueing=false\nroot.PTZ.Various.V2.CtlQueueLimit=20\nroot.PTZ.Various.V2.CtlQueuePollTime=20\nroot.PTZ.Various.V2.HomePresetSet=true\nroot.PTZ.Various.V2.Locked=true\nroot.PTZ.Various.V2.MaxProportionalSpeed=200\nroot.PTZ.Various.V2.PanEnabled=true\nroot.PTZ.Various.V2.ProportionalSpeedEnabled=true\nroot.PTZ.Various.V2.ReturnToOverview=30\nroot.PTZ.Various.V2.SpeedCtlEnabled=true\nroot.PTZ.Various.V2.TiltEnabled=true\nroot.PTZ.Various.V2.ZoomEnabled=true\n'
2024-03-15 14:10:15.611 DEBUG (MainThread) [axis.vapix.vapix] post, http://192.168.0.43:80/axis-cgi/applications/list.cgi, 'None', 'None', 'None'
2024-03-15 14:10:15.773 DEBUG (MainThread) [axis.vapix.vapix] <Response [401 Unauthorized]>, Client error '401 Unauthorized' for url 'http://192.168.0.43/axis-cgi/applications/list.cgi'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
2024-03-15 14:10:15.775 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry M2026-LE-MkII - ACCC8EB51466 for axis
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/axis/__init__.py", line 27, in async_setup_entry
    device = AxisNetworkDevice(hass, config_entry, api)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 62, in __init__
    self.fw_version = api.vapix.firmware_version
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 87, in firmware_version
    return self.basic_device_info["0"].firmware_version
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 164, in __getitem__
    return self._items[obj_id]
           ~~~~~~~~~~~^^^^^^^^
KeyError: '0'

Additional information

No response

home-assistant[bot] commented 5 months ago

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!

Code owner commands Code owners of `axis` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign axis` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


axis documentation axis source (message by IssueLinks)

dsl10007 commented 5 months ago

Same here, i now have 3 of 6 working where i only had 1 before.

This is the log (Serial removed)

Error setting up entry P3265-V - XXXXXXXXXXXX for axis Error setting up entry P3265-V - XXXXXXXXXXXX for axis Error setting up entry P1455-LE - XXXXXXXXXXXX for axis

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/axis/init.py", line 21, in async_setup_entry api = await get_axis_device(hass, config_entry.data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 261, in get_axis_device await device.vapix.initialize() File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 144, in initialize await self.initialize_api_discovery() File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 162, in initialize_api_discovery await asyncio.gather(*[api.update() for api in apis if api.supported]) File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 126, in update obj_ids = await self._update() ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 115, in _update objects = await self._api_request() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 66, in _api_request return await self.get_light_information() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 74, in get_light_information return GetLightInformationResponse.decode(bytes_data).data ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/light_control.py", line 280, in decode data=LightInformation.decode_to_dict(data["data"]["items"]),


KeyError: 'data'
Kane610 commented 5 months ago

Same here, i now have 3 of 6 working where i only had 1 before.

This is the log (Serial removed)

Error setting up entry P3265-V - XXXXXXXXXXXX for axis Error setting up entry P3265-V - XXXXXXXXXXXX for axis Error setting up entry P1455-LE - XXXXXXXXXXXX for axis

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/axis/init.py", line 21, in async_setup_entry api = await get_axis_device(hass, config_entry.data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 261, in get_axis_device await device.vapix.initialize() File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 144, in initialize await self.initialize_api_discovery() File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 162, in initialize_api_discovery await asyncio.gather(*[api.update() for api in apis if api.supported]) File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 126, in update obj_ids = await self._update() ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 115, in _update objects = await self._api_request() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 66, in _api_request return await self.get_light_information() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 74, in get_light_information return GetLightInformationResponse.decode(bytes_data).data ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/light_control.py", line 280, in decode data=LightInformation.decode_to_dict(data["data"]["items"]),

KeyError: 'data'

Hello, please share debug logs

casual-campfire commented 5 months ago

Same issue with a Q3505. Attaching log file in case it will help. HA_AxisIssue_log.txt

dsl10007 commented 5 months ago

Hi

Dont know if this will help

KeyError: 'data' 2024-03-15 07:08:58.836 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry P3265-V - XXXXXXXXXXXX for axis Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/axis/init.py", line 21, in async_setup_entry api = await get_axis_device(hass, config_entry.data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 261, in get_axis_device await device.vapix.initialize() File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 144, in initialize await self.initialize_api_discovery() File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 162, in initialize_api_discovery await asyncio.gather(*[api.update() for api in apis if api.supported]) File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 126, in update obj_ids = await self._update() ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 115, in _update objects = await self._api_request() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 66, in _api_request return await self.get_light_information() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 74, in get_light_information return GetLightInformationResponse.decode(bytes_data).data ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/light_control.py", line 280, in decode data=LightInformation.decode_to_dict(data["data"]["items"]),


KeyError: 'data'
2024-03-15 07:08:59.402 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry P1455-LE - XXXXXXXXXXXX for axis
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/axis/__init__.py", line 21, in async_setup_entry
    api = await get_axis_device(hass, config_entry.data)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/axis/device.py", line 261, in get_axis_device
    await device.vapix.initialize()
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 144, in initialize
    await self.initialize_api_discovery()
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 162, in initialize_api_discovery
    await asyncio.gather(*[api.update() for api in apis if api.supported])
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 126, in update
    obj_ids = await self._update()
              ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/api_handler.py", line 115, in _update
    objects = await self._api_request()
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 66, in _api_request
    return await self.get_light_information()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/light_control.py", line 74, in get_light_information
    return GetLightInformationResponse.decode(bytes_data).data
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/light_control.py", line 280, in decode
    data=LightInformation.decode_to_dict(data["data"]["items"]),
                                         ~~~~^^^^^^^^

This is from the debug log ?
Kane610 commented 5 months ago

Same issue with a Q3505. Attaching log file in case it will help. HA_AxisIssue_log.txt

Thanks but I need debug logs as well

Kane610 commented 5 months ago

@dsl10007 that's the trace, check integration documentation for enabling the debug logs

casual-campfire commented 5 months ago

Same issue with a Q3505. Attaching log file in case it will help. HA_AxisIssue_log.txt

Thanks but I need debug logs as well

Here it is home-assistant_axis_2024-03-15T16-04-57.500Z.log

Kane610 commented 5 months ago

Same issue with a Q3505. Attaching log file in case it will help. HA_AxisIssue_log.txt

Thanks but I need debug logs as well

Here it is home-assistant_axis_2024-03-15T16-04-57.500Z.log

Thanks! Fixed this issue, waiting for a couple of more debug logs before publishing it

goeranj commented 5 months ago

Hi there,

my M1065-L an M1065-LW are not working with 2024.3.1, too.

My debug log is attached.

Thanks for your work! home-assistant_axis_2024-03-15T17-12-45.089Z.log

casual-campfire commented 5 months ago

Same issue with a Q3505. Attaching log file in case it will help. HA_AxisIssue_log.txt

Thanks but I need debug logs as well

Here it is home-assistant_axis_2024-03-15T16-04-57.500Z.log

Thanks! Fixed this issue, waiting for a couple of more debug logs before publishing it

Thank you!

Kane610 commented 5 months ago

Hi there,

my M1065-L an M1065-LW are not working with 2024.3.1, too.

My debug log is attached.

Thanks for your work! home-assistant_axis_2024-03-15T17-12-45.089Z.log

I haven't looked into it in detail yet, but if you change the user to admin it probably works in the mean time.

goeranj commented 5 months ago

Tried that.

Unfortunately this workaround let's you configure only one camera. If you try to add a second or third, the device will be added as "0" or "-", but no camera data will shown up and no entitity will be generated. See screenshot.

Bildschirmfoto 2024-03-15 um 23 48 05
Kane610 commented 5 months ago

Tried that.

Unfortunately this workaround let's you configure only one camera. If you try to add a second or third, the device will be added as "0" or "-", but no camera data will shown up and no entitity will be generated. See screenshot.

Bildschirmfoto 2024-03-15 um 23 48 05

Do you have any errors in the logs? Might be a issue with not using a admin account https://github.com/home-assistant/core/issues/113545 (will fix)

Kane610 commented 5 months ago

PR to fix issues with viewer account is up

Kane610 commented 5 months ago

For awareness: I typically release information about changes per HASS release here, this is also a good place to share your knowledge about using the devices https://community.home-assistant.io/t/axis-camera-component/

dsl10007 commented 4 months ago

Just a heads up...I installed 2024.3.3 and this made no difference from 2024.3.2

I still have 3 working cameras and 3 that does not work.

Sorry, i am not able to figure out how to get the debug log, i hope someone else, smarter than me, will post some.

Kane610 commented 4 months ago

Just a heads up...I installed 2024.3.3 and this made no difference from 2024.3.2

I still have 3 working cameras and 3 that does not work.

Sorry, i am not able to figure out how to get the debug log, i hope someone else, smarter than me, will post some.

Instructions below, open up a new issue as the original issue here has been resolved.

In your configuration.yaml

logger: default: info logs: axis: debug    homeassistant.components.axis: debug

Restart home assistant and then in the interface

dsl10007 commented 4 months ago

As said, i am unable to get it working

When i cut and paste what you put here, i get this error when testing if the configurations.yaml file is ok for a restart.

Error loading /config/configuration.yaml: mapping values are not allowed here in "/config/configuration.yaml", line 60, column 33

And line 60 is this ...

homeassistant.components.axis: debug

Kane610 commented 4 months ago
logger:
  default: info
  logs:
    axis: debug
    homeassistant.components.axis: debug

Sorry the example didn't keep the indentations. Yaml is very sensitive to that. Try this making sure its indented accordingly

dsl10007 commented 4 months ago

That worked, i made an "issue" 114033 with all the info i got from the logs, the 2 entries i show is the only ones that has to do with Axis integration in my logs after a restart.