-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Problem/Motivation
Using the latest versions of Home Assistant and AdGuardHome, I am no longer able to change the protection state of AdGuardHome via a Home Assistant switch.
Expected behavior
Toggling the "AdGuard Home Protection" switch in HA should toggle the corresponding state in AGH
Actual behavior
Toggling the switch state in HA does not trigger the corresponding change in AGH. However, any state changes initiated via AGH are properly reflected back in the HA switch.
Steps to reproduce
- Toggle the "AdGuard Home Protection" switch in HA
- Observe the state of the Protection button in the AGH dashboard
Proposed changes
I believe this is the result on an API change within AGH v0.107.28 - 2023-04-12
The new HTTP API POST /control/protection, that updates protection state and adds an optional pause duration (AdguardTeam/AdGuardHome#1333). The format of request body is described in openapi/openapi.yaml. The duration of this pause could also be set with the property protection_disabled_until in the dns object of the YAML configuration file.