Hey all, I'm looking to create a toggle switch on my dashboard for turning a couple of automations on and off. These automations are Frigate detect notifications. I don't need them going off every 5 minutes while I'm mowing the lawn or sitting out on the patio so looking for a quick way of disabling/enabling these types of notifications. If there's a more intelligent way than this, please do share! Thanks!
#Lovelace Toggle for Automations (enable/disable)
28 messages · Page 1 of 1 (latest)
What I had started with was an input boolean in my config input_boolean: frigate_notifications: name: Frigate Notifications initial: on icon: mdi:bell-ring
and had used it as a state filter but no luck
I'd just add this to conditions on your automations
entity_id: input_boolean.shut_frigate_up
state: "off"```
Is there a way to do that in the ui? if not, can I access automations made in the ui via command line?
Oh Edit Yaml duh lol
yep
description: ""
use_blueprint:
path: SgtBatten/Beta.yaml
input:
camera: camera.backyardcamera
notify_device: db2a32f092e68bc3a886c6dc502ad502
video: >-
{{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/{{camera}}/clip.mp4
state_entity: input_boolean.frigate_notifications
state_filter_states:
- "On"``` I'm terrible with formatting, how would you fit that in here?
also all your ui automations should be in automations.yaml in config
ahhhh it's a blueprint, that makes it a bit trickier
If I were better with creating these, I'd try to make from scratch but something tells me that's a longer road for me lol
no worries, just gimme a sec to look at it
You're the best thank you! And if this is just a bad approach for what I'm trying to get to, let me know too! I feel like this should be something most people look for but maybe not
Hard to believe I'm the only one wanting to toggle camera alerts
nah it looks like that blueprint has a setting for it
it seems like you have it right, just need to add state_filter: True as a line to enable it
AHH darn I can't believe I missed that, it's in the UI too
Would have thought just entering the info in would be enough to say I want it on lol
It doesn't even look at that info unless you turn it on 😛
sweet, that should work then
Sweet thank you so much, I'm going to go run outside like an idiot a few times to test lol
this is a neat blueprint, definitely going to use this if i ever get around to frigate
enjoy freaking out your neighbours
I've been loving Frigate, I have 5 floodlight cams and 2 doorbells on it, has been great keeping motion recordings and getting alerts for things. Hoping the detect models get a little better as I get a good amount of false positives but it generally doesn't miss a thing
wish my house was fancy enough to need 2 doorbells 😛
haha not really used as doorbells but wanted something at the back door as well. Trust me, its a small rancher in the suburbs, maybe 980sqft. We have an inflatable hot tub for god sake, my wife just asked me yesterday if we are white trash for having it and I couldn't say no lmaoo
But just ran outside to test it and all is good! Thank you again for your help!