Hopefully I just have to ask you for your patience only one more time. I have set it up like this:
- Created an input boolean using the helper
- Created a rest_command for each action, so enable_tommy_blocks and disable_tommy_blocks based on your response from 2 days ago. (Only real difference there is I am trying to use update first vs add/delete because the clients are already defined and to keep history and such)
- Used automation based on your message from today, but updated entity_id and rest services to match mine (e.g. rest_command.enable_tommy_blocks)
- Added the toggle for the input_booean entity to my dashboard.
When I trigger it I get a message that it “calls an unknown service: rest_command.enable_tommy_blocks”
Seems like I am SO, close. I did a quick reload of Home Assistant yamls to see if it just didn’t pick it up. I’m not seeing any errors noted in the yaml. Any ideas why it would seem so perfect and have it trip up?
UPDATE - Decided to do a full restart and I’m not getting the error any more - AWESOME! That said, when I click the toggle I’m not seeing a change in the Adguard client, so I guess I may have to do the add and delete thing after all instead of just update. A bummer, because all I really need it to do is toogle use_global_blocked_services" to true or false - everything else is set up perfectly.
UPDATE 2 - I thought it might be because I have adguard on the firewall vs on the Home Assistant box, but the URL in the rest_command reflects the right path and pasting that URL in a browser gives me a response that only method POST is allowed, so it shoudl be listening to the command. Just isn’t toggling. Again, may just be that update or something doesn’t work.