Axis camera component

Hello
Is there any change to make the config button work to setup different video source because i have an axis f34 unit with multiple analog cameras connected

Thank you

Sure. I just need to see how those devices expose the different sources. Maybe in that case you should be able to retrieve multiple streams?

Hy wow great we’ll let me know what you need. For the moment it takes camera 1 feed working fine but It also has 3 more and a quad view.
For example i can stream it using this:
rtsp://user:[email protected]:554/axis-media/media.amp?camera=2&videocodec=h264&streamprofile=low

Oh and your integration is working flawless for the F41 and the Q6155-E. Now one i get this going i am also gonna do some test to see if can get the D2110-VE.
Thanks

1 Like

I haven’t done anything yet to support the D2110, its on my todo :slight_smile:

All standard APIs and events should of course work out of the box.

1 Like

Bumping this to get attention :slight_smile: .

Please do a request on the axis library GitHub, that will help me remember things. I can’t remember all comments on the forum.

With that said, I can’t promise when I’ll get to adding D2110 support since I have other things I need to do first

My Axis M1031-W keeps trying to connect to the default IP. It doesn’t bother me much, but it’s spamming the logs:

First occurred: 10:58:13 (21 occurrences)
Last logged: 16:53:40
* Error connecting to the Axis device at 192.168.0.90

FYI, my Axis is configured on 192.168.1.23 and it works fine otherwise.

Discovery protocols should help with updating the address if it’s properly set up. What’s working fine the integration or the device?

Both the device and the integration work fine. Well, sometimes a snapshot I send to pushover is missed, but I don’t think that’s related. It really only the logging where I saw this in a cleaning effort.
I don’t understand the thing about the discovery protocols, is that something I can do?
I’ve tried the configure button from the integration panel, but strangely that gives me the error:
image

I believe this logging is linked to that error:

Logger: aiohttp.server
Source: components/axis/config_flow.py:267
First occurred: 10:49:35 (4 occurrences)
Last logged: 10:51:24

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'

I also found this logging, not sure its related:

Logger: homeassistant
Source: components/axis/device.py:166
First occurred: 10:07:20 (6 occurrences)
Last logged: 10:07:55

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:xx:xx'

And finally:

Logger: homeassistant.config_entries
Source: config_entries.py:344
First occurred: 10:07:30 (4 occurrences)
Last logged: 11:09:09

Config entry 'Camera M1031-W' for axis integration not ready yet; Retrying in background

Could you create a GitHub issue on ha core? Better than doing that here

Yes, I’ve done so. Thanks for the suggestion.

1 Like

Axis Integration:
All Axis cameras that are made available (and working) through the Axis Integration are not available after a reboot. Over time 1-2 hours they become available again. Is this normal behavior? If not is there something I can do to have these cameras available directly after a reboot?
I use a Q7436 3 blade 291 server.
(I should also mention that the 4 comeras I have configured through the Ubiquiti Unifi Protect integration are always available directly after reboot.) Thanks

No its not normal behavior. Sounds really weird

I have some Axis M1054 cameras, is there a way to use HA to turn on/off the LED light? It is not an IR light. I am able to use the PIR sensor that is included. Am using firmware 5.51.7.6.

It’s not impossible but AFAIK there is not a detailed api to control that light so I wouldn’t know how

If you are able to use http then the following should work: (on my M1054 and M1031 oldies)
http://[USERNAME]:[PASSWORD]@[CAMERA IP]/axis-cgi/io/lightcontrol.cgi?action=L1:[BRIGHTNESS] where brightness 0 = off and 100 = 100%

Edit:

Art.

How do you know the state of the light?

Thank you, will give it a shot.

I found this, but have not had time to search it much yet

getLightStatus Retrieves the light status from a given Light ID.

https://www.axis.com/vapix-library/subjects/t10175981/section/t10146660/display