I have the following switches defined as rest switches which are used to control blocked services within AdGuard. With a single switch it works as expected. I can toggle the service on and off. I recently added a second switch for the “Roblox” service and when doing so it will toggle off the “YouTube” service and vise versa. Even thought they are defined as different switches and interact with different service names interacting with one affects the other.
I would like to have both operate independent of each other to able to control the state of each service. I have tried adding the name in body off as well with no change.
What strikes me is the is_on_template: {{ value_json == ["roblox"] }} which is extremely unlikely to be correct.
What is http://192.168.1.52:3000/control/blocked_services/list actually returning?
From the name of the services, I suspect you have to give an actual list to blocked_services/set though. So I suspect that if you “enable” youtube, it also re-enable roblox, unless you send “youtube, roblox”, or whatever the API wants as a list.