Skip to content

Bug: Notifications sent to hass.agent do not contain camera thumbnail when using /api/camera_proxy/ #344

@simkin

Description

@simkin

Notifications send to hass.agent do not contain camera thumbnail. This is working when sending the same notification to the mobile companion app. The log complains it is only allowed to process "HTTP uri's" but if you prefix the api with your HA domain you get a 403 error.

The below is based on the instructions provided: https://hassagent.readthedocs.io/en/latest/notifications/notification-usage-and-examples/#camera-proxy

NOT Working script

service: notify.desktop_lucas
data:
  data:
    image: /api/camera_proxy/camera.deurbel
  message: test
  title: Doorbell

Working script

service: notify.mobile_app_pixel_7_pro
data:
  data:
    image: /api/camera_proxy/camera.deurbel
  message: test
  title: Doorbell

Expected behavior
Windows hass.agent is expected to show thumbnail

Screenshots
afbeelding

Misc info (please complete the following information):

  • Windows 11
  • Windows' UI language: Dutch
  • HASS.Agent version: 2022.14.0

Please check what's applicable (multiple answers possible):

  • Installed via installer
  • Installed manually
  • Problem occurs in HASS.Agent
  • Problem occurs in Satellite Service

Logs

2023-08-16 15:47:05.143 +02:00 [ERR] [STORAGE] Unable to download image: only HTTP uri's are allowed, got: /api/camera_proxy/camera.deurbel
2023-08-16 15:47:05.143 +02:00 [ERR] [NOTIFIER] Image download failed, dropping: /api/camera_proxy/camera.deurbel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions