This paste brought to you by Pastebin. View Raw

  1. logger:
  2.   baud_rate: 0
  3.  
  4. uart:
  5.   - id: ubus
  6.     rx_pin: GPIO3
  7.     tx_pin: GPIO1
  8.     baud_rate: 9600
  9.     stop_bits: 1
  10.  
  11. switch:
  12.   - platform: uart
  13.     uart_id: ubus
  14.     name: "Reset Energy"
  15.     data: [0x01, 0x42, 0x80, 0x11]
  16.  
  17. sensor:
  18.   - platform: pzemac
  19.     current:
  20.       name: "CT Current"
  21.     voltage:
  22.       name: "CT Voltage"
  23.     energy:
  24.       name: "CT Energy"
  25.       unit_of_measurement: kWh
  26.       accuracy_decimals: 2
  27.       filters:
  28.         - calibrate_linear:
  29.             - 0 -> 0
  30.             - 8.68 -> 21
  31.         - multiply: 0.001
  32.     update_interval: 1s