Advertisement
bdnstn

clean files error

Oct 26th, 2024
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.28 KB | None | 0 0
  1. # 26/10/2024
  2. # Calibrated against 1800 W Hot air blower.
  3. # For 20 Amp CT Clamp:
  4. # gain_pga: 2X
  5. # gain_voltage: 15118
  6. # gain_ct: 18833
  7. # For 100 Amp CT Clamp:
  8. # gain_pga: 2X
  9. # gain_voltage: 15118
  10. # gain_ct: 18833
  11. # For 100 Amp CT Clamp:
  12.  
  13. esphome:
  14.   name: "meterbox"
  15.   friendly_name: Meterbox
  16.  
  17. esp32:
  18.   board: esp32dev
  19.   framework:
  20.     type: arduino
  21.  
  22. # Enable logging
  23. logger:
  24. # Enable Home Assistant API
  25. api:
  26.   encryption:
  27.     key: "ESRg66QaqKiqZTI1Zl/5kzRAoVBu4wkRiaFyNFc+mQE="
  28.  
  29. ota:
  30.   - platform: esphome
  31.  
  32. wifi:
  33.   ssid: !secret wifi_ssid
  34.   password: !secret wifi_password
  35.  
  36.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  37.   ap:
  38.     ssid: "meterbox"
  39.     password: "2OXIbYoVYti8"
  40.  
  41. captive_portal:
  42. spi:
  43.   clk_pin: 18
  44.   miso_pin: 19
  45.   mosi_pin: 23
  46.  
  47. sensor:
  48.   - platform: atm90e32
  49.     cs_pin: 5
  50.     id: chip1 #Optional
  51.     phase_a:
  52.         voltage:
  53.         name: "Line Voltage Sub House"
  54.       current:
  55.         name: "Current Sub House"
  56.       power:
  57.         name: "Active Power Sub House"
  58.       gain_voltage: 15118
  59.       gain_ct: 30614
  60.     # phase_b:    # This CT-Clamp is connected, but the circuit from the RCD does not appear to be connected to anything!
  61.     #   current:  # See note on phone.
  62.     #     name: "Current 15A GPO"
  63.     #   power:
  64.     #     name: "Active Power 15A GPO"
  65.     #   gain_voltage: 15188
  66.     #   gain_ct: 18833
  67.     phase_c: # This is RCD marked "Power". It's wired to top GPO in meter box and the GPOs in the north garden.
  68.       current:
  69.         name: "Current North Garden and Meter Box GPO"
  70.       power:
  71.         name: "Active Power North Garden and Meter Box GPO"
  72.       gain_voltage: 15118
  73.       gain_ct: 18833
  74.     # frequency:
  75.     #   name: "EMON Line Frequency"
  76.     line_frequency: 50Hz
  77.     current_phases: 3
  78.     gain_pga: 2X
  79.     update_interval: 2s
  80.     enable_offset_calibration: True
  81.  
  82.   - platform: atm90e32
  83.     cs_pin: 4
  84.     id: chip2 #Optional
  85.     phase_a: # This is the CB marked "Main Switch". It should be total current to/from the grid.
  86.       voltage:
  87.         name: "Voltage Grid"
  88.       current:
  89.         name: "Current Grid"
  90.       power:
  91.         name: "Active Power Grid"
  92.       forward_active_energy:
  93.         name: Energy from grid
  94.       reverse_active_energy:
  95.         name: Energy to grid
  96.       gain_voltage: 15118
  97.       gain_ct: 30614
  98.   #   phase_b:
  99.   #     current:
  100.   #       name: "EMON CT5 Current"
  101.   #     power:
  102.   #       name: "EMON Active Power CT5"
  103.   #     gain_voltage: 15118
  104.   #     gain_ct: 18833
  105.   #   phase_c:
  106.   #     current:
  107.   #       name: "EMON CT6 Current"
  108.   #     power:
  109.   #       name: "EMON Active Power CT6"
  110.   #     gain_voltage: 15118
  111.   #     gain_ct: 18833
  112.   #   frequency:
  113.   #     name: "EMON Line Frequency-2"
  114.     line_frequency: 50Hz
  115.     current_phases: 3
  116.     gain_pga: 2X
  117.     update_interval: 2s
  118.     enable_offset_calibration: True
  119.  
  120. button:
  121.   - platform: atm90e32
  122.     id: chip1
  123.     run_offset_calibration:
  124.       name: "Chip1 - Run Offset Calibration"
  125.     clear_offset_calibration:
  126.       name: "Chip1 - Clear Offset Calibration"
  127.  
  128.   # - platform: atm90e32
  129.   #   id: chip2
  130.   #   run_offset_calibration:
  131.   #     name: "Chip2 - Run Offset Calibration"
  132.   #   clear_offset_calibration:
  133.   #     name: "Chip2 - Clear Offset Calibration"
  134.  
  135.  
  136.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement