Skip to content

Commit

Permalink
feat: Sync of the inverter list
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Jul 3, 2024
1 parent c6dfe87 commit 903090b
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# To use modbus function in Afore BNTxxxKTL inverters, You first need to change protocol from RS485 to MODBUS in inverter menu

requests:
- start: 0x0000
end: 0x001A
mb_functioncode: 0x04

- start: 0x0000
end: 0x000F
mb_functioncode: 0x03

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"
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,33 @@
# with LSW-3 WiFi logger with SN 27xxxxxxxx and FW LSW3_15_270A_1.53:

requests:
- start: 0x0400
end: 0x042B
- start: 0x0404
end: 0x0410
mb_functioncode: 0x03
- start: 0x0482
end: 0x04A4
- start: 0x0418
end: 0x041A
mb_functioncode: 0x03
- start: 0x042b
end: 0x042b
mb_functioncode: 0x03
- start: 0x0582
- start: 0x0484
end: 0x048d
mb_functioncode: 0x03
- start: 0x04AF
end: 0x04AF
mb_functioncode: 0x03
- start: 0x0504
end: 0x0504
mb_functioncode: 0x03
- start: 0x0584
end: 0x0589
mb_functioncode: 0x03
- start: 0x0604
end: 0x060A
mb_functioncode: 0x03
- start: 0x0682
- start: 0x0683
end: 0x069B
mb_functioncode: 0x03
- start: 0x0504
end: 0x0504
mb_functioncode: 0x03

parameters:
- group: Solar
Expand Down Expand Up @@ -174,8 +183,8 @@ parameters:
- name: "Battery Power"
class: "power"
state_class: "measurement"
uom: "KW"
scale: 0.01
uom: "W"
scale: 10
rule: 2
registers: [0x0606]
icon: 'mdi:battery-charging-high'
Expand All @@ -200,14 +209,32 @@ parameters:

- group: Grid
items:
- name: "Grid Power"
class: "power"
state_class: "measurement"
uom: "W"
scale: 10
rule: 2
registers: [0x0488]
icon: 'mdi:transmission-tower'

- name: 'Grid Voltage'
class: 'voltage'
state_class: 'measurement'
uom: 'V'
scale: 0.1
rule: 1
registers: [0x048d]
icon: 'mdi:transmission-tower'

- name: 'Grid Frequency'
class: 'frequency'
state_class: 'measurement'
uom: 'Hz'
scale: 0.01
rule: 1
registers: [0x0484]
icon: 'mdi:home-lightning-bolt'
icon: 'mdi:transmission-tower'

- name: 'Active Power Output Total'
class: 'power'
Expand All @@ -217,7 +244,16 @@ parameters:
rule: 2
registers: [0x0485]
icon: 'mdi:home-lightning-bolt'


- name: 'Home Consumption'
class: 'power'
state_class: 'measurement'
uom: 'W'
scale: 10
rule: 2
registers: [0x04AF]
icon: 'mdi:home-lightning-bolt'

- name: 'Active Power Load Total'
class: 'power'
state_class: 'measurement'
Expand Down Expand Up @@ -312,7 +348,7 @@ parameters:
- name: 'Insulation Resistance'
class: ''
state_class: 'measurement'
uom: ''
uom: 'kΩ'
scale: 1
rule: 1
registers: [0x042B]
Expand Down
Loading

0 comments on commit 903090b

Please sign in to comment.