Files
EspHome/esp32-c3-mini.yaml
Victor Alexandrovich Tsyrenschikov fff0982531 Esphome
2026-02-06 21:08:20 +05:00

115 lines
1.9 KiB
YAML

esphome:
name: esp32-c3-mini
friendly_name: ESP32-c3-mini
platformio_options:
board_build.flash_mode: dio
esp32:
board: esp32-c3-devkitm-1
variant: ESP32C3
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "zGWryIToSQYigPSiZBa1ljP7QNV+f1wM/jX+k1/9J6k="
ota:
- platform: esphome
password: "3f84a14ae6ed33fc29cddfd8c3cfe5bf"
wifi:
ssid: 'SmartHome'
password: ''
use_address: 192.168.88.29
manual_ip:
static_ip: 192.168.88.29
gateway: 192.168.88.1
subnet: 255.255.255.0
power_save_mode: none
# Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "Esp32-C3-Mini Fallback Hotspot"
# password: "wuMGlIsDXN19"
one_wire:
- platform: gpio
pin: GPIO4
id: bus1
i2c:
- id: bus_a
sda: GPIO6
scl: GPIO7
scan: true
captive_portal:
sensor:
- platform: ina219
address: 0x40
shunt_resistance: 0.1 ohm
current:
name: "INA219 Current"
unit_of_measurement: "A"
power:
name: "INA219 Power"
unit_of_measurement: "W"
filters:
- multiply: 10
bus_voltage:
name: "INA219 Bus Voltage"
unit_of_measurement: "V"
shunt_voltage:
name: "INA219 Shunt Voltage"
unit_of_measurement: "V"
max_voltage: 32.0V
max_current: 3.2A
update_interval: 1s
- platform: dallas_temp
one_wire_id: bus1
name: "DS18B20"
update_interval: 2s
- platform: bme680
i2c_id: bus_a
address: 0x76
update_interval: 1s
# - platform: gpio
# id: switch_output1
# name: "a8-output1"
# pin:
# pcf8574: pcf8574_hub_out_1
# number: 0
# mode: OUTPUT
# inverted: true
switch:
- platform: gpio
id: switch_output1
pin: GPIO5
inverted: True
binary_sensor:
- platform: gpio
name: "Pin GPIO21"
pin: GPIO21
web_server:
port: 80
auth:
username: "silver"
password: "cbvgcjy0"