#Lovelace Toggle for Automations (enable/disable)

28 messages · Page 1 of 1 (latest)

maiden fiber
#

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!

#

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

steel marten
#

I'd just add this to conditions on your automations

    entity_id: input_boolean.shut_frigate_up
    state: "off"```
maiden fiber
#

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

steel marten
maiden fiber
#
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?
steel marten
#

also all your ui automations should be in automations.yaml in config

#

ahhhh it's a blueprint, that makes it a bit trickier

maiden fiber
#

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

steel marten
#

no worries, just gimme a sec to look at it

maiden fiber
#

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

steel marten
#

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

maiden fiber
#

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

steel marten
#

It doesn't even look at that info unless you turn it on 😛

#

sweet, that should work then

maiden fiber
#

Sweet thank you so much, I'm going to go run outside like an idiot a few times to test lol

steel marten
#

this is a neat blueprint, definitely going to use this if i ever get around to frigate

#

enjoy freaking out your neighbours

maiden fiber
#

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

steel marten
#

wish my house was fancy enough to need 2 doorbells 😛

maiden fiber
#

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!