72 lines
1.3 KiB
YAML
72 lines
1.3 KiB
YAML
# Further reference
|
|
# https://platformio.org/lib
|
|
|
|
# Node Config
|
|
esphome:
|
|
name: !secret node_name
|
|
platform: ESP32
|
|
board: featheresp32
|
|
platformio_options:
|
|
upload_speed: 115200
|
|
includes:
|
|
libraries:
|
|
- SPI
|
|
- Wire
|
|
|
|
# WiFi config
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
domain: !secret node_domain
|
|
|
|
# Enable I2C
|
|
i2c:
|
|
|
|
deep_sleep:
|
|
run_duration: 6min
|
|
sleep_duration: 54min
|
|
wakeup_pin_mode: INVERT_WAKEUP # stop caring and be judicious about tolerance of goofy pin modes
|
|
|
|
# Enable logging
|
|
logger:
|
|
level: DEBUG # Flip to ERROR for production deployments
|
|
baud_rate: 0 # Disable UART logging
|
|
|
|
# Enable Home Assistant API
|
|
#api:
|
|
# password: !secret api_password
|
|
|
|
# OTA Config
|
|
ota:
|
|
password: !secret ota_password
|
|
safe_mode: true
|
|
|
|
# Web Server (DISABLE outside of testing)
|
|
#web_server:
|
|
# port: 80
|
|
|
|
# MQTT CLIENT
|
|
mqtt:
|
|
broker: !secret mqtt_client_broker
|
|
port: 8883
|
|
username: !secret mqtt_client_username
|
|
password: !secret mqtt_client_password
|
|
birth_message:
|
|
topic: 'hass/status'
|
|
payload: 'online'
|
|
will_message:
|
|
topic: 'hass/status'
|
|
payload: 'offline'
|
|
|
|
binary_sensor:
|
|
- platform: status
|
|
name: "Status"
|
|
|
|
sensor:
|
|
- platform: wifi_signal
|
|
id: sensor_wifi_signal
|
|
name: "WiFi_Signal"
|
|
update_interval: 3min
|
|
unit_of_measurement: "dB"
|
|
accuracy_decimals: 1
|