Skip to content

Commit dd41644

Browse files
AzonIncbdraco
andauthored
Wifi AP Condition (#5607)
Co-authored-by: J. Nick Koston <nick@koston.org>
1 parent 152485d commit dd41644

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

content/components/wifi.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,22 @@ on_...:
472472

473473
The lambda equivalent for this is `!id(wifi_id).is_disabled()`.
474474

475+
{{< anchor "wifi-ap-active_condition" >}}
476+
477+
### `wifi.ap_active` Condition
478+
479+
This [Condition](/automations/actions#all-conditions) checks if WiFi AP is currently active or not.
480+
481+
```yaml
482+
on_...:
483+
- if:
484+
condition: wifi.ap_active
485+
then:
486+
- logger.log: WiFi AP is active!
487+
```
488+
489+
The lambda equivalent for this is `id(wifi_id).is_ap_active()`.
490+
475491
## See Also
476492

477493
- {{< docref "captive_portal/" >}}

0 commit comments

Comments
 (0)