SgtBatten / HA_blueprints

Somewhere to store automation blueprints
181 stars 70 forks source link

[Config Support]: Android not being sent the notification. #281

Open Handrail9 opened 1 week ago

Handrail9 commented 1 week ago

Describe the problem you are having or the outcome you are trying to achieve.

Hello, I am trying to set up notifications, but I can't seem to get the blueprint working. I did not customize the blueprint past giving it the camera and device to send the notification to. I'm not sure what I need to provide so please be very in depth with where to get more information if you need more information. I appreciate the help in advance

Version

Frigate Notifications 0.12.0.4d

Automation config

alias: Camera
description: ""
use_blueprint:
  path: SgtBatten/Stable.yaml
  input:
    camera: camera.my_camera
    notify_device: c4689b943f537a61aa15f548b0fee1f2
    base_url: https://homeassistant.domain.changed

Frigate Config

mqtt:
  enabled: true
  host: 192.168.1.80
  user: redacted
  password: redacted

detectors:
  coral:
    type: edgetpu
    device: pci

cameras:
  my_camera: # <--- this will be changed to your actual camera later
    enabled: true
    ffmpeg:
      inputs:
        - path: rtsp://192.168.1.81:8080/video/h264
          roles:
            - detect
    detect:
      enabled: true
    zones:
      Zone:
        coordinates: 0.435,0.964,0.445,0.515,0.162,0.515,0.159,0.97
        loitering_time: 20
        objects: person
    motion:
      mask: 0.435,0.966,0.444,0.521,0.164,0.515,0.157,0.967
    record: # <----- Enable recording
      enabled: True
version: 0.14

Any other information that may be helpful

Frigate, MQTT and Home Assistant are all run in Docker. I tried referencing this guide when I could not get it to work reading the official Frigate documentation but it did not fix the issue.

SgtBatten commented 1 week ago

Any traces? screenshot the trace tree if there is. If not, mqtt probably isnt configured in a way that home assistant is getting the messages from frigate

SgtBatten commented 1 week ago

wait also you dont have the record roll defined for your camera in frigate

Handrail9 commented 6 days ago

wait also you dont have the record roll defined for your camera in frigate

Thanks for catching that, I've added - record under - detect and restarted Frigate & HA.

Any traces? screenshot the trace tree if there is. If not, mqtt probably isnt configured in a way that home assistant is getting the messages from frigate

I had tried manually running the automation in HA to test the notification and didn't receive anything. This trace is what shows up when I hit run, when I make a new one and walk in front of the camera myself it's blank after.

Here's the trace: Screenshot_20240914_010419

What can I post to verify if MQTT is configured correctly? I'm a little dull and am not sure which parts will be important to debugging.

SgtBatten commented 5 days ago

you cant manually trigger it by pressing run, nothing will happen. You need to walk in front of the camera as you mentioned.

To check on mqtt you need to install something like mqtt explorer in home asisstant and then look for the frigate/events channel. if frigate events arent showing up in the mqtt explorer then HA isnt recieving the messages.

Handrail9 commented 4 days ago

To check on mqtt you need to install something like mqtt explorer in home asisstant and then look for the frigate/events channel. if frigate events arent showing up in the mqtt explorer then HA isnt recieving the messages.

Okay, I've got MQTT explorer installed on my main PC and I went ahead and reset the MQTT password just to make sure that wasn't the issue. I'm out of the house for the next couple days but other people will be there so I'll check back in when I have an update. (Either when I can test it when I get back or if theres a ping sent to my phone while im gone)

JBakers commented 1 day ago

nvm

My wife just returned from work, and I got a notification from the new automation. No clue why it didn't work when I walked in front of my cameras the first 15 times...