112 lines
1.9 KiB
YAML
112 lines
1.9 KiB
YAML
esphome:
|
|
name: esp32-c3
|
|
friendly_name: ESP32-C3
|
|
|
|
esp32:
|
|
board: esp32-c3-devkitm-1
|
|
framework:
|
|
type: esp-idf
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "LE0/9X2TSZLPQk4r+xCAQHtiSWQXyk1Lct50IggUlUs="
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: "614014afc2d80f6552a59442dd02de05"
|
|
|
|
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"
|
|
|