Closed Gunth closed 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!
(message by CodeOwnersMention)
axis documentation axis source (message by IssueLinks)
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'
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
Same issue with a Q3505. Attaching log file in case it will help. HA_AxisIssue_log.txt
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 ?
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
@dsl10007 that's the trace, check integration documentation for enabling the debug logs
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
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
Thanks! Fixed this issue, waiting for a couple of more debug logs before publishing it
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
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
Thanks! Fixed this issue, waiting for a couple of more debug logs before publishing it
Thank you!
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.
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.
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.
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)
PR to fix issues with viewer account is up
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/
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.
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
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
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
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.
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?
Additional information
No response