mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
stop hating myself
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
# CircuitSetup 6 Channel Energy Meter Main Board config
|
||||
# Uses the Waveshare ESP32-S3-ETH and the CircuitSetup 6 Channel Energy Meter Ethernet WS Adapter
|
||||
# See all options at https://esphome.io/components/sensor/atm90e32.html
|
||||
|
||||
substitutions:
|
||||
# Change the disp_name to something you want
|
||||
disp_name: energy-meter-eth-ws
|
||||
friendly_name: "CircuitSetup Energy Meter"
|
||||
# Interval of how often the power data is updated
|
||||
update_time: 10s
|
||||
# Frequency of your electrical grid - 60Hz in North America, 50Hz otherwise
|
||||
electric_freq: "60Hz"
|
||||
|
||||
## The below names and IDs can be changed to whatever you want. IDs should not have spaces
|
||||
main_meter_name1: Meter 1-3
|
||||
main_meter_name2: Meter 4-6
|
||||
main_meter_id1: meter_main1
|
||||
main_meter_id2: meter_main2
|
||||
ct1_name: CT1
|
||||
ct2_name: CT2
|
||||
ct3_name: CT3
|
||||
ct4_name: CT4
|
||||
ct5_name: CT5
|
||||
ct6_name: CT6
|
||||
|
||||
## Semi-Automatic Calibration ##
|
||||
# See https://esphome.io/components/sensor/atm90e32.html#calibration
|
||||
# WHEN CALIBRATION IS ENABLED, calculated values for offset and gain stored in memory take priority over config values
|
||||
# To save calculated calibration values, copy them from the logs to your config
|
||||
# then use the clear buttons to clear the calibration values from memory
|
||||
# Values are stored in the variables for gain below and offsets in their corresponding files
|
||||
# under /calibration/6chan_xxxx_offset_calibrations.yaml
|
||||
offset_calibration: "true"
|
||||
gain_calibration: "true"
|
||||
|
||||
## Gain Calibration Values ##
|
||||
# Change current_cal_ctX value to the corresponding CT's that you're using
|
||||
# For more precise calibration, see documentation for Semi-Auto calibration
|
||||
# Current Transformers:
|
||||
# 20A/25mA SCT-006: 11143
|
||||
# 30A/1V SCT-013-030: 8650
|
||||
# 50A/1V SCT-013-050: 15420
|
||||
# 50A/16.6mA SCT-010: 41334
|
||||
# 80A/26.6mA SCT-010: 41660
|
||||
# 100A/50ma SCT-013-000: 27518
|
||||
# 120A/40mA: SCT-016: 41787
|
||||
# 200A/100mA SCT-024: 27518
|
||||
# 200A/50mA SCT-024: 55036
|
||||
current_cal_ct1: '27518'
|
||||
current_cal_ct2: '27518'
|
||||
current_cal_ct3: '27518'
|
||||
current_cal_ct4: '27518'
|
||||
current_cal_ct5: '27518'
|
||||
current_cal_ct6: '27518'
|
||||
# This only needs to be changed if you're using something other than the
|
||||
# Jameco 9VAC Transformer:
|
||||
voltage_cal1: '7305'
|
||||
voltage_cal2: '7305'
|
||||
|
||||
esphome:
|
||||
name: "${disp_name}"
|
||||
friendly_name: "${friendly_name}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: '2025.5.0'
|
||||
platformio_options:
|
||||
board_build.flash_mode: dio
|
||||
project:
|
||||
name: circuitsetup.6c-energy-meter-ethernet-ws
|
||||
version: "1.7"
|
||||
|
||||
packages:
|
||||
remote_package:
|
||||
url: https://github.com/CircuitSetup/Expandable-6-Channel-ESP32-Energy-Meter
|
||||
ref: master
|
||||
refresh: 1min
|
||||
files:
|
||||
- Software/ESPHome/6chan_common_ethernet_ws.yaml
|
||||
- Software/ESPHome/meter_sensors/6chan_main_sensor.yaml
|
||||
|
||||
## Additional power quality sensors per CT/Phase
|
||||
## Uncomment to enable
|
||||
## details: https://esphome.io/components/sensor/atm90e32.html#configuration-variables
|
||||
#- Software/ESPHome/power_quality/6chan_main_power_quality.yaml
|
||||
|
||||
## Enables text status fields for each CT/Phase
|
||||
## details: https://esphome.io/components/sensor/atm90e32.html#text-sensor
|
||||
- Software/ESPHome/status_fields/6chan_main_status.yaml
|
||||
|
||||
## Adds semi-automatic calibration buttons and reference fields
|
||||
## If enabled, make sure offset & gain calibration are set to "true" above
|
||||
## details: https://esphome.io/components/sensor/atm90e32.html#calibration
|
||||
- Software/ESPHome/calibration/6chan_main_calibration.yaml
|
||||
|
||||
## Additional offset calibration fields that should be copied per CT/Phase from the ESPHome logs
|
||||
## These do not need to be set unless you are seeing non-zero values when CTs or Voltage
|
||||
## should not be registering anything.
|
||||
#- Software/ESPHome/calibration/6chan_main_offset_calibrations.yaml
|
||||
|
||||
dashboard_import:
|
||||
package_import_url: github://CircuitSetup/Expandable-6-Channel-ESP32-Energy-Meter/Software/ESPHome/6chan_energy_meter_main_ethernet_ws.yaml@master
|
||||
import_full_config: true
|
||||
|
||||
# Enable Home Assistant API
|
||||
# An encryption key is recommended and can be generated here:
|
||||
# https://esphome.io/components/api.html#configuration-variables
|
||||
api:
|
||||
# encryption:
|
||||
# key: "YOUR_ENCRYPTION_KEY_HERE"
|
||||
|
||||
# Enable OTA updating
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
sensor:
|
||||
# CS Pin mappings for Waveshare ESP32-S3-ETH
|
||||
- id: !extend ${main_meter_id1}
|
||||
cs_pin: 34
|
||||
- id: !extend ${main_meter_id2}
|
||||
cs_pin: 40
|
||||
|
||||
## The max value for current that the meter can output is 65.535. If you expect to measure current over 65A,
|
||||
## divide the current_cal_ctx (above) by 2 (120A CT) or 4 (200A CT) and multiply the current and power values
|
||||
## by 2 or 4, uncommenting the below and changing the id and phase_x accordingly
|
||||
#- id: !extend ${main_meter_id1} # CTs 1-3
|
||||
# phase_a: # CT1
|
||||
# current:
|
||||
# filters:
|
||||
# - multiply: 2
|
||||
# power:
|
||||
# filters:
|
||||
# - multiply: 2
|
||||
#
|
||||
## uncomment if monitoring 2 voltages
|
||||
#- id: !extend ${main_meter_id2}
|
||||
# phase_a:
|
||||
# voltage:
|
||||
# name: Voltage 2
|
||||
# id: ic2Volts
|
||||
# accuracy_decimals: 1
|
||||
# frequency:
|
||||
# name: Frequency 2
|
||||
|
||||
#kWh
|
||||
####
|
||||
- platform: total_daily_energy
|
||||
name: ${friendly_name} Total kWh
|
||||
power_id: totalWattsMain
|
||||
filters:
|
||||
- multiply: 0.001
|
||||
unit_of_measurement: kWh
|
||||
device_class: energy
|
||||
state_class: total_increasing
|
||||
Reference in New Issue
Block a user