Add an example for calling the Pi-hole disable service (#18945)

This commit is contained in:
peca89 2021-08-18 16:02:12 +02:00 committed by GitHub
parent 7640f58328
commit f2fc745a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,3 +40,14 @@ Disables configured Pi-hole(s) for the specified amount of time.
| ---------------------- | -------- | -------- | ----------- |
| `entity_id` | `False` | string | Target switch entity. Use `all` to target all Pi-hole services |
| `duration` | `True` | timedelta | Time for which Pi-hole should be disabled |
Example service call:
```yaml
# Example service call to disable Pi-Hole for 30 minutes
service: pi_hole.disable
data:
duration: '00:30'
target:
entity_id: all
```