Skip to content

Commit

Permalink
Move to esp-idf framework
Browse files Browse the repository at this point in the history
Better native support of ADC, OTA and memory management
  • Loading branch information
nliaudat committed Sep 30, 2023
1 parent cceea69 commit bb38a60
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
12 changes: 6 additions & 6 deletions board.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ esphome:
esp32:
board: nodemcu-32s
framework:
type: arduino #esp-idf not ready missing json and async_tcp
type: esp-idf #arduino #esp-idf
version: recommended #latest
# sdkconfig_options:
# CONFIG_COMPILER_OPTIMIZATION_SIZE: y
sdkconfig_options:
CONFIG_COMPILER_OPTIMIZATION_SIZE: y

preferences:
flash_write_interval: 60min

# Enable logging
logger:
level: DEBUG #NONE# ERROR #INFO #DEBUG #VERBOSE
baud_rate: 0 #to disable logging via UART
#baud_rate: 0 #to disable logging via UART
logs:
adc: INFO
sensor: ERROR
Expand All @@ -42,7 +42,7 @@ logger:

# Enable Home Assistant API
api:
reboot_timeout: 15min
reboot_timeout: 30min


ota:
Expand All @@ -54,5 +54,5 @@ sn74hc595:
data_pin: GPIO16 #Pin connected to SN74HC595 SER input
clock_pin: GPIO5 #Pin connected to SN74HC595 SRCLK pin
latch_pin: GPIO17 #Pin connected to SN74HC595 RCLK pin
oe_pin: GPIO18 ### needed by esphome, but connected to GND (outputEnable is used only for pwm all th pin)
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
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# change log
# change log
# v104:
# opamp version = new BEMF triggers
# v103:
Expand Down Expand Up @@ -158,7 +158,7 @@ packages:
sensor_temperature: !include sensor_temperature.yaml
sensor_others: !include sensor_others.yaml


# web_server:
# port: 80
# port: 80
# log: false

9 changes: 8 additions & 1 deletion sensor_others.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ sensor:
- platform: wifi_signal
name: "${friendly_name} WiFi Signal"
update_interval: 60s
entity_category: "diagnostic"
id: wifi_signal_db

- platform: uptime
name: "${friendly_name} Uptime"
Expand All @@ -27,9 +29,14 @@ sensor:
(minutes ? to_string(minutes) + "m " : "") +
(to_string(seconds) + "s")
).c_str();
- platform: internal_temperature
name: "${friendly_name} Internal Temperature"

text_sensor:
- platform: template
name: "${friendly_name} uptime"
id: uptime_human
icon: mdi:clock-start
icon: mdi:clock-start

0 comments on commit bb38a60

Please sign in to comment.