1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

feat(WiFi): Add wifi.configure action (#7335)

This commit is contained in:
Rodrigo Martín
2024-11-24 23:06:21 +01:00
committed by GitHub
parent e3e3d92347
commit 9fc1377b44
3 changed files with 128 additions and 0 deletions

View File

@@ -3,6 +3,13 @@ esphome:
then:
- wifi.disable
- wifi.enable
- wifi.configure:
ssid: MySSID
password: password1
on_connect:
- logger.log: "Connected to WiFi!"
on_error:
- logger.log: "Failed to connect to WiFi!"
wifi:
ssid: MySSID