Select Git revision
base.yaml 1.34 KiB
esphome:
name: $devicename
comment: $comment
project:
name: "groovy.industries"
version: "1.0"
on_boot:
priority: -100
then:
- lambda: |-
id(sntp_time).update();
substitutions:
domain: !secret domain
preferences:
flash_write_interval: 0s
logger:
# level: INFO
api:
password: !secret api_password
reboot_timeout: 0s
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: on
use_address: ${devicename}.${domain}
ap:
ssid: "$devicename Fallback Hotspot"
password: !secret wifi_password
captive_portal:
web_server:
port: 80
local: true
# include_internal: true
prometheus:
# include_internal: true
sensor:
- platform: wifi_signal
name: "Wifi Signal"
update_interval: 60s
- platform: uptime
name: "Device Uptime"
update_interval: 60s
text_sensor:
- platform: version
name: "ESPHome Version"
hide_timestamp: true
- platform: template
name: "Device Time"
lambda: |-
auto str_time = id(sntp_time).now().strftime("%d-%m-%Y %H:%M");
return { str_time };
update_interval: 60s
- platform: wifi_info
ip_address: