Guide to enable high contrast motion detection automatically via MQTT and Home Assistant automation (night time etc) #6420
LaurenceGough
started this conversation in
Show and tell
Replies: 2 comments 10 replies
-
Is there anyway frigate could listen on a wildcard for cameras so I can switch improve contrast on them with one message eg |
Beta Was this translation helpful? Give feedback.
10 replies
-
I'm doing something similar with NodeRed. The issue I'm having is that my Frigate Container restarts in the early morning and sets this back to on as it's the default. Is there any way to set this to manual within the Frigate config? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I just thought I'd do a very quick guide on how to enable high contrast motion detection automatically via MQTT and Home Assistant automation for night time etc.
My personal reason: I find the high contrast mode helps detect activity at night with the lower camera contrast of the IR light, but with this on way too much stuff was being detected as motion during the day, causing higher CCTV and Coral usage.
You'll need an MQTT server running such as Mosquitto which most have already.
In Home assistant setup an automation as follows:
Trigger:
When the sun sets (sunset) - add optional offset if required here
Actions:
MQTT: publish
Topic: frigate/CamNameHereCaseSensitive/improve_contrast/set
Payload (tick): ON
You'll need to setup another automation at sunrise to turn it off. The only difference being the trigger and the payload is OFF instead.
In the Frigate logs around the time of these triggers you should hopefully see:
"frigate.comms.dispatcher INFO : Turning off improve contrast for CameraNameHere" or
"frigate.comms.dispatcher INFO : Turning on improve contrast for CameraNameHere"
Enjoy, hopefully it helps someone!
Beta Was this translation helpful? Give feedback.
All reactions