filmov
tv
#BONUS | WiFI avec ESPHome

Показать описание
Qu'est ce qu'il est possible de faire avec le WiFi sur ESPHome ?
Code Yaml :
---------
wifi: #192.168.1.127
networks:
- ssid: !secret wifi_ssid_cyp
password: !secret wifi_password_cyp
- ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
reboot_timeout: 0s
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-8 Fallback Hotspot"
password: "lBUJmwt927aN"
captive_portal:
web_server:
# Example configuration entry
text_sensor:
- platform: wifi_info
ip_address:
name: ESP IP Address
ssid:
name: ESP Connected SSID
bssid:
name: ESP Connected BSSID
mac_address:
name: ESP Mac Wifi Address
scan_results:
name: ESP Latest Scan Results
dns_address:
name: ESP DNS Address
sensor:
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 5s
entity_category: "diagnostic"
- platform: copy # Reports the WiFi signal strength in %
source_id: wifi_signal_db
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "Signal %"
entity_category: "diagnostic"
#Internal Temperature
- platform: internal_temperature
name: "Internal Temperature"
update_interval: 10s
binary_sensor:
# boot button
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "boot button"
id: "boot_button"
on_press:
then:
if:
condition:
then:
else:
0:00 Le fichier secrets
1:07 WiFi Info Text Sensor
1:56 WiFi Signal Sensor
2:43 power_save_mode
4:10 reboot_timeout
4:46 fast_connect
5:14 Plusieurs réseaux WiFi
6:21 Actions et conditions WiFi
9:23 Help me !!
Code Yaml :
---------
wifi: #192.168.1.127
networks:
- ssid: !secret wifi_ssid_cyp
password: !secret wifi_password_cyp
- ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
reboot_timeout: 0s
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-8 Fallback Hotspot"
password: "lBUJmwt927aN"
captive_portal:
web_server:
# Example configuration entry
text_sensor:
- platform: wifi_info
ip_address:
name: ESP IP Address
ssid:
name: ESP Connected SSID
bssid:
name: ESP Connected BSSID
mac_address:
name: ESP Mac Wifi Address
scan_results:
name: ESP Latest Scan Results
dns_address:
name: ESP DNS Address
sensor:
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 5s
entity_category: "diagnostic"
- platform: copy # Reports the WiFi signal strength in %
source_id: wifi_signal_db
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "Signal %"
entity_category: "diagnostic"
#Internal Temperature
- platform: internal_temperature
name: "Internal Temperature"
update_interval: 10s
binary_sensor:
# boot button
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "boot button"
id: "boot_button"
on_press:
then:
if:
condition:
then:
else:
0:00 Le fichier secrets
1:07 WiFi Info Text Sensor
1:56 WiFi Signal Sensor
2:43 power_save_mode
4:10 reboot_timeout
4:46 fast_connect
5:14 Plusieurs réseaux WiFi
6:21 Actions et conditions WiFi
9:23 Help me !!
Комментарии