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

add wifi.on_connect and wifi.on_disconnect triggers (#3639)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Charles Johnson
2023-11-07 05:17:13 +00:00
committed by GitHub
parent 888c298d7e
commit 31fec2d692
4 changed files with 44 additions and 5 deletions

View File

@@ -73,6 +73,10 @@ wifi:
domain: .local
reboot_timeout: 120s
power_save_mode: light
on_connect:
- light.turn_on: ${roomname}_lights
on_disconnect:
- light.turn_off: ${roomname}_lights
network:
enable_ipv6: true