Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Axis cameras still unavailable after bump to Axis v58 #114033

Closed
dsl10007 opened this issue Mar 22, 2024 · 16 comments · Fixed by #114544
Closed

Multiple Axis cameras still unavailable after bump to Axis v58 #114033

dsl10007 opened this issue Mar 22, 2024 · 16 comments · Fixed by #114544
Assignees

Comments

@dsl10007
Copy link

The problem

I have 3 camera's that still are unable to be displayed on Home Assistant even in the latest version.

What version of Home Assistant Core has the issue?

2024.3.3

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

No response

Diagnostics information

I get the following errors in the logs

Logger: axis.models.event
Kilde: runner.py:188
Første forekomst: 21.55.46 (667 forekomster)
Senest logget: 21.56.00

Unsupported topic tns1:UserAlarm/tnsaxis:Recurring
Unsupported topic tns1:VideoSource/GlobalSceneChange/ImagingService
Unsupported topic tns1:VideoSource/GlobalSceneChange
Unsupported topic tnsaxis:Storage/Recording
Unsupported topic tnsaxis:Storage

And

Logger: homeassistant.config_entries
Kilde: config_entries.py:504
Første forekomst: 21.55.44 (3 forekomster)
Senest logget: 21.55.44

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'

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@Kane610
Copy link
Member

Kane610 commented Mar 22, 2024

Thanks! I would need the log out put from before the error as well, as that will have the data I can use to reproduce the issue.

What permissions have you provided to the integration? Admin/Operator/viewer
What firmware versions are the devices running?

@dsl10007
Copy link
Author

P1455 is running firmware 11.8.61
P3265-V vis running 11.9.60

I have no idea what permission is provided, i dont remember ever having to set that up or choose anything like that.

Looked in the raw logfile, i dont understand very much so i do not know what i should cut and paste, but it also contains a lot of other log entried other than Axis ones.

I am just not very good / experienced in this...Sorry.

@Kane610
Copy link
Member

Kane610 commented Mar 22, 2024

If you change the default logging level to error you can probably just paste it all here

logger:
  default: error

Did you provide the root credentials to home assistant? Then its admin

@home-assistant
Copy link

@arrikhan
Copy link

arrikhan commented Mar 25, 2024

P1455 is running firmware 11.8.61 P3265-V vis running 11.9.60

I have no idea what permission is provided, i dont remember ever having to set that up or choose anything like that.

Looked in the raw logfile, i dont understand very much so i do not know what i should cut and paste, but it also contains a lot of other log entried other than Axis ones.

I am just not very good / experienced in this...Sorry.

I am in the same position with 2 x Axis M1031-W cameras.

They initially did not need user/pass to add integration.

Sometimes when I use root user, it adds PIR entity only for one camera and the other camera cannot be added as it says it already exists (different IP).

I cannot see any error in logging but receive "Unknown error occurred" when it fails to be added.

I added logger to configuraiton.yaml. Will post in second post.

Note: 10.1.0.232 was added with incorrect details (using root login, admin or other users doesn't work at all).
10.1.0.231 is showing up in discovered and cannot be added.

logger:
  logs:
    homeassistant.components.axis: debug

Diagnostics download of device when I could add (with just PIR showing) as follows;

  "integration_manifest": {
    "domain": "axis",
    "name": "Axis",
    "after_dependencies": [
      "mqtt"
    ],
    "codeowners": [
      "@Kane610"
    ],
    "config_flow": true,
    "dhcp": [
      {
        "registered_devices": true
      },
      {
        "hostname": "axis-00408c*",
        "macaddress": "00408C*"
      },
      {
        "hostname": "axis-accc8e*",
        "macaddress": "ACCC8E*"
      },
      {
        "hostname": "axis-b8a44f*",
        "macaddress": "B8A44F*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/axis",
    "integration_type": "device",
    "iot_class": "local_push",
    "loggers": [
      "axis"
    ],
    "quality_scale": "platinum",
    "requirements": [
      "axis==58"
    ],
    "ssdp": [
      {
        "manufacturer": "AXIS"
      }
    ],
    "zeroconf": [
      {
        "type": "_axis-video._tcp.local.",
        "properties": {
          "macaddress": "00408c*"
        }
      },
      {
        "type": "_axis-video._tcp.local.",
        "properties": {
          "macaddress": "accc8e*"
        }
      },
      {
        "type": "_axis-video._tcp.local.",
        "properties": {
          "macaddress": "b8a44f*"
        }
      }
    ],
    "is_built_in": true
  },
  "data": {
    "config": {
      "entry_id": "c551decda9661f671a00d01f5953e0a8",
      "version": 3,
      "minor_version": 1,
      "domain": "axis",
      "title": " - ",
      "data": {
        "host": "10.1.0.232",
        "port": 80,
        "username": "**REDACTED**",
        "password": "**REDACTED**",
        "model": "",
        "name": " 0"
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "ssdp",
      "unique_id": "",
      "disabled_by": null
    }
  }
}

@Kane610
Copy link
Member

Kane610 commented Mar 25, 2024

I added logger to configuraiton.yaml. Will post in second post.

https://www.home-assistant.io/integrations/axis#debugging-integration

@afmaniacc
Copy link

afmaniacc commented Mar 30, 2024

P1455 is running firmware 11.8.61 P3265-V vis running 11.9.60
I have no idea what permission is provided, i dont remember ever having to set that up or choose anything like that.
Looked in the raw logfile, i dont understand very much so i do not know what i should cut and paste, but it also contains a lot of other log entried other than Axis ones.
I am just not very good / experienced in this...Sorry.

I am in the same position with 2 x Axis M1031-W cameras.

They initially did not need user/pass to add integration.

Sometimes when I use root user, it adds PIR entity only for one camera and the other camera cannot be added as it says it already exists (different IP).

I cannot see any error in logging but receive "Unknown error occurred" when it fails to be added.

I added logger to configuraiton.yaml. Will post in second post.

Note: 10.1.0.232 was added with incorrect details (using root login, admin or other users doesn't work at all). 10.1.0.231 is showing up in discovered and cannot be added.

logger:
  logs:
    homeassistant.components.axis: debug

Diagnostics download of device when I could add (with just PIR showing) as follows;

  "integration_manifest": {
    "domain": "axis",
    "name": "Axis",
    "after_dependencies": [
      "mqtt"
    ],
    "codeowners": [
      "@Kane610"
    ],
    "config_flow": true,
    "dhcp": [
      {
        "registered_devices": true
      },
      {
        "hostname": "axis-00408c*",
        "macaddress": "00408C*"
      },
      {
        "hostname": "axis-accc8e*",
        "macaddress": "ACCC8E*"
      },
      {
        "hostname": "axis-b8a44f*",
        "macaddress": "B8A44F*"
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/axis",
    "integration_type": "device",
    "iot_class": "local_push",
    "loggers": [
      "axis"
    ],
    "quality_scale": "platinum",
    "requirements": [
      "axis==58"
    ],
    "ssdp": [
      {
        "manufacturer": "AXIS"
      }
    ],
    "zeroconf": [
      {
        "type": "_axis-video._tcp.local.",
        "properties": {
          "macaddress": "00408c*"
        }
      },
      {
        "type": "_axis-video._tcp.local.",
        "properties": {
          "macaddress": "accc8e*"
        }
      },
      {
        "type": "_axis-video._tcp.local.",
        "properties": {
          "macaddress": "b8a44f*"
        }
      }
    ],
    "is_built_in": true
  },
  "data": {
    "config": {
      "entry_id": "c551decda9661f671a00d01f5953e0a8",
      "version": 3,
      "minor_version": 1,
      "domain": "axis",
      "title": " - ",
      "data": {
        "host": "10.1.0.232",
        "port": 80,
        "username": "**REDACTED**",
        "password": "**REDACTED**",
        "model": "",
        "name": " 0"
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "ssdp",
      "unique_id": "",
      "disabled_by": null
    }
  }
}

I have the same problem with a P1375-E Camera it can not be added with an known User it comes an Unknown error.

Camera
Firmware: 11.9.60

Home Assistant
Core 2024.4.0b3
Supervisor 2024.03.1
Operating System 12.2.rc1
Frontend 20240329.1

@Kane610
Copy link
Member

Kane610 commented Mar 30, 2024

Hello. See previous comments. I need debug logs

@dsl10007
Copy link
Author

Hi

I tried changing logger level to error and got a rather large text file. Not really comfortable posting it here, do you have somewhere i can send it to you "privately"

Lots and lots of text in the file, does not mean a whole lot to me, i hope it does to you :)

@Kane610
Copy link
Member

Kane610 commented Mar 30, 2024

You can find me to the home assistant forum as Robban

@dsl10007
Copy link
Author

Tried to message you, but get the following error

An error occurred: Body is limited to 32000 characters; you entered 530586

@Kane610
Copy link
Member

Kane610 commented Mar 30, 2024

Try discord. Robban as well

@dsl10007
Copy link
Author

I dont use discord.

NewZip.zip

PW in private message on home assistant forum in just a second

@Kane610
Copy link
Member

Kane610 commented Mar 31, 2024

@arrikhan sounds like a different issue, open a new issue. Provide a full debug log that contains the issue

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

@Kane610
Copy link
Member

Kane610 commented Mar 31, 2024

Fix is up, aiming to have it solved in 2024.4 release. Thanks for providing data to resolve the issue.

@dsl10007
Copy link
Author

Fix is up, aiming to have it solved in 2024.4 release. Thanks for providing data to resolve the issue.

ha.zip

Password in home assistant inbox. :)

@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants