From 676411d6ddd59b9cedb25b77e550da78cc9286b2 Mon Sep 17 00:00:00 2001 From: nedyarrd Date: Mon, 11 Sep 2023 17:39:45 +0200 Subject: [PATCH] Create Afore_BNTxxxKTL-2mppt.yaml Add afore inverter definition. Needs change RS485 setting in inverter to MODBUS, then home.solarman.cn doesn't work --- .../Afore_BNTxxxKTL-2mppt.yaml | 163 ++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 custom_components/solarman/inverter_definitions/Afore_BNTxxxKTL-2mppt.yaml diff --git a/custom_components/solarman/inverter_definitions/Afore_BNTxxxKTL-2mppt.yaml b/custom_components/solarman/inverter_definitions/Afore_BNTxxxKTL-2mppt.yaml new file mode 100644 index 0000000..cf0d7ce --- /dev/null +++ b/custom_components/solarman/inverter_definitions/Afore_BNTxxxKTL-2mppt.yaml @@ -0,0 +1,163 @@ +requests: + - start: 0x0000 + end: 0x001A + mb_functioncode: 0x04 + +parameters: + - group: solar + items: + - name: "PV1 Voltage" + class: "voltage" + state_class: "measurement" + uom: "V" + scale: 0.1 + rule: 1 + registers: [0x0007] + icon: "mdi:solar-power" + + - name: "PV2 Voltage" + class: "voltage" + state_class: "measurement" + uom: "V" + scale: 0.1 + rule: 1 + registers: [0x0009] + icon: "mdi:solar-power" + + - name: "PV1 Current" + class: "current" + state_class: "measurement" + uom: "A" + scale: 0.01 + rule: 1 + registers: [0x0008] + icon: "mdi:solar-power" + + - name: "PV2 Current" + class: "current" + state_class: "measurement" + uom: "A" + scale: 0.01 + rule: 1 + registers: [0x000A] + icon: "mdi:solar-power" + + - name: "Daily Production Wh" + class: "energy" + state_class: "total" + uom: "Wh" + scale: 1 + rule: 1 + registers: [0x000F] + icon: "mdi:solar-power" + + - name: "Total Production Wh" + class: "energy" + state_class: "total_increasing" + uom: "Wh" + scale: 1 + rule: 3 + registers: [0x0015, 0x0014] + icon: "mdi:solar-power" + + - name: "Today generation time " + class: "" + state_class: "measurement" + uom: "s" + scale: 1 + rule: 1 + registers: [0x0013] + icon: "mdi:clock-outline" + + - group: Output + items: + - name: "Output active power" + class: "power" + state_class: "measurement" + uom: "W" + scale: 1 + rule: 1 + registers: [0x0011] + icon: "mdi:home-lightning-bolt" + + - name: "Grid frequency" + class: "frequency" + state_class: "measurement" + uom: "Hz" + scale: 0.1 + rule: 1 + registers: [0x000B] + icon: "mdi:home-lightning-bolt" + + - name: "L1 Voltage" + class: "voltage" + state_class: "measurement" + uom: "V" + scale: 0.1 + rule: 1 + registers: [0x0001] + icon: "mdi:home-lightning-bolt" + + - name: "L1 Current" + class: "current" + state_class: "measurement" + uom: "A" + scale: 0.01 + rule: 1 + registers: [0x0004] + icon: "mdi:home-lightning-bolt" + + - name: "L2 Voltage" + class: "voltage" + state_class: "measurement" + uom: "V" + scale: 0.1 + rule: 1 + registers: [0x0002] + icon: "mdi:home-lightning-bolt" + + - name: "L2 Current" + class: "current" + state_class: "measurement" + uom: "A" + scale: 0.01 + rule: 1 + registers: [0x0005] + icon: "mdi:home-lightning-bolt" + + - name: "L3 Voltage" + class: "voltage" + state_class: "measurement" + uom: "V" + scale: 0.1 + rule: 1 + registers: [0x0003] + icon: "mdi:home-lightning-bolt" + + - name: "L3 Current" + class: "current" + state_class: "measurement" + uom: "A" + scale: 0.01 + rule: 1 + registers: [0x0006] + icon: "mdi:home-lightning-bolt" + + - group: Inverter + items: + - name: "Inverter module temperature" + class: "temperature" + uom: "°C" + scale: 0.1 + rule: 1 + registers: [0x000C] + icon: "mdi:thermometer" + + - name: "Inverter inner temperature" + class: "temperature" + state_class: "measurement" + uom: "°C" + scale: 0.1 + rule: 1 + registers: [0x000D] + icon: "mdi:thermometer"