mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +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 |
|
||||
| `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