Compare commits

...

2 commits

6 changed files with 99 additions and 22 deletions

View file

@ -0,0 +1,6 @@
defaults:
timeout: 3s
http_request:
useragent: esphome
timeout: ${timeout}

View file

@ -0,0 +1,26 @@
defaults:
board: esp01_1m
version: recommended
esp32:
framework:
type: esp-idf
version: ${version}
sdkconfig_options:
CONFIG_COMPILER_DISABLE_GCC12_WARNINGS: "y"
CONFIG_COMPILER_OPTIMIZATION_PERF: "y"
CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS: "n"
CONFIG_ESP_WIFI_MBEDTLS_CRYPTO: "n"
CONFIG_LWIP_DHCP_DOES_ARP_CHECK: "n"
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES: "n"
CONFIG_MBEDTLS_PEM_PARSE_C: "n"
CONFIG_MBEDTLS_PEM_WRITE_C: "n"
CONFIG_MBEDTLS_X509_CRL_PARSE_C: "n"
CONFIG_MBEDTLS_X509_CSR_PARSE_C: "n"
CONFIG_MQTT_PROTOCOL_311: "n"
CONFIG_MQTT_PROTOCOL_5: "n"
CONFIG_MQTT_TRANSPORT_SSL: "n"
CONFIG_MQTT_TRANSPORT_WEBSOCKET: "n"
CONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE: "n"
CONFIG_SPI_FLASH_SHARE_SPI1_BUS: "n"
CONFIG_WS_TRANSPORT: "n"

View file

@ -1,15 +1,31 @@
substitutions: substitutions:
node_name: hpwh node_name: hpwh
node_friendly_name: Water Heater node_friendly_name: Water Heater
http_timeout: 3s node_area: Basement
packages: packages:
- !include ../common/esp32-idf.yaml - !include
- !include ../common/esp32-poe.yaml file: framework/esp32_idf.yaml
- !include ../common/base-influxdb.yaml
- !include ../common/http-request-idf.yaml - !include
- !include ../common/sntp-time.yaml file: unit/olimex_esp32_poe.yaml
- !include ../common/influxdb.yaml
- !include
file: domain/base.yaml
- !include
file: domain/influxdb_v2_oss/base.yaml
- !include
file: domain/time/sntp.yaml
- !include
file: domain/http_request_idf.yaml
- !include
file: domain/influxdb_v2_oss/core.yaml
- !include
file: domain/uart.yaml
external_components: external_components:
- source: - source:
@ -21,11 +37,13 @@ external_components:
- econet - econet
uart: uart:
id: _uart - id: !extend _uart
baud_rate: 38400 baud_rate: 38400
rx_buffer_size: 1500 rx_buffer_size: 1500
tx_pin: GPIO4 tx_pin:
rx_pin: GPIO36 number: GPIO4
rx_pin:
number: GPIO36
econet: econet:
id: _econet id: _econet

View file

@ -0,0 +1,17 @@
esphome:
platformio_options:
upload_speed: 460800
esp32:
board: esp32-poe
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
power_pin:
number: GPIO12
ignore_strapping_warning: true
use_address: ${node_name}.km6g.us

View file

@ -11,18 +11,26 @@ packages:
- !include - !include
file: ../domain/button/restart.yaml file: ../domain/button/restart.yaml
- !include ../domain/base.yaml - !include
- !include ../domain/influxdb_v2_oss/base.yaml file: ../domain/base.yaml
- !include
file: ../domain/influxdb_v2_oss/base.yaml
- !include ../domain/network/wifi.yaml - !include
- !include ../domain/influxdb_v2_oss/wifi.yaml file: ../domain/network/wifi.yaml
- !include ../domain/network/wifi_km6g_iot.yaml - !include
file: ../domain/influxdb_v2_oss/wifi.yaml
- !include
file: ../domain/network/wifi_km6g_iot.yaml
- !include ../domain/time/sntp.yaml - !include
file: ../domain/time/sntp.yaml
- !include ../domain/http_request.yaml - !include
file: ../domain/http_request.yaml
- !include ../domain/influxdb_v2_oss/core.yaml - !include
file: ../domain/influxdb_v2_oss/core.yaml
switch: switch:
- id: relay - id: relay

View file

@ -2,8 +2,10 @@ packages:
- !include - !include
file: sonoff_s31_lite.yaml file: sonoff_s31_lite.yaml
- !include ../domain/globals/active.yaml - !include
- !include ../domain/binary_sensor/active.yaml file: ../domain/globals/active.yaml
- !include
file: ../domain/binary_sensor/active.yaml
- !include - !include
file: ../domain/uart.yaml file: ../domain/uart.yaml