esphome: name: kincony-n20 friendly_name: KinCony N20 esp32: board: esp32-s3-devkitc-1 framework: type: arduino # Enable logging logger: # baud_rate: 0 # Enable Home Assistant API api: encryption: key: "=" ota: - platform: esphome password: "" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Kincony-N20 Fallback Hotspot" password: "" uart: rx_pin: 9 tx_pin: 10 baud_rate: 115200 stop_bits: 1 data_bits: 8 parity: NONE web_server: port: 80 text_sensor: - platform: wifi_info ip_address: name: ESP IP Address id: wifi_ip address_0: name: ESP IP Address 0 dns_address: name: ESP DNS Address mac_address: name: ESP MAC Address font: - file: "gfonts://Roboto" id: roboto size: 15 i2c: sda: 18 scl: 17 modbus: modbus_controller: - address: 1 update_interval: 5s sensor: - platform: modbus_controller address: 100 register_type: holding name: CT1_1_Current id: n20_1_current_1 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 102 register_type: holding name: CT1_2_Current id: n20_1_current_2 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 104 register_type: holding name: CT1_3_Current id: n20_1_current_3 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 106 register_type: holding name: CT1_4_Current id: n20_1_current_4 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 108 register_type: holding name: CT1_5_Current id: n20_1_current_5 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 110 register_type: holding name: CT1_6_Current id: n20_1_current_6 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 112 register_type: holding name: CT1_7_Current id: n20_1_current_7 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 114 register_type: holding name: CT1_8_Current id: n20_1_current_8 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 116 register_type: holding name: CT1_9_Current id: n20_1_current_9 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 118 register_type: holding name: CT1_10_Current id: n20_1_current_10 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 120 register_type: holding name: CT1_1_Power id: n20_1_watt_1 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry. # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_1_Power_HV # id: n20_1_watt_1 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_1).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 122 register_type: holding name: CT1_2_Power id: n20_1_watt_2 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry. # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_2_Power_HV # id: n20_1_watt_2 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_2).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 124 register_type: holding name: CT1_3_Power id: n20_1_watt_3 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_3_Power_HV # id: n20_1_watt_3 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_3).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 126 register_type: holding name: CT1_4_Power id: n20_1_watt_4 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_4_Power_HV # id: n20_1_watt_4 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_4).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 128 register_type: holding name: CT1_5_Power id: n20_1_watt_5 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_5_Power_HV # id: n20_1_watt_5 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_5).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 130 register_type: holding name: CT1_6_Power id: n20_1_watt_6 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_6_Power_HV # id: n20_1_watt_6 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_6).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 132 register_type: holding name: CT1_7_Power id: n20_1_watt_7 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_7_Power_HV # id: n20_1_watt_7 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_7).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 134 register_type: holding name: CT1_8_Power id: n20_1_watt_8 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_8_Power_HV # id: n20_1_watt_8 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_8).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 136 register_type: holding name: CT1_9_Power id: n20_1_watt_9 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_9_Power_HV # id: n20_1_watt_9 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_9).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 138 register_type: holding name: CT1_10_Power id: n20_1_watt_10 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT1_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT1_10_Power_HV # id: n20_1_watt_10 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_1_current_10).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 140 register_type: holding name: CT1_1_Energy id: n20_1_energy_1 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 142 register_type: holding name: CT1_2_Energy id: n20_1_energy_2 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 144 register_type: holding name: CT1_3_Energy id: n20_1_energy_3 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 146 register_type: holding name: CT1_4_Energy id: n20_1_energy_4 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 148 register_type: holding name: CT1_5_Energy id: n20_1_energy_5 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 150 register_type: holding name: CT1_6_Energy id: n20_1_energy_6 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 152 register_type: holding name: CT1_7_Energy id: n20_1_energy_7 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 154 register_type: holding name: CT1_8_Energy id: n20_1_energy_8 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 156 register_type: holding name: CT1_9_Energy id: n20_1_energy_9 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 158 register_type: holding name: CT1_10_Energy id: n20_1_energy_10 unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry # Comment out the this entry if AND loads are line-to-line voltage and use single current transformers. # Add individual kWh for all entitites in Home Assistant. - platform: modbus_controller state_class: total_increasing device_class: energy address: 160 register_type: holding name: CT1_Energy_Sum id: n20_1_energy_sum unit_of_measurement: kWh accuracy_decimals: 1 value_type: U_DWORD_R # End of entry - platform: modbus_controller address: 162 register_type: holding name: CT1_Voltage id: n20_1_voltage unit_of_measurement: V device_class: voltage accuracy_decimals: 1 value_type: U_WORD filters: - multiply: 0.01 - platform: modbus_controller address: 163 register_type: holding name: CT1_Frequency id: n20_1_period unit_of_measurement: Hz device_class: frequency accuracy_decimals: 1 value_type: U_WORD filters: - multiply: 0.01 - platform: modbus_controller address: 164 register_type: holding name: CT1_TPS id: n20_1_tps_1 unit_of_measurement: °C device_class: temperature accuracy_decimals: 1 value_type: FP32_R - platform: modbus_controller address: 200 register_type: holding name: CT2_1_Current id: n20_2_current_1 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 202 register_type: holding name: CT2_2_Current id: n20_2_current_2 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 204 register_type: holding name: CT2_3_Current id: n20_2_current_3 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 206 register_type: holding name: CT2_4_Current id: n20_2_current_4 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 208 register_type: holding name: CT2_5_Current id: n20_2_current_5 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 210 register_type: holding name: CT2_6_Current id: n20_2_current_6 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 212 register_type: holding name: CT2_7_Current id: n20_2_current_7 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 214 register_type: holding name: CT2_8_Current id: n20_2_current_8 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 216 register_type: holding name: CT2_9_Current id: n20_2_current_9 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 - platform: modbus_controller address: 218 register_type: holding name: CT2_10_Current id: n20_2_current_10 unit_of_measurement: A device_class: current accuracy_decimals: 3 value_type: U_DWORD_R filters: - multiply: 0.001 # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 220 register_type: holding name: CT2_1_Power id: n20_2_watt_1 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_1 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_1_Power_HV # id: n20_2_watt_1 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_1).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 222 register_type: holding name: CT2_2_Power id: n20_2_watt_2 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_2 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_2_Power_HV # id: n20_2_watt_2 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_2).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 224 register_type: holding name: CT2_3_Power id: n20_2_watt_3 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_3 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_3_Power_HV # id: n20_2_watt_3 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_3).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 226 register_type: holding name: CT2_4_Power id: n20_2_watt_4 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_4 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_4_Power_HV # id: n20_2_watt_4 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_4).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 228 register_type: holding name: CT2_5_Power id: n20_2_watt_5 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_5 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_5_Power_HV # id: n20_2_watt_5 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_5).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 230 register_type: holding name: CT2_6_Power id: n20_2_watt_6 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_6 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_6_Power_HV # id: n20_2_watt_6 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_6).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 232 register_type: holding name: CT2_7_Power id: n20_2_watt_7 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_7 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_7_Power_HV # id: n20_2_watt_7 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_7).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 234 register_type: holding name: CT2_8_Power id: n20_2_watt_8 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_8 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_8_Power_HV # id: n20_2_watt_8 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_8).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 236 register_type: holding name: CT2_9_Power id: n20_2_watt_9 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_9 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_9_Power_HV # id: n20_2_watt_9 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_9).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. Uncomment the following entry. - platform: modbus_controller address: 238 register_type: holding name: CT2_10_Power id: n20_2_watt_10 unit_of_measurement: W device_class: power accuracy_decimals: 1 value_type: U_DWORD_R filters: - multiply: 0.1 # End of entry # Uncomment the following entry to enable CT2_10 watts sensor based on line-to-line voltage. # - platform: template # name: CT2_10_Power_HV # id: n20_2_watt_10 # unit_of_measurement: W # device_class: power # accuracy_decimals: 1 # update_interval: 5s # lambda: |- # return (id(n20_2_current_10).state * id(LineToLineVoltage).state); # End of entry. # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 240 register_type: holding name: CT2_1_Energy id: n20_2_energy_1 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 242 register_type: holding name: bl0910_2_energy_2 id: n20_2_energy_2 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 244 register_type: holding name: bl0910_2_energy_3 id: n20_2_energy_3 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 246 register_type: holding name: bl0910_2_energy_4 id: n20_2_energy_4 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 248 register_type: holding name: bl0910_2_energy_5 id: n20_2_energy_5 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 250 register_type: holding name: bl0910_2_energy_6 id: n20_2_energy_6 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 252 register_type: holding name: bl0910_2_energy_7 id: n20_2_energy_7 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 254 register_type: holding name: bl0910_2_energy_8 id: n20_2_energy_8 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 256 register_type: holding name: bl0910_2_energy_9 id: n20_2_energy_9 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if load is line-to-line voltage and uses a single current transformer. # At the momement kWh for line-to-line loads needs to be done with a template helper in HomeAssistant. - platform: modbus_controller address: 258 register_type: holding name: bl0910_2_energy_10 id: n20_2_energy_10 unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry # Comment out the this entry if AND loads are line-to-line voltage and use single current transformers. # Add individual kWh for all entitites in Home Assistant. - platform: modbus_controller address: 260 register_type: holding name: bl0910_2_energy_sum id: n20_2_energy_sum unit_of_measurement: kWh device_class: energy accuracy_decimals: 1 value_type: U_DWORD_R state_class: total_increasing # End of entry - platform: modbus_controller address: 262 register_type: holding name: CT2_Voltage id: n20_2_voltage unit_of_measurement: V device_class: voltage accuracy_decimals: 1 value_type: U_WORD filters: - multiply: 0.01 - platform: modbus_controller address: 263 register_type: holding name: CT2_Frequency id: n20_2_period unit_of_measurement: Hz device_class: frequency accuracy_decimals: 1 value_type: U_WORD filters: - multiply: 0.01 - platform: modbus_controller address: 264 register_type: holding name: CT2_TPS id: n20_2_tps_1 unit_of_measurement: "°C" device_class: temperature accuracy_decimals: 1 value_type: FP32_R - platform: template name: Line_to_Line_Voltage id: LineToLineVoltage unit_of_measurement: V device_class: voltage accuracy_decimals: 1 lambda: |- return (id(n20_2_voltage).state + id(n20_1_voltage).state); # Display screen code. I found a 13 pixel line height worked well. Line 1 is at 0,0, line 2 is at 0,13, line 3 0,26 # Line 1 displays wifi IP address on screen. # Line 2 displays electrical Lines 1 & 2 Voltages to neutral. # Line 3 displays Line 1 & Line 2 watts assuming there are dedicated Line 1 & Line 2 current transformers on the main supply wires. # Edit the IDs of n20_1_watt_3 and n20_2_watt_1 to the appropriate inputs for your L1 & L2 current transformers. # Or commend out the last two lines to remove. display: - platform: ssd1306_i2c model: "SSD1306 128x64" address: 0x3C lambda: |- it.printf(0, 0, id(roboto), "IP: %s", id(wifi_ip).state.c_str()); it.printf(-1, 13, id(roboto), "L1: %.0fV L2: %.0fV ", id(n20_1_voltage).state, id(n20_2_voltage).state); it.printf(-1, 26, id(roboto), "L1-L2: %.0fV", id(LineToLineVoltage).state); it.printf(-1, 39, id(roboto), "L1:%.0fW L2:%.0fW", id(n20_1_watt_3).state, id(n20_2_watt_1).state);