mirror of
https://github.com/esphome/esphome.git
synced 2026-10-18 12:12:48 +00:00
[wifi] Test the wifi.connected and wifi.enabled conditions (#20841)
This commit is contained in:
@@ -14,6 +14,14 @@ esphome:
|
||||
condition: wifi.ap_active
|
||||
then:
|
||||
- logger.log: "WiFi AP is active!"
|
||||
- if:
|
||||
condition: wifi.connected
|
||||
then:
|
||||
- logger.log: "WiFi is connected!"
|
||||
- if:
|
||||
condition: wifi.enabled
|
||||
then:
|
||||
- logger.log: "WiFi is enabled!"
|
||||
- wifi.roam
|
||||
|
||||
wifi:
|
||||
|
||||
Reference in New Issue
Block a user