20260326
This commit is contained in:
@@ -1,60 +1,14 @@
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: ${api_password}
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
id: my_ota
|
||||
password: ${ota_password}
|
||||
!include templates/api.yaml
|
||||
!include templates/ota.yaml
|
||||
!include templates/wifi.yaml
|
||||
!include sensors/wifi.yaml
|
||||
|
||||
wifi:
|
||||
networks:
|
||||
- ssid: ${wifi_ssid}
|
||||
password: ${wifi_password}
|
||||
manual_ip:
|
||||
static_ip: ${ip}
|
||||
gateway: ${gateway}
|
||||
subnet: ${subnet}
|
||||
dns1: 192.169.2.15
|
||||
dns2: 1.1.1.1
|
||||
- ssid: ${wifi_ssid2}
|
||||
password: ${wifi_password2}
|
||||
|
||||
# use_address: 192.168.2.63 #when changing fixed IP
|
||||
|
||||
ap:
|
||||
ssid: ${device_name}
|
||||
password: ${wifi_password}
|
||||
on_connect:
|
||||
- delay: 5s # Gives time for improv results to be transmitted
|
||||
- ble.disable:
|
||||
on_disconnect:
|
||||
- ble.enable:
|
||||
|
||||
|
||||
sensor:
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signal "
|
||||
update_interval: 10s
|
||||
|
||||
text_sensor:
|
||||
- platform: wifi_info
|
||||
ssid:
|
||||
name: "Connected SSID"
|
||||
id: ssid
|
||||
icon: mdi:wifi-strength-2
|
||||
entity_category: diagnostic
|
||||
|
||||
bssid:
|
||||
name: "Connected BSSID"
|
||||
id: bssid
|
||||
icon: mdi:wifi-strength-2
|
||||
entity_category: diagnostic
|
||||
|
||||
mac_address:
|
||||
name: "WiFi Mac Address"
|
||||
id: macaddress
|
||||
icon: mdi:wifi-strength-2
|
||||
entity_category: diagnostic
|
||||
Reference in New Issue
Block a user