npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-adguardhome-plus

v0.1.3

Published

An enhanced Switch experience for controlling AdGuard Home.

Downloads

15

Readme

homebridge-adguardhome-plus

This is a dynamic platform plugin for Homebridge and can be used to create switches that track and control the state of an AdGuard Home server.

Inspired by the work of the original AdGuard plugin by @davidmerrique, this plugin takes things a few steps further by introducing a new 'Television' switch type that is able to display more complex status on a single accessory tile - similar to a 'Lock', but without being categorized as a security device that creates notifications in everybody's HomeKit app.

It also allows turning ad-blocking off for specific clients or groups denoted with 'ctags.' Switches can also be configured to un/block specific services instead of an all-or-nothing approach.

The plugin was developed based on the Homebridge Plugin Template.

Requirements

Features

  • Create accessories as 'Switch', 'Lock', or 'Television'
  • Create accessories in a group
  • Create bridged or unbridged accessories
  • Control ad-blocking for the entire AdGuard Home server, or specific clients, or 'ctag' groups
  • Control blocking of specific services defined by AdGuard Home

Example config

{
    "name": "AdGuard Home+",
    "host": "192.168.1.2",
    "https": false,
    "port": 8080,
    "username": "ADGUARD_USERNAME",
    "password": "ADGUARD_PASSWORD",
    "switches": [
        {
            "name": "AGH Global",
            "defaultState": true,
            "homekitType": "Switch",
            "bridged": true,
            "autoResetTimes": "60"
        },
        {
            "name": "AGH specific",
            "clients": "@user_child,my_homepod",
            "services": "amazon,ebay,tiktok",
            "defaultState": true,
            "homekitType": "Television",
            "forceState": true
        }
    ],
    "platform": "AdGuardHome-Plus"
}

AdGuard Server Settings

| Option | Default | Explanation |-------------|----------------|---------------- | 'name' | - Required - | The name for the plugin. | 'host' | - Required - | IP or Hostname of the AdGuard Home server. | 'https' | HTTP (false) | Use HTTP or HTTPS when connecting to the AdGuard Home server. | 'port' | 80 | The port number for the AdGuard Home server web interface. | 'username' | - | The AdGuard Home login username. | 'password' | - | The AdGuard Home login password.

Switch Configuration

| Option | Default | Explanation |------------------|----------------|---------------- | 'name' | - Required - | The base name for the swtich that will appear in the Home app. (Timer-based switches will have timeouts appended to the name.) | 'homekitType' | Switch | The type of accessory that will be created in the Home app. Can be one of ['Switch', 'Lock', 'Television'] | 'bridged' | true | Create the accessory on the default homebridge (true) or publish unbridged. Bridged accessories are easier to setup, but unbridged accessories have better icon control for Television. (Neither has great 'Category' control.) Also, unbridged accessories with multiple timers do not get grouped. | 'clients' | '' | A comma-separated list of AdGuard clients or @tags this switch will apply to. (Leave empty to apply to global AdGuard Home settings.) | 'services' | '' | A comma-separated list of service names AdGuard will filter for the configured clients when turned on. (Leave empty to enable/disable all DNS filtering for configured clients.) | 'autoResetTimes' | '' | A comma-separated list of timeouts in minutes to wait before restoring the default state of the switch. (Set to '' or use 0 for no timer; Use multiple timers to create multiple switches within a single accessory group.) | 'defaultState' | true | The 'natural' state of the switch. Use for restoring state when timers expire. | 'forceState' | false | Force consistent filtering state in AdGuard Home, even if it's current state does not fully match the 'on' or 'off' criteria for this switch. (i.e. Only 2 of 3 configured services are currently being blocked.) Enabling this will result in losing that 'inconsistent' state when the switch is triggered.

Or, as @davidmerrique suggested with his AdGuard plugin - just use Homebridge Config UI X