Files
fresh-home/esphome/common/device_base.yaml
T
2026-05-19 22:44:10 -04:00

36 lines
775 B
YAML

esphome:
name: ${devicename}
comment: ${comment}
friendly_name: ${friendly_name}
# platform: ${platform}
# board: ${board}
# Enable logging
logger:
# Sync time with Home Assistant.
time:
- platform: homeassistant
id: local_homeassistant_time
# Enable Home Assistant API
api:
reboot_timeout: 15min
encryption:
key: !secret api-encryption-key
ota:
- platform: esphome
id: local_ota
password: !secret ota-password
debug:
update_interval: 10s
packages:
binary_sensor: !include binary_sensor/status_sensor.config.yaml
button: !include button/restart_button.config.yaml
sensor: !include sensor/uptime_sensor.config.yaml
# debug: !include sensor/debug_sensor.config.yaml
text_sensor: !include text_sensor/version_sensor.config.yaml