mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 15:56:51 +00:00
Add an example for calling the Pi-hole disable service (#18945)
This commit is contained in:
parent
7640f58328
commit
f2fc745a1a
@ -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 |
|
| `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 |
|
| `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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user