48 lines
826 B
YAML
48 lines
826 B
YAML
esphome:
|
|
name: seed-modbus
|
|
friendly_name: seed modbus
|
|
|
|
esp32:
|
|
board: esp32-s3-devkitc-1
|
|
framework:
|
|
type: arduino
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "+fvyzEhRt2I4BPtrS9dqhv/qCibX0azYMgMY1tkEOLw="
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: "c3274286d9131444822bed49abf1b77b"
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Seed-Modbus Fallback Hotspot"
|
|
password: "j9tvzwj9WPEe"
|
|
|
|
captive_portal:
|
|
|
|
output:
|
|
- platform: gpio
|
|
pin: GPIO21 #GPIO4
|
|
id: led_output
|
|
|
|
switch:
|
|
- platform: output
|
|
name: "LED"
|
|
output: led_output
|
|
id: led_switch
|
|
restore_mode: ALWAYS_OFF
|
|
|
|
interval:
|
|
- interval: 1s
|
|
then:
|
|
- switch.toggle: led_switch |