-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## v117: * Add ESP32C3 board support (esp32-c3-devkitm-1) * Add board Pin definition in board_xx.yaml * Separate logger config in logger.yaml * Separate sn74hc595 config in sn74hc595.yaml * sn74hc595 : remove OE pin not needed anymore by esphome (connected to GND) * add onewire sample configuration
- Loading branch information
Showing
7 changed files
with
118 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
esphome: | ||
name: ${name} | ||
on_boot: | ||
priority: -200 | ||
then: | ||
- delay: ${onboot_valve_calibration_delay} #1min | ||
- script.execute: valve_maintenance | ||
|
||
project: | ||
name: "nliaudat.floor-heating-controller" | ||
version: "${revision}.dev" | ||
###### only for ESP32-C3 boot loop fix | ||
platformio_options: | ||
board_build.f_flash: 40000000L | ||
board_build.flash_mode: dio | ||
board_build.flash_size: 4MB | ||
|
||
substitutions: | ||
#board and compilation | ||
board: esp32-c3-devkitm-1 #ESP C3 supermini : makergo_c3_supermini or nologo_esp32c3_super_mini or seeed_xiao_esp32c3 , esp32-c3-devkitm-1 | ||
variant: esp32c3 | ||
framework: esp-idf #arduino | ||
|
||
# https://www.sudo.is/docs/esphome/boards/esp32c3supermini/ | ||
#Pin definition | ||
sn74hc595_data_pin: GPIO21 | ||
sn74hc595_clock_pin: GPIO10 | ||
sn74hc595_latch_pin: GPIO20 | ||
# sn74hc595_oe_pin: GPIO18 | ||
adc_bemf_1_pin: GPIO0 | ||
adc_bemf_2_pin: GPIO1 | ||
adc_bemf_3_pin: GPIO3 | ||
adc_bemf_4_pin: GPIO4 | ||
onewire_pin: GPIO6 | ||
|
||
esp32: | ||
board: ${board} | ||
framework: | ||
type: ${framework} #esp-idf #arduino | ||
version: recommended #latest | ||
sdkconfig_options: | ||
CONFIG_COMPILER_OPTIMIZATION_SIZE: y | ||
# Advanced tweaking options for ESP32-C3 | ||
advanced: | ||
ignore_efuse_mac_crc: false | ||
|
||
preferences: | ||
flash_write_interval: 60min | ||
|
||
|
||
ota: | ||
- platform: esphome | ||
|
||
safe_mode: | ||
|
||
|
||
# https://git.sudo.is/ben/infra/src/branch/main/roles/hass-esphome/files/packages/boards/esp32c3supermini.yaml | ||
|
||
# light: | ||
# - platform: status_led | ||
# name: "${name} Status LED" | ||
# id: espc3_status_led | ||
# icon: "mdi:alarm-light" | ||
# pin: | ||
# number: GPIO8 | ||
# inverted: true | ||
# restore_mode: ALWAYS_OFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Enable logging | ||
logger: | ||
level: DEBUG #NONE# ERROR #INFO #DEBUG #VERBOSE | ||
#baud_rate: 0 #to disable logging via UART | ||
logs: | ||
adc: INFO | ||
sensor: ERROR | ||
binary_sensor: INFO | ||
cover: INFO | ||
switch: INFO | ||
climate: INFO | ||
endstop : DEBUG | ||
text_sensor : ERROR | ||
homeassistant.sensor: ERROR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
one_wire: | ||
- platform: gpio | ||
pin: ${onewire_pin} | ||
|
||
sensor: | ||
- platform: dallas_temp | ||
address: 0x1234567812345628 | ||
name: temperature | ||
update_interval: 120s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# SN74HC595 I/O Expander (shift register) to control L9110s chips | ||
# https://esphome.io/components/sn74hc595.html | ||
sn74hc595: | ||
- id: 'sn74hc595_hub' | ||
data_pin: ${sn74hc595_data_pin} #GPIO16 #Pin connected to SN74HC595 SER input | ||
clock_pin: ${sn74hc595_clock_pin} #GPIO5 #Pin connected to SN74HC595 SRCLK pin | ||
latch_pin: ${sn74hc595_latch_pin} #GPIO17 #Pin connected to SN74HC595 RCLK pin | ||
#oe_pin: ${sn74hc595_oe_pin} #GPIO18 ### needed by esphome, but connected to GND (outputEnable is used only for pwm all the pin) | ||
sr_count: 2 #Number of daisy-chained shift registers, up-to 4 |