more manual tweaks, and I really fucking need to stop and get groceries

This commit is contained in:
CeeWeasel
2025-07-20 13:24:38 -04:00
parent 75fb9c2ab8
commit 0baf98f917
6 changed files with 72 additions and 59 deletions
+3 -3
View File
@@ -16,6 +16,6 @@ ethernet:
dns1: !secret iot_default_dns1 dns1: !secret iot_default_dns1
dns2: !secret iot_default_dns2 dns2: !secret iot_default_dns2
#text_sensor: text_sensor:
#- <<: !include text_sensor/ethernet_ip_address.config.yaml - <<: !include text_sensor/ethernet_ip_address.config.yaml
#- <<: !include text_sensor/ethernet_mac_address.config.yaml - <<: !include text_sensor/ethernet_mac_address.config.yaml
@@ -1,3 +1,4 @@
platform: uptime platform: uptime
name: Uptime name: Uptime
disabled_by_default: true disabled_by_default: true
icon: mdi:timer-check
@@ -1,9 +1,5 @@
# Text sensors with general information. # Text sensors with general information.
platform: template platform: ethernet_info
#ip_address: ip_address:
name: IP name: "IP Address"
icon: mdi:ip-network disabled_by_default: true
entity_category: diagnostic
disabled_by_default: true
lambda: return {id(eth).get_ip_address().str() };
update_interval: 60s
@@ -1,9 +1,4 @@
# Text sensors with general information. platform: ethernet_info
platform: template mac_address:
#mac_address: name: MAC Address
name: Ethernet MAC Address disabled_by_default: true
disabled_by_default: true
icon: mdi:network
entity_category: diagnostic
lambda: return {esp_eth_get_mac.str() };
update_interval: 60s
@@ -0,0 +1,10 @@
# Text sensors with general information.
platform: ethernet_info
ip_address:
name: "IP Address"
icon: mdi:ip
disabled_by_default: true
mac_address:
name: MAC Address
icon: mdi:network
disabled_by_default: true
+49 -38
View File
@@ -31,23 +31,24 @@ esphome:
friendly_name: ${friendly_name} friendly_name: ${friendly_name}
name_add_mac_suffix: false name_add_mac_suffix: false
on_boot: on_boot:
then: - priority: -100
- lambda: |- then:
if (id(oled)) { - lambda: |-
id(oled_enabled) = true; if (id(oled)) {
} else { id(oled_enabled) = true;
id(oled_enabled) = false; } else {
} id(oled_enabled) = false;
}
esp32: esp32:
board: ${board} board: ${board}
framework: framework:
type: esp-idf type: esp-idf
web_server: # web_server:
port: 80 # port: 80
version: 3 # version: 3
include_internal: true # include_internal: true
# Enable logging # Enable logging
logger: logger:
@@ -92,8 +93,9 @@ i2c:
sensor: sensor:
- platform: dallas_temp - platform: dallas_temp
address: 0xB33C01B607798528 address: 0xB33C01B607798528
name: "Return Temperature" name: "Return"
id: hvac_return id: hvac_return
icon: mdi:home-thermometer-outline
update_interval: 10s update_interval: 10s
filters: filters:
- lambda: return x * (9.0/5.0) + 32.0; - lambda: return x * (9.0/5.0) + 32.0;
@@ -102,8 +104,9 @@ sensor:
- platform: dallas_temp - platform: dallas_temp
address: 0x0F3C01B6070C1328 address: 0x0F3C01B6070C1328
name: "Supply Temperature" name: "Supply"
id: hvac_supply id: hvac_supply
icon: mdi:thermostat
update_interval: 10s update_interval: 10s
filters: filters:
- lambda: return x * (9.0/5.0) + 32.0; - lambda: return x * (9.0/5.0) + 32.0;
@@ -112,8 +115,9 @@ sensor:
- platform: dallas_temp - platform: dallas_temp
address: 0xFA3C01B607005B28 address: 0xFA3C01B607005B28
name: "Ambient Temperature" name: "Ambient"
id: ambient id: ambient
icon: mdi:home-thermometer
update_interval: 10s update_interval: 10s
filters: filters:
- lambda: return x * (9.0/5.0) + 32.0; - lambda: return x * (9.0/5.0) + 32.0;
@@ -121,8 +125,9 @@ sensor:
state_class: measurement state_class: measurement
- platform: template - platform: template
name: "Delta Temperature" name: "Delta"
id: hvac_delta id: hvac_delta
icon: mdi:thermometer-lines
lambda: |- lambda: |-
return (id(hvac_supply).state - id(hvac_return).state); return (id(hvac_supply).state - id(hvac_return).state);
update_interval: 10s update_interval: 10s
@@ -159,6 +164,8 @@ sensor:
state_class: measurement state_class: measurement
id: distance_from_bottom id: distance_from_bottom
name: "Salt Level in CM" name: "Salt Level in CM"
icon: mdi:arrow-collapse-up
disabled_by_default: true
#update_interval: 5s #update_interval: 5s
filters: filters:
- lambda: 'return (0.94 - (id(ultrasonic_source).state)) * 100;' - lambda: 'return (0.94 - (id(ultrasonic_source).state)) * 100;'
@@ -173,6 +180,8 @@ sensor:
state_class: measurement state_class: measurement
id: distance_from_top id: distance_from_top
name: "Salt Level From Top in CM" name: "Salt Level From Top in CM"
icon: mdi:arrow-collapse-down
disabled_by_default: true
#update_interval: 5s #update_interval: 5s
filters: filters:
- lambda: 'return (id(ultrasonic_source).state) * 100;' - lambda: 'return (id(ultrasonic_source).state) * 100;'
@@ -182,6 +191,8 @@ sensor:
state_class: measurement state_class: measurement
id: level_in_bags id: level_in_bags
name: "Salt Level in Bags" name: "Salt Level in Bags"
icon: mdi:counter
disabled_by_default: true
#update_interval: 5s #update_interval: 5s
filters: filters:
- lambda: 'return (id(distance_from_bottom).state) / 17.5;' - lambda: 'return (id(distance_from_bottom).state) / 17.5;'
@@ -207,27 +218,27 @@ binary_sensor:
name: "Door" name: "Door"
device_class: door device_class: door
pin: ${door_pin} pin: ${door_pin}
filters:
- invert:
switch: # switch:
- platform: template # - platform: template
id: display_switch # id: display_switch
name: "Display" # name: "Display"
lambda: |- # lambda: |-
if (id(screen_power)) { # if (id(oled_enabled)) {
if (id(oled_enabled)) { # if (id(screen_power)) {
id(oled).turn_on(); # id(oled).turn_on();
} # } else {
} else { # id(oled).turn_off();
if (id(oled_enabled)) { # }
id(oled).turn_off(); # }
} # return id(screen_power);
} # turn_on_action:
return id(screen_power); # - lambda: |-
turn_on_action: # id(screen_power) = true;
- lambda: |- # // id(oled).turn_on();
id(screen_power) = true; # turn_off_action:
// id(oled).turn_on(); # - lambda: |-
turn_off_action: # id(screen_power) = false;
- lambda: |- # // id(oled).turn_off();
id(screen_power) = false;
// id(oled).turn_off();