Skip to content

Commit

Permalink
sungrow charger: fix default id
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply committed Apr 9, 2024
1 parent 7d833ac commit 66844ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charger/sungrow.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func init() {
// NewSungrowFromConfig creates a Sungrow charger from generic config
func NewSungrowFromConfig(other map[string]interface{}) (api.Charger, error) {
cc := modbus.Settings{
ID: 1,
ID: 248,
}

if err := util.DecodeOther(other, &cc); err != nil {
Expand Down
1 change: 1 addition & 0 deletions templates/definition/charger/sungrow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ requirements:
params:
- name: modbus
choice: ["rs485", "tcpip"]
id: 248
render: |
type: sungrow
{{- include "modbus" . }}

0 comments on commit 66844ed

Please sign in to comment.