-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Expose "Blocked Services" as an HA service #87
Comments
I too am after this feature. I have a workaround for you in the meantime though. You can call a service to enable/disable a particular filter: automation:
- alias: 'Block social networks in morning'
trigger:
platform: time
at: "08:00"
action:
service: adguard.enable_url
data:
# This seems to be the filter AdGuard Home uses for "blocked services"
url: "https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_4_Social/filter.txt" |
Hey @AlecRust great call. I poked around in the AdGuard Home repo and found where those "Blocked Services" live: /internal/dnsfilter/blocked_services.go Next step is to pull some of those services urls out into a filter or set of filters. Thanks for the link and example code, this is great! |
This repository is not about the Home Assistant integration. |
Problem/Motivation
AdGuard has proven to be a wonderful home network management tool as I try to keep my child focused on distance learning across devices. At the beginning of the school day, I turn off Discord, YouTube, Instagram and Twitter in order to focus on schoolwork. When homework is done, I will turn the services back on. Works great.
The problem is, this is a highly manual process. I have to go into Home Assistant, into Ad Guard, into Blocked Services, select the services to turn on and off and hit save.
Proposed changes
What would be great is if these blocked services could be exposed in the AdGuard API and subsequently controlled via Home Assistant. Then I could set up automations that would enable and disable services
I did a small amount of research around the AdGuard API and the adguardhome python package but could not confirm or deny how difficult this would be, or what the blockers are. I'd be interested in any data points here or any thoughts in general. Thanks for listening!
The text was updated successfully, but these errors were encountered: