all kinds of fun

This commit is contained in:
CeeWeasel
2026-05-04 21:01:23 -04:00
parent 149fac6ec0
commit 6f4259d767
62 changed files with 283 additions and 325 deletions
@@ -172,7 +172,7 @@ sensor:
# Clip "ghost" watts when the device is off
- lambda: "return x < 5.0 ? 0 : x;"
- or:
- delta: ${watt_delta_lights}
- delta: ${watt_delta_appliances}
- throttle: ${watt_throttle}
gain_voltage: ${voltage_cal2}
gain_ct: ${current_cal_ct24}
@@ -25,7 +25,7 @@ sensor:
# Drop noise below 0.02A, then log 0.05A changes or every 60s
- lambda: "return x < 0.02 ? 0 : x;"
- or:
- delta: ${amp_delta}
- delta: ${grid_amp_delta}
- throttle: ${amp_throttle}
power:
name: ${ct1_name} ${watt_label}
@@ -95,6 +95,10 @@ sensor:
gain_ct: ${current_cal_ct3}
frequency:
name: Frequency 1
filters:
- or:
- delta: ${freq_delta}
- throttle: ${freq_throttle}
chip_temperature:
name: ${main_meter_name1} Chip Temp
line_frequency: ${electric_freq}
@@ -118,7 +122,7 @@ sensor:
# Drop noise below 0.02A, then log 0.05A changes or every 60s
- lambda: "return x < 0.02 ? 0 : x;"
- or:
- delta: ${amp_delta}
- delta: ${grid_amp_delta}
- throttle: ${amp_throttle}
power:
name: ${ct4_name} ${watt_label}
@@ -156,7 +160,7 @@ sensor:
# Clip "ghost" watts when the device is off
- lambda: "return x < 2.0 ? 0 : x;"
- or:
- delta: ${watt_delta_lights}
- delta: ${watt_delta_computers}
- throttle: ${watt_throttle}
gain_voltage: ${voltage_cal2}
gain_ct: ${current_cal_ct5}
@@ -191,12 +195,18 @@ sensor:
# name: Frequency 2
chip_temperature:
name: ${main_meter_name2} Chip Temp
filters:
- or:
- delta: ${temp_delta}
- throttle: ${temp_throttle}
line_frequency: ${electric_freq}
gain_pga: 1X
update_interval: ${update_time}
enable_offset_calibration: ${offset_calibration}
enable_gain_calibration: ${gain_calibration}
#Total A Main
################
# - platform: template
+1 -1
View File
@@ -30,5 +30,5 @@ packages:
binary_sensor: !include binary_sensor/status_sensor.config.yaml
button: !include button/restart_button.config.yaml
sensor: !include sensor/uptime_sensor.config.yaml
debug: !include sensor/debug_sensor.config.yaml
# debug: !include sensor/debug_sensor.config.yaml
text_sensor: !include text_sensor/version_sensor.config.yaml
+16 -9
View File
@@ -24,13 +24,19 @@ substitutions:
kwh_report_interval: 60s
watt_heartbeat: 60s
throttle_time: 60s
temp_delta: "5.0"
temp_throttle: 60s
watt_delta_lights: "2.0"
watt_delta_appliances: "10.0"
watt_delta_computers: "15.0"
watt_delta_grid: "100.0"
watt_throttle: 60s
watt_accuracy_decimals: 1
watt_label: W
amp_delta: 0.05
freq_throttle: 60s
freq_delta: "0.02"
grid_amp_delta: "0.20"
amp_delta: "0.05"
amp_throttle: 60s
amp_accuracy_decimals: 2
amp_label: A
@@ -191,9 +197,9 @@ packages:
#common: !include circuit-setup/6chan_common.yaml
main: !include circuit-setup/meter_sensors/6chan_main_sensor.yaml
main_status: !include circuit-setup/status_fields/6chan_main_status.yaml
#main_cal: !include circuit-setup/calibration/6chan_main_calibration.yaml
#main_offset: !include circuit-setup/calibration/6chan_main_offset_calibrations.yaml
# main_status: !include circuit-setup/status_fields/6chan_main_status.yaml
# main_cal: !include circuit-setup/calibration/6chan_main_calibration.yaml
# main_offset: !include circuit-setup/calibration/6chan_main_offset_calibrations.yaml
addon1: !include circuit-setup/meter_sensors/6chan_addon1.yaml
# addon1_status: !include circuit-setup/status_fields/6chan_addon1_status.yaml
@@ -364,11 +370,12 @@ sensor:
device_class: current
state_class: measurement
update_interval: ${update_time}
# filters:
# - or:
# - delta: 2.0
# - throttle_average: ${throttle_time}
# # - heartbeat: ${watt_heartbeat}
filters:
# Drop noise below 0.02A, then log 0.05A changes or every 60s
- lambda: "return x < 0.02 ? 0 : x;"
- or:
- delta: ${amp_delta}
- throttle: ${amp_throttle}
#Total Watts From Grid
- platform: template