home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.65k stars 30.41k forks source link

Axis Camera Integration not functioning with Axis Companion Camera Line #127951

Open genestealer opened 1 week ago

genestealer commented 1 week ago

The problem

Axis Camera Integration not functioning with Axis Companion Camera Line. Integration creates an camera instance, but it is only ever set to 'unavailable' and no video is seen.

Looks like the URL path for these camera needs Axis-Orig-Sw=true as part of the streaming URL. E.G. rtsp://<camera-ip>/axis-media/media.amp?videocodec=h264&Axis-Orig-Sw=true

@Kane610 could we add an option to the Axis integration?

Camera: Device info C Cube L Network Camera by Axis Communications AB Firmware: 9.80.78

Note camera works if adding via Generic Camera integration in the format E.G. rtsp://<camera-ip>/axis-media/media.amp?videocodec=h264&Axis-Orig-Sw=true

What version of Home Assistant Core has the issue?

core-2024.10.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

config_entry-axis-01J8FB4KBN55GA9PHKDGAK55KW.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Ref:
https://community.home-assistant.io/t/axis-cameras-companion-line-solved-by-kimjohnson/405402/5

`I’ve also been having issues with my Axis companion cameras, trying to connect them to home assistants using the Axis integration… After investigating the logs I noticed that I’m getting 403 forbidden errors when home assistant is trying to access the stream from the cameras. Couldn’t figure out a solution for this until today when I stumbled across a github issue 25 where they mention that unless they have Axis-Orig-Sw=true in the RTSP query the camera denies access…

Solution
Instead of using the Axis integration in home assistant I used the Generic Camera 64 integration!

Using the RTSP url as a stream source with the missing query: rtsp://<camera-ip>/axis-media/media.amp?videocodec=h264&Axis-Orig-Sw=true

I now have access to my Axis companion cameras from home assistant! I hope this helps!`

https://github.com/bluenviron/mediamtx/issues/683

Additional information

No response

home-assistant[bot] commented 1 week 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!

Code owner commands Code owners of `axis` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign axis` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


axis documentation axis source (message by IssueLinks)