v-m: Add alert for Frigate camera no video
At some point this week, the front porch camera stopped sending video. I'm not sure exactly what happened to it, but Frigate kept logging "Unable to read frames from ffmpeg process." I power-cycled the camera, which resolved the issue. Unfortunately, no alerts were generated about this situation. Home Assistant did not consider the camera entity unavailable, presumably because Frigate was still reporting stats about it. Thus, I missed several important notifications. To avoid this in the future, I have enabled the "Camera FPS" sensors for all of the cameras in Home Assistant, and added this alert to trigger when the reported framerate is 0. I really also need to get alerts for log events configured, as that would also indicated there was an issue.pull/48/head
parent
5065e61a2d
commit
a87b53e3ac
|
@ -132,6 +132,14 @@ groups:
|
||||||
expr:
|
expr:
|
||||||
homeassistant_entity_available{domain="camera"} != 1
|
homeassistant_entity_available{domain="camera"} != 1
|
||||||
for: 10m
|
for: 10m
|
||||||
|
- alert: No camera video frames
|
||||||
|
expr:
|
||||||
|
homeassistant_sensor_unit_fps{entity=~"sensor.*_camera_fps"} <= 0
|
||||||
|
annotations:
|
||||||
|
summary: No video received from camera
|
||||||
|
description: >-
|
||||||
|
Frigate is not receiving video from the camera. The camera may be
|
||||||
|
offline.
|
||||||
|
|
||||||
- name: Home Assistant
|
- name: Home Assistant
|
||||||
rules:
|
rules:
|
||||||
|
|
Loading…
Reference in New Issue