Here is how I did a commandline switch to block youtube
You need to setup passwordless login to pi for this to work
In configuration.yaml
- platform: command_line
switches:
youtube:
command_off: ssh [email protected] pihole -wild youtube.com #blacklist
command_on: ssh [email protected] pihole -wild -d youtube.com #remove from blacklist
That’s it!( I am a control freak:grinning:)