Skip to content

Instantly share code, notes, and snippets.

View Data-Monkey's full-sized avatar

Roland Beck Data-Monkey

  • Sydney, Australia
View GitHub Profile
@Data-Monkey
Data-Monkey / piholeGroupStatus.sh
Created October 21, 2024 07:08
Home Assistant switch to enable/disable PiHole6 groups
#!/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