Missing route for local network

Hi to everyone.
I installed pi.hole in my network, and noticed that if I set it to answer only to devices one hop away, Home Assistant stopped working.
It seemed that all DNS queries coming from Home Assistant had to pass through my home router.
So I installed “Advanced SSH & Web Terminal” to investigate further, and discovered that the routing table was missing a row for local network:

 ➜  ~ ip r
default via 192.168.0.1 dev enp0s5  src 192.168.0.6  metric 100 
172.30.32.0/23 dev hassio scope link  src 172.30.32.1 
172.30.232.0/23 dev docker0 scope link  src 172.30.232.1 

I added it with command sudo ip r add 192.168.0.0/24 dev enp0s5 and everything started working correctly. The problem is that I do not know how to make this permanent. I saw mention of nmcli in other posts, but it doesn’t seem to be installed

nmcli
zsh: command not found: nmcli

Do you have any advice?

You won’t like my advice, but don’t use PiHole, AdGuard, or any of those things. Even if you get then running in 3 months or so something seemingly unrelated will break, and you will fight until you find it’s a DNS problem cause by this man-in-the-middle stuff. I highly don’t suggest.