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

Reolink live snapshot images don't update #1708

Closed
haitham506 opened this issue Dec 4, 2024 · 19 comments · Fixed by #1734
Closed

Reolink live snapshot images don't update #1708

haitham506 opened this issue Dec 4, 2024 · 19 comments · Fixed by #1734
Labels
bug Something isn't working released

Comments

@haitham506
Copy link

haitham506 commented Dec 4, 2024

[REQUIRED] Card diagnostic information:

card_version: 6.0.0-beta.9
browser: >-
  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
date: 2024-12-04T22:50:02.222Z
lang: en
timezone:
git:
  hash: b2b7a08
  build_date: Wed, 04 Dec 2024 04:35:32 GMT
  commit_date: Tue, 3 Dec 2024 20:26:56 -0800
ha_version: 2024.12.0
integrations:
  reolink:
    detected: true
  frigate:
    detected: false
  hass_web_proxy:
    detected: false
  motioneye:
    detected: true
config:
  type: custom:frigate-card
  cameras:
    - camera_entity: camera.garage_snapshots
      title: garage
      live_provider: ha
      image: {}
      triggers:
        occupancy: false
      webrtc_card: {}
      go2rtc:
        modes: []
      reolink: {}
  view:
    actions:
      double_tap_action:
        action: custom:frigate-card-action
        frigate_card_action: fullscreen
    default_reset:
      interaction_mode: all
  menu:
    button_size: 38
    buttons:
      frigate:
        enabled: true
      cameras:
        enabled: false
      media_player:
        enabled: false
      live:
        enabled: false
      screenshot:
        enabled: false
      fullscreen:
        enabled: false
    style: hover-card
  live:
    draggable: false
    zoomable: true
    lazy_load: false
    show_image_during_load: false
    controls: {}
  image: {}
  performance:
    style:
      border_radius: false
      box_shadow: false
    features:
      media_chunk_size: 500
  dimensions:
    aspect_ratio_mode: static
    aspect_ratio: '4:3'
  elements:
    - type: icon
      icon: mdi:garage-variant
      title: Close Garage
      style:
        right: 10px
        top: 10px
        color: rgba(255,255,255,1)
        background: rgba(10, 10, 10, 0.2)
        border-radius: 5px
        transform: scale(1.6,1.6)
      entity: switch.**
      tap_action:
        action: toggle
    - type: icon
      icon: mdi:garage-open-variant
      title: Open Garage
      style:
        right: 53px
        top: 10px
        color: rgba(255,255,255,1)
        background: rgba(10, 10, 10, 0.2)
        border-radius: 5px
        transform: scale(1.6,1.6)
      entity: switch.**
      tap_action:
        action: toggle
  status_bar:
    style: none
  timeline:
    show_recordings: true

[REQUIRED] Description of problem:

Hello,

Reolink Camera Stream (Snapshots) was working fine with HA 2024.10 but after updating to 2024.11 it stopped working I thought it is related to this issue #1678 ,but after updating to the latest HA 2024.12 it is still not working with the 5.2.0 card and with 6.0.0-beta.9 card.
I tried changing the live_provider to image in the card options, it shows the camera snapshots for a few seconds and then stops updating the snapshots. + I have 4 cameras if I change all to live_provider: image same issue but sometimes just two of the cameras actually works fine only two random cameras not more.

[OPTIONAL] Last working release (if known):
HA 2024.10
5.2.0 Card

--

@haitham506 haitham506 added the bug Something isn't working label Dec 4, 2024
@dermotduffy
Copy link
Owner

dermotduffy commented Dec 5, 2024

Reolink Camera Stream (Snapshots) was working fine with HA 2024.10 but after updating to 2024.11 it stopped working I thought it is related to this issue #1678 ,but after updating to the latest HA 2024.12 it is still not working with the 5.2.0 card and with 6.0.0-beta.9 card.

To make sure I understand, do you just mean the Home Assistant live stream? What if you open that same stream in Home Assistant outside of the card does that work (press 'e', find the entity in the list, see what loads)?

@pcartwright81
Copy link

This is my config

type: custom:frigate-card
cameras:

  • camera_entity: camera.driveway_camera_clear
    view:
    default: live

If I go to the page after 1 second it will show blank and count.

image

The automatic provider does not work
live_provider: webrtc-card
Makes my image work correctly, and removing that line blanks the image out immediately.

So this is my working config.

type: custom:frigate-card
cameras:

  • camera_entity: camera.driveway_camera_clear
    live_provider: webrtc-card
    view:
    default: live

@dermotduffy
Copy link
Owner

What if you open that same stream in Home Assistant outside of the card does that work (press 'e', find the entity in the list, see what loads)?

Would you mind answering this question? I'm trying to tell if the issue is the card, or Home Assistant.

@pcartwright81
Copy link

Just found this card today, and the regular camera cards are working correctly. I do have issues with RSTP when I tried to install MotionEye. RLC-810A has issues, Reolink Video Doorbell PoE works great in automatic.

I just realized that Home Assistant Video stream is probably being used for automatic.
image
image
Also here is the default card.

image

Interesting...This works
image

@dermotduffy
Copy link
Owner

I just realized that Home Assistant Video stream is probably being used for automatic.

That's right.

On any Home Assistant dashboard, can you press 'e' on your keyboard, find the "broken" entity and tell me if the stream loads correctly?

@pcartwright81
Copy link

Yes, looks same as the default card.

@dermotduffy
Copy link
Owner

dermotduffy commented Dec 5, 2024

Yes, looks same as the default card.

What does "default card" mean? Do you mean it looks correct outside the Frigate card, but incorrect inside it?

@pcartwright81
Copy link

I see it's called picture entity card. I set my first page up by hitting add card=>by entity=>select camera.

  • show_state: true
    show_name: true
    camera_view: auto
    type: picture-entity
    entity: camera.driveway_camera_clear

@dermotduffy
Copy link
Owner

Does anything show up on your Javascript console when you try to access the broken stream inside the Frigate card? You can see the console by pressing F12 in Chrome.

@pcartwright81
Copy link

No errors.

@haitham506
Copy link
Author

haitham506 commented Dec 5, 2024

Reolink Camera Stream (Snapshots) was working fine with HA 2024.10 but after updating to 2024.11 it stopped working I thought it is related to this issue #1678 ,but after updating to the latest HA 2024.12 it is still not working with the 5.2.0 card and with 6.0.0-beta.9 card.

To make sure I understand, do you just mean the Home Assistant live stream? What if you open that same stream in Home Assistant outside of the card does that work (press 'e', find the entity in the list, see what loads)?

Sorry for late respond

The stream works fine in Home Assistant stream outside of the card.

Also Automatic doesn't work on the card.

@dermotduffy
Copy link
Owner

Currently at a bit of a loss as to what's going on here, however the beta.9 code includes lots of Reolink specific functionality for the first time (Reolink media viewing in card), and I wondering if that somehow broke the live stream, since you're both using Reolink cameras.

Would you mind adding this to your config and see if it changes anything:

 cameras:
    - camera_entity: camera.garage_snapshots
      title: garage
      live_provider: ha
      engine: generic            <----------------------------- ADDED

This will tell the card to treat the camera like a "generic" camera and not something that gets special reolink functionality.

@pcartwright81
Copy link

Did not work for me. There are a lot of new issues on the Reolink integration, and that is probably what broke the card. Specifically, home-assistant/core#130091 is of interest to me. My core version is 2025.1.0.dev202412050235. My card version is 5.2.0 so this is most likely a HA issue.

@haitham506
Copy link
Author

Currently at a bit of a loss as to what's going on here, however the beta.9 code includes lots of Reolink specific functionality for the first time (Reolink media viewing in card), and I wondering if that somehow broke the live stream, since you're both using Reolink cameras.

Would you mind adding this to your config and see if it changes anything:

 cameras:
    - camera_entity: camera.garage_snapshots
      title: garage
      live_provider: ha
      engine: generic            <----------------------------- ADDED

This will tell the card to treat the camera like a "generic" camera and not something that gets special reolink functionality.

Still the same after adding that

@dermotduffy
Copy link
Owner

dermotduffy commented Dec 6, 2024

version is 5.2.0 so this is most likely a HA issue.

... oh, I missed that it's not associated with the new beta card release. I only have a single Reolink camera and hadn't ever enabled the '_snapshots' entities before. I see the same problem as you when I do after I enable them.

Looks like, for some reason, the snapshot associated with any of the cameras is not being updated.

Let me look into this more. Fundamentally, a premise I want to keep is: If it works in HA, it should work in the card. And that does not seem to happen here. I can't tell yet if the issue is the card or the Reolink integration.

@dermotduffy dermotduffy changed the title Reolink Snapshots Camera Stream Stopped Working Reolink live snapshot images don't update Dec 6, 2024
@Dieghito72
Copy link

Currently at a bit of a loss as to what's going on here, however the beta.9 code includes lots of Reolink specific functionality for the first time (Reolink media viewing in card), and I wondering if that somehow broke the live stream, since you're both using Reolink cameras.

Would you mind adding this to your config and see if it changes anything:

 cameras:
    - camera_entity: camera.garage_snapshots
      title: garage
      live_provider: ha
      engine: generic            <----------------------------- ADDED

This will tell the card to treat the camera like a "generic" camera and not something that gets special reolink functionality.

Not sure if it's related, but I'm using Reolink camera with WebRTC card and since beta 8 everything was OK.
Today I updated to 6.0.0 official and all my Reolink live streams stopped working.

The card instead of live streams shows this error:

request:
  type: media_source/browse_media
  media_content_id: media-source://reolink/RES|XXXXXXXXXXXXXXXXX|0|sub
  id: 299
response:
  code: unknown_error
  message: Unknown error

Adding engine: generic to camera configuration fixed the problem.

@dermotduffy
Copy link
Owner

@Dieghito72 I think that is #1723 .

@dermotduffy
Copy link
Owner

FYI: I now understand what's going on with this issue, and just need to figure out how to fix it :-) This issue only impacts users who are looking at MJPEG based live streams.

Copy link

🎉 This issue has been resolved in version 6.0.3 🎉

See: GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants