mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Added some themes, but mostly updated power monitor to better wrangle the sensors and udpate_intervals to save DB space
This commit is contained in:
+35
-27
@@ -13,7 +13,6 @@
|
||||
|
||||
substitutions:
|
||||
devicename: power-monitor
|
||||
#disp_name: power-monitor
|
||||
disp_name: power-monitor
|
||||
friendly_name: 'Power Monitor'
|
||||
entity_name: power_monitor
|
||||
@@ -21,22 +20,28 @@ substitutions:
|
||||
static_ip: !secret power-monitor-ip
|
||||
platform: ESP32
|
||||
board: nodemcu-32s
|
||||
#update_time: 500ms
|
||||
update_time: 5s
|
||||
update_time: 2s
|
||||
kwh_report_interval: 60s
|
||||
watt_heartbeat: 60s
|
||||
throttle_time: 60s
|
||||
watt_delta: "50.0"
|
||||
#watt_delta: "5.0"
|
||||
#grid_watt_delta: "10.0"
|
||||
grid_watt_delta: "200.0"
|
||||
#fast_update_time: 10s
|
||||
#medium_update_time: 30s
|
||||
#slow_update_time: 60s
|
||||
watt_delta_lights: "2.0"
|
||||
watt_delta_appliances: "10.0"
|
||||
watt_delta_grid: "100.0"
|
||||
watt_throttle: 60s
|
||||
watt_accuracy_decimals: 1
|
||||
watt_label: W
|
||||
amp_delta: 0.05
|
||||
amp_throttle: 60s
|
||||
amp_accuracy_decimals: 2
|
||||
amp_label: A
|
||||
voltage_delta: 0.5
|
||||
voltage_heartbeat: 300s
|
||||
voltage_accuracy_decimals: 1
|
||||
voltage_label: V
|
||||
kwh_throttle: 60s
|
||||
kwh_label: kWh
|
||||
|
||||
|
||||
main_meter_name1: Meter 1-3
|
||||
main_meter_name2: Meter 4-6
|
||||
main_meter_id1: meter_main1
|
||||
@@ -170,6 +175,8 @@ esp32:
|
||||
# ESPHome v2025.7.0 update to allow more than 6 SPI hardware devices on ESP-IDF
|
||||
type: esp-idf
|
||||
|
||||
captive_portal:
|
||||
|
||||
spi:
|
||||
clk_pin: ${spi_clk}
|
||||
miso_pin: ${spi_miso}
|
||||
@@ -236,22 +243,23 @@ sensor:
|
||||
# name: Frequency 2
|
||||
|
||||
## Comment out to show amps and watts per meter board in Home Assistant
|
||||
- id: !extend totalAmpsMain
|
||||
internal: true
|
||||
- id: !extend totalWattsMain
|
||||
internal: true
|
||||
- id: !extend totalAmpsAddOn1
|
||||
internal: true
|
||||
- id: !extend totalWattsAddOn1
|
||||
internal: true
|
||||
- id: !extend totalAmpsAddOn2
|
||||
internal: true
|
||||
- id: !extend totalWattsAddOn2
|
||||
internal: true
|
||||
- id: !extend totalAmpsAddOn3
|
||||
internal: true
|
||||
- id: !extend totalWattsAddOn3
|
||||
internal: true
|
||||
## These were commented out altogether, so they wouldn't be calculated, even if they remained internal
|
||||
# - id: !extend totalAmpsMain
|
||||
# internal: true
|
||||
# - id: !extend totalWattsMain
|
||||
# # internal: true
|
||||
# - id: !extend totalAmpsAddOn1
|
||||
# internal: true
|
||||
# - id: !extend totalWattsAddOn1
|
||||
# internal: true
|
||||
# - id: !extend totalAmpsAddOn2
|
||||
# internal: true
|
||||
# - id: !extend totalWattsAddOn2
|
||||
# internal: true
|
||||
# - id: !extend totalAmpsAddOn3
|
||||
# internal: true
|
||||
# - id: !extend totalWattsAddOn3
|
||||
# internal: true
|
||||
|
||||
- id: !extend ${addon3_id1}
|
||||
phase_a:
|
||||
@@ -384,7 +392,7 @@ sensor:
|
||||
power_id: totalWattsFromGrid
|
||||
filters:
|
||||
- multiply: 0.001
|
||||
# - heartbeat: ${kwh_report_interval}
|
||||
- throttle: ${kwh_throttle}
|
||||
unit_of_measurement: kWh
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
|
||||
Reference in New Issue
Block a user