mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-07 03:11:15 +03:00
Triggers tweaks (#20339)
* backend * frontend * use correct camera name param * i18n * change log message to debug level * docs tweaks
This commit is contained in:
@@ -138,6 +138,9 @@ class SemanticSearchConfig(FrigateBaseModel):
|
||||
|
||||
|
||||
class TriggerConfig(FrigateBaseModel):
|
||||
friendly_name: Optional[str] = Field(
|
||||
None, title="Trigger friendly name used in the Frigate UI."
|
||||
)
|
||||
enabled: bool = Field(default=True, title="Enable this trigger")
|
||||
type: TriggerType = Field(default=TriggerType.DESCRIPTION, title="Type of trigger")
|
||||
data: str = Field(title="Trigger content (text phrase or image ID)")
|
||||
|
||||
@@ -159,7 +159,7 @@ class SemanticTriggerProcessor(PostProcessorApi):
|
||||
|
||||
# Check if similarity meets threshold
|
||||
if similarity >= trigger["threshold"]:
|
||||
logger.info(
|
||||
logger.debug(
|
||||
f"Trigger {trigger['name']} activated with similarity {similarity:.4f}"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user