#Does this seem correct for making a zone in frigate then sending a snapshot to group of devices?

1 messages · Page 1 of 1 (latest)

astral niche
#

config.yaml (frigate)

cameras:
  HQFrontYardCam:
    ffmpeg:
      inputs:
        # High Resolution Stream
        - path: rtsp://frigate:pass@IP:554/Streaming/Channels/101/
          roles:
            - record
        # Low Resolution Stream
        - path: rtsp://frigate:pass@IP:554/Streaming/Channels/102/
          roles:
            - detect
            - rtmp
    detect:
      width: 640
      height: 480
    snapshots:
      enabled: True
    record:
      enabled: True
      retain:
        days: 7
        mode: all
      events:
        retain:
          default: 10
          mode: active_objects
    zones:
      zone_0_front_door:
        coordinates: 463,239,360,238,285,206,292,150,369,62,394,33,476,33
      zone_0_Driveway:
        coordinates: 385,228,79,147,204,77,396,64

notify.yaml (HA)

- name: ALL_DEVICES
  platform: group
  services:
    - service: mobile_app_unknown
    - service: mobile_app_iphone
    - service: mobile_app_android
    - service: mobile_app_iphone2
    - service: alexa_media_robot_s_vector
    - service: desktop_host1
    - service: desktop_host2
    - service: desktop_host3
    - service: desktop_host4
    - service: desktop_host5

I don't seem to get any snapshot/thumbnail on the device messages.

blueprint

id: '123456789876543'
alias: Frigate Notifications (0.12.0.1g)
description: ''
use_blueprint:
  path: SgtBatten/Beta.yaml
  input:
    camera: camera.hqfrontyardcam
    zone_filter: true
    zones:
      - zone_0_front_door
    zone_multi: false
    ios_live_view: camera.hqfrontyardcam
    video: /api/frigate{{client_id}}/notifications/{{id}}/{{camera}}/clip.mp4
    notify_group: ALL_DEVICES
    icon: mdi:cctv
    debug: true
    attachment: snapshot
astral niche
#

I was getting false positives that were not even in the zone as well. I had to modify this part of the code for some reason.

    - alias: Notify on new object
      choose:
      - conditions:
        - '{{ not zone_only or (not zone_multi and zones|select(''in'', entered_zones)|list|length
          > 2) or (zone_multi and entered_zones|length > 0 and zones |reject(''in'',
          entered_zones) |list |length == 0) }}'

Setting this ```entered_zones)|list|length

2``` to 2 seems to have made it more quiet

astral niche
#

Seems like it works fine on android but not hass.agent and iOS

astral niche
#

I guess this is the issue for hass.agent 2023-08-12 15:11:45.849 -04:00 [ERR] [STORAGE] Unable to download image: only HTTP uri's are allowed, got: /api/frigate/notifications/29349728734982734/snapshot.jpg?format=android