Axis cameras fail on the latest updated version

After updating HA, it seems 5 of 6 of my AXIS cameras has stopped working with the integration.

This is from the error log.

As said, i have 6 cameras of various models, only one works.

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 146, in initialize
    await self.initialize_applications()
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/vapix.py", line 207, in initialize_applications
    await self.applications.update()
  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/applications/applications.py", line 35, in _api_request
    return await self.get_api_list()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/applications/applications.py", line 40, in get_api_list
    response = ListApplicationsResponse.decode(bytes_data)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/applications/application.py", line 168, in decode
    return cls(data=Application.decode_to_dict(apps))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/api.py", line 29, in decode_to_dict
    return {v.id: v for v in cls.decode_to_list(data)}
                             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/api.py", line 24, in decode_to_list
    return [cls.decode(data) for data in data_list]
            ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/applications/application.py", line 134, in decode
    configuration_page=data["ConfigurationPage"],
                       ~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'ConfigurationPage' 

PS. All cameras are online in my DVR and i have made no changed to those.

I’m seeing something similar:

2024-03-08 21:55:39.341 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry XYZ-Camera 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/port_management.py", line 31, in _api_request
    return await self.get_ports()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/interfaces/port_management.py", line 36, in get_ports
    return GetPortsResponse.decode(bytes_data).data
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/axis/vapix/models/port_management.py", line 221, in decode
    data=Port.decode_to_dict(data["data"]["items"]),
                             ~~~~~~~~~~~~^^^^^^^^^
KeyError: 'items'

5 cams failed after last update.

  • Core 2024.3.0
  • Supervisor 2024.02.1
  • Operating System 12.0
  • Frontend 20240306.0

It seems we are not alone :slight_smile:

Yeah, reading through the other threads, Kane610 appears to have a fix in the works. Given that HA sometimes has releases every week, hopefully we’ll see an update soon.

Same here, glad I’ve found this threat. So not my fault, had some router issues here (changed this Netgear Orbis router eventually) and thought may be that was the problem…

+1, same here, all axis cameras stopped working

Updating Core to 2024.3.1 resolved the issue with my P3224-LV Mk II’s

Still problems with some models though, there is a new thread with multiple people complaining over on github.

still having trouble with several M3057… tried different firmwares with no difference…

Yeah, the author seems to have found an additional problem, i think he claimed that a bugfix was being released for the .2 version of this month.

I have 3 of 6 that still dont work.