· 6 months ago · Apr 05, 2025, 07:25 PM
1esphome:
2 name: ev-generale-acqua
3 friendly_name: ev generale acqua
4
5esp8266:
6 board: d1_mini
7 restore_from_flash: True # richiesto su ESP8266 per abilitare il ripristino delle impostazioni del dispositivo al riavvio
8
9preferences:
10 flash_write_interval: 5min # impostare su 5 minuti per evitare che il modulo flash integrato si usuri troppo rapidamente
11
12
13
14# Enable Home Assistant API
15api:
16 encryption:
17 key: "AhVXUaDMwDlS+MuLMtEidl077FDZu6zqFRE8qyFZg7c="
18
19ota:
20 - platform: esphome
21 password: "10e9783a86a57a4ea0a23c222a6c1558"
22
23wifi:
24 ssid: !secret wifi_ssid
25 password: !secret wifi_password
26
27 # Enable fallback hotspot (captive portal) in case wifi connection fails
28 ap:
29 ssid: "Ev-Generale-Acqua"
30 password: "I0pA6LKxlsRu"
31
32captive_portal:
33web_server:
34 port: 80
35 version: 3
36 include_internal: true
37 local: true
38# Enable logging
39logger:
40 level: DEBUG
41
42sensor:
43
44#WIFI
45 - platform: wifi_signal
46 name: "WiFi Signal EV generale acqua"
47 update_interval: 15s
48 filters:
49 - sliding_window_moving_average:
50 window_size: 15
51 send_every: 15
52 send_first_at: 15
53 icon: mdi:wifi
54#RESTART
55button:
56 - platform: restart
57 name: "Restart"
58
59#COMANDO EV
60switch:
61 - platform: gpio
62 pin:
63 number: D5
64 inverted: False
65 restore_mode: RESTORE_DEFAULT_OFF
66 id: EV_generale_acqua
67 name: "Comando EV generale acqua"
68 icon: mdi:water-pump
69
70#STATO VALVOLA
71binary_sensor:
72 - platform: switch
73 name: "Stato valvola"
74 id: stato_valvola
75 source_id: EV_generale_acqua
76 icon: mdi:valve-open