SofarSolar: Fix timeouts by delay (#7023)
* default modbus request delay: 1s Increasing delay may help if timeouts occur.
This commit is contained in:
parent
cc5a7fff41
commit
195e2e65cc
5 changed files with 39 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ params:
|
|||
comset: 8N1
|
||||
port: 502
|
||||
id: 1
|
||||
- name: delay
|
||||
default: 1s
|
||||
- name: capacity
|
||||
advanced: true
|
||||
render: |
|
||||
|
|
@ -29,6 +31,7 @@ render: |
|
|||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x0488 # ActivePower_PCC_Total
|
||||
type: holding
|
||||
|
|
@ -37,6 +40,7 @@ render: |
|
|||
currents:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x0492 # Current_PCC_R
|
||||
type: holding
|
||||
|
|
@ -44,6 +48,7 @@ render: |
|
|||
scale: 0.01
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x049D # Current_PCC_S
|
||||
type: holding
|
||||
|
|
@ -51,6 +56,7 @@ render: |
|
|||
scale: 0.01
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x04A8 # Current_PCC_T
|
||||
type: holding
|
||||
|
|
@ -59,6 +65,7 @@ render: |
|
|||
powers:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x0493 # ActivePower_PCC_R
|
||||
type: holding
|
||||
|
|
@ -66,6 +73,7 @@ render: |
|
|||
scale: -10
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x049E # ActivePower_PCC_S
|
||||
type: holding
|
||||
|
|
@ -73,6 +81,7 @@ render: |
|
|||
scale: -10
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x04A9 # ActivePower_PCC_T
|
||||
type: holding
|
||||
|
|
@ -81,6 +90,7 @@ render: |
|
|||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x068E # Energy_Purchase_Total
|
||||
type: holding
|
||||
|
|
@ -91,6 +101,7 @@ render: |
|
|||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x05C4 # Power_PV_Total
|
||||
type: holding
|
||||
|
|
@ -99,6 +110,7 @@ render: |
|
|||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x0686 # PV_Generation_Total
|
||||
type: holding
|
||||
|
|
@ -109,6 +121,7 @@ render: |
|
|||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x0606 # Power_Bat1
|
||||
type: holding
|
||||
|
|
@ -117,6 +130,7 @@ render: |
|
|||
soc:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x0608 # SOC_Bat1
|
||||
type: holding
|
||||
|
|
@ -124,6 +138,7 @@ render: |
|
|||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
delay: {{ .delay }}
|
||||
register:
|
||||
address: 0x069A # Bat_Discharge_Total
|
||||
type: holding
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -49,6 +50,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: pv
|
||||
default: |
|
||||
|
|
@ -74,6 +76,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -97,6 +100,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: battery
|
||||
default: |
|
||||
|
|
@ -122,6 +126,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -145,4 +150,5 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -49,6 +50,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: pv
|
||||
default: |
|
||||
|
|
@ -74,6 +76,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -97,6 +100,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: battery
|
||||
default: |
|
||||
|
|
@ -122,6 +126,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -145,4 +150,5 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -49,6 +50,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: pv
|
||||
default: |
|
||||
|
|
@ -74,6 +76,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -97,6 +100,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: battery
|
||||
default: |
|
||||
|
|
@ -122,6 +126,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -145,4 +150,5 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -49,6 +50,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: pv
|
||||
default: |
|
||||
|
|
@ -74,6 +76,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -97,6 +100,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
- usage: battery
|
||||
default: |
|
||||
|
|
@ -122,6 +126,7 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
advanced: |
|
||||
type: template
|
||||
template: sofarsolar-g3
|
||||
|
|
@ -145,4 +150,5 @@ render:
|
|||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
delay: 1s # Optional
|
||||
capacity: 50 # Akkukapazität in kWh # Optional
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue