blakeblackshear / frigate-hass-integration

Frigate integration for Home Assistant
MIT License
671 stars 110 forks source link

Cannot Delete Masks #266

Closed dhtguru closed 2 years ago

dhtguru commented 2 years ago

Hi,

I am a newbie to Frigate so maybe I am missing something. I have tried remarking and deleting the mask mapping date in my config file, but my masks still show up after complete restart. I cannot update them. Any ideas?

NickM-27 commented 2 years ago

What does your config file look like?

dermotduffy commented 2 years ago

This is the repo for the HA integration, not for Frigate itself. For future reference, this issue would belong here: https://github.com/blakeblackshear/frigate

mask mapping date

I think you mean "mask mapping data" (not date)? If so, you're saying the mask is removed entirely from your YAML but somehow is still showing up? Can you paste your config?

dhtguru commented 2 years ago

On Mon, May 30, 2022 at 11:35 AM Nicolas Mowen @.***> wrote:

What does your config file look like?

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate-hass-integration/issues/266#issuecomment-1141286932, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ7S2LXIGE2QWOTNRXGYD3VMTN2TANCNFSM5XK6GOJA . You are receiving this because you authored the thread.Message ID: @.*** com>

Configure a default setup of Home Assistant (frontend, api, etc)

default_config:

telegram_bot:

sensor:

http: ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem

alexa: smart_home: filter: include_entities:

device_tracker:

Text to speech

tts:

automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml

homeassistant: customize: zone.home: radius: 150

allowlist_external_dirs:
    - "/config/tmp"

notify:

Groups

group: !include groups.yaml

mqtt: host: 172.30.32.1 port: 1883 topic_prefix: frigate client_id: frigate user: xxxxx password: xxxxxx stats_interval: 60

detectors: cpu1: type: cpu

detectors:

coral:

type: edgetpu

device: usb

ffmpeg: hwaccel_args:

cameras: driveway: ffmpeg: inputs:

motion:

mask:

- 587,103,614,149,614,236,640,275,540,288,468,225,456,106,494,54

- 22,480,172,480,174,450,26,451

- 0,170,0,90,0,0,95,0,0,361

snapshots:
  enabled: true
  timestamp: false
  bounding_box: true
  retain:
    default: 2
record:
  enabled: true
  retain_days: 0
  events: 
    retain:
      default: 1  

#######################################################################################################
fr_dr_cam: ffmpeg: inputs:

motion:

mask:

- 0,100,0,0,640,0,640,86

- 640,77,640,480,640,480,513,480,506,77

- 192,88,167,205,82,179,79,75

- 141,346,162,420,60,435,43,349

- 253,457,336,455,322,388,286,381

snapshots:
  enabled: true
  timestamp: false
  bounding_box: true
  retain:
    default: 2
record:
  enabled: true
  retain_days: 0
  events: 
    retain:
      default: 1    

Optional: birdseye configuration

birdseye:

Optional: Enable birdseye view (default: shown below)

enabled: True

Optional: Width of the output resolution (default: shown below)

width: 1280

Optional: Height of the output resolution (default: shown below)

height: 720

Optional: Encoding quality of the mpeg1 feed (default: shown below)

1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.

quality: 22#8

Optional: Mode of the view. Available options are: objects, motion, and continuous

objects - cameras are included if they have had a tracked object within the last 30 seconds

motion - cameras are included if motion was detected in the last 30 seconds

continuous - all cameras are included always

mode: continuous

NickM-27 commented 2 years ago

Okay, all of the masks are commented out. What did you restart and how are you verifying that the masks are still there?

dhtguru commented 2 years ago

I restarted my HA. The masks still show up in "Mask & Zone creator". Also, any new masks I try to add don't show up.

On Mon, May 30, 2022 at 12:13 PM Nicolas Mowen @.***> wrote:

Okay, all of the masks are commented out. What did you restart and how are you verifying that the masks are still there?

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate-hass-integration/issues/266#issuecomment-1141318823, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ7S2L5BDR2EWNG44GMEVDVMTSKVANCNFSM5XK6GOJA . You are receiving this because you authored the thread.Message ID: @.*** com>

dermotduffy commented 2 years ago

Please restart Frigate (not HA). HA does not read your Frigate configuration file.

NickM-27 commented 2 years ago

When you say restart HA what does that mean? If you are running in an addon then the addon needs to be restarted, otherwise the docker container needs to be restarted through your docker service.

Definitely sounds like whatever it is, the correct service is not being restarted.

dhtguru commented 2 years ago

Yes, I should have mentioned that I have tried that as well. The restart Frigate under Debug. Several times.

On Mon, May 30, 2022 at 12:22 PM Nicolas Mowen @.***> wrote:

When you say restart HA what does that mean? If you are running in an addon then the addon needs to be restarted, otherwise the docker container needs to be restarted through your docker service.

Definitely sounds like whatever it is, the correct service is not being restarted.

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate-hass-integration/issues/266#issuecomment-1141325715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ7S2KGXHIWY2PIVGFZ6I3VMTTM7ANCNFSM5XK6GOJA . You are receiving this because you authored the thread.Message ID: @.*** com>

dhtguru commented 2 years ago

[image: image.png]

On Mon, May 30, 2022 at 12:24 PM dhtguru @.***> wrote:

Yes, I should have mentioned that I have tried that as well. The restart Frigate under Debug. Several times.

On Mon, May 30, 2022 at 12:22 PM Nicolas Mowen @.***> wrote:

When you say restart HA what does that mean? If you are running in an addon then the addon needs to be restarted, otherwise the docker container needs to be restarted through your docker service.

Definitely sounds like whatever it is, the correct service is not being restarted.

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate-hass-integration/issues/266#issuecomment-1141325715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ7S2KGXHIWY2PIVGFZ6I3VMTTM7ANCNFSM5XK6GOJA . You are receiving this because you authored the thread.Message ID: @.*** com>

NickM-27 commented 2 years ago

Don't see the image?

dermotduffy commented 2 years ago

(Also, try taking the whole Frigate docker container down and restart it again, i.e. maybe that Frigate debug button is not restarting correctly)

dhtguru commented 2 years ago

Sorry, I am a newbie and I didn't use Docker for HA. Are you saying to delete and reinstall?

On Mon, May 30, 2022 at 12:34 PM Dermot Duffy @.***> wrote:

(Also, try taking the whole docker container down and restart it again, i.e. maybe that Frigate debug button is not restarting correctly)

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate-hass-integration/issues/266#issuecomment-1141334743, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ7S2IOPLO3FWLVSSGIQ5LVMTU2FANCNFSM5XK6GOJA . You are receiving this because you authored the thread.Message ID: @.*** com>

dermotduffy commented 2 years ago

Sorry, I am a newbie and I didn't use Docker for HA. Are you saying to delete and reinstall?

No need to delete/reinstall, we're just trying to ensure the Frigate process is correctly restarted. If you're using the Frigate add-on, you're using docker under the hood.

Assuming you're using HAOS, go Supervisor -> Frigate NVR -> Restart.

If the above still isn't clear, and you can, a blunt way is just to restart the machine that is running Frigate.

dhtguru commented 2 years ago

That did it. I went to Add-ons=> Frigate NVR and clicked Restart btn. Never used that one before and it is finally gone!

Thanks Guys!

On Mon, May 30, 2022 at 12:47 PM Dermot Duffy @.***> wrote:

Sorry, I am a newbie and I didn't use Docker for HA. Are you saying to delete and reinstall?

No need to delete/reinstall, we're just trying to ensure the Frigate process is correctly restarted. If you're using the Frigate add-on, you're using docker under the hood.

Assuming you're using HAOS, go Supervisor -> Frigate NVR -> Restart.

— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate-hass-integration/issues/266#issuecomment-1141342514, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFZ7S2M4TCPYV2OQZJBYB43VMTWI7ANCNFSM5XK6GOJA . You are receiving this because you authored the thread.Message ID: @.*** com>

dermotduffy commented 2 years ago

Hurray!