Axis camera component

This is a known issue with one of the libraries that the jpeg camera component uses (which the axis camera component is based on)

See the note here https://home-assistant.io/components/camera.mjpeg/

Oké, I know this error exists, but from now on (0.58) I cannot suppress it anymore in the log file.

The following logger configuration should suppress it, shouldn’t it?

logger:
  default: error
  logs:
    homeassistant.components.camera: fatal
    requests.packages.urllib3: fatal

I think so, historically I’ve used requests.packages.urllib3.connectionpool: fatal, but that is a subset of what you have so shouldn’t differ.

I’ve not upgraded to 0.58, have a new component I want in for 0.59 so I will wait to spend time on upgrading until after that has been merged. :slight_smile:

Yep. Resolution on the camera is set to 800x600. I’ve experimented with a couple of different resolutions, but same result. Smooth frame rate with MJPEG component but choppy with Axis component.

The component requests the default stream I think http://{}:{}/axis-cgi/mjpg/video.cgi, so I guess if you change default settings for the camera you will get the same.

If you want it in another way please give a suggestion of how that would be :slight_smile:

Hmm. Well, that’s not the URL that I’m using in the MJPEG component. In the MJPEG component, I’m using http://CameraIP/mjpg/video.mjpg. So I swapped out that URL and put in http://CameraIP/axis-cgi/mjpg/video.cgi....and it was also smooth…so I’m not sure what’s going on. I’m running HA in a Docker…not sure if that matters.

Bonkers…

If the url is the same the result should be the same…

Hello
I’m on HA 0.58 and just have my camera configured with:

axis:
  carport:
    host: !secred axis_ip
    username: !secret axis_user
    password: !secret axis_pass
    include:
      - camera
      - pir
      - motion
      - tampering
    location: carport

I do see the camera but I do not see any sensors. Also in the log there is nothing except the parse error mentioned above. Is there anything else I need to configure?
Thanks

What camera and firmware do you have?

M2026-LE, 7.30 I think

Yeah that should definitely work.
Can you enable debugging for the axis component?

Hmm, Have you enabled motion detection in the camera? It won’t create sensors unless they’re available.
That camera doesn’t have PIR. It has IR lamp for the camera sensor for night vision.

It does have tampering and motion detection. I have both enabled. How can I enable the debugging of it?

Checkout the logger component.

Which motion detection have you enabled? :slight_smile:

The Axis Video Motion Detection (4) in Apps. Are you in gitter/discord somewhere to not clutter this thread?

Sure. Seek me out on Hass discord, same name

VMD4 isn’t supported yet though unfortunately

Guess I can’t enable logging right now as ha 0.58 does not respect the logger settings… But tampering should work I guess :slight_smile:

I can give you directions on how to enable the old motion detection

settings -> system options -> advanced -> plain config -> drop down box -> Motion

Create your motion windows there

Ok will try that tomorrow thanks!

1 Like

I had to change both
/usr/lib/python3/dist-packages/gi/_gi.cpython-35m-arm-linux-gnueabihf.so and
/usr/lib/python3/dist-packages/gi/overrides/_gi_gst.cpython-35m-arm-linux-gnueabihf.so
from 35 to 36 to get this to work. I am rolling again and making progress

If you go up to a modern version of hass you will get a new version of the component that doesn’t have any external dependencies