This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# requires jq | |
# uses the PiHole 6 API to enable / disable and check the status of a group. | |
# usage: piholeGroupStatus.sh PiHoleAPIAddress PiHoleAPIPWD GroupName Action | |
# Action can be enable / disable / status | |
# How to use in Home Assistant |