Skip to content

Commit d7026ef

Browse files
Merge pull request #820 from WillCodeForCats/modbus-read-with-timeout
Add async with timeout to detect extras
2 parents 19de9ee + f868308 commit d7026ef

File tree

11 files changed

+325
-221
lines changed

11 files changed

+325
-221
lines changed

custom_components/solaredge_modbus_multi/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class SolarEdgeTimeouts(IntEnum):
8484
Inverter = 8400
8585
Device = 1200
8686
Init = 1200
87+
Read = 6000
8788

8889

8990
class BatteryLimit(IntEnum):

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 255 additions & 216 deletions
Large diffs are not rendered by default.

custom_components/solaredge_modbus_multi/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"issue_tracker": "https://github.com/WillCodeForCats/solaredge-modbus-multi/issues",
1111
"loggers": ["custom_components.solaredge_modbus_multi"],
1212
"requirements": ["pymodbus>=3.8.3"],
13-
"version": "3.1.2"
13+
"version": "3.1.3-pre.3"
1414
}

custom_components/solaredge_modbus_multi/strings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@
9797
"already_configured": "Host and port is already configured in another hub."
9898
}
9999
}
100+
},
101+
"detect_timeout_gpc": {
102+
"title": "Global Dynamic Power Control Timeout",
103+
"description": "The inverter did not respond while reading data for Global Dynamic Power Controls. These entities will be unavailable. Disable the Auto-Detect Additional Entities option if the inverter has trouble trying to read these sensors."
104+
},
105+
"detect_timeout_apc": {
106+
"title": "Advanced Power Control Timeout",
107+
"description": "The inverter did not respond while reading data for Advanced Power Controls. These entities will be unavailable. Disable the Auto-Detect Additional Entities option if the inverter has trouble trying to read these sensors."
100108
}
101109
}
102110
}

custom_components/solaredge_modbus_multi/translations/de.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@
9898
"already_configured": "Host und Port sind bereits in einem anderen Hub konfiguriert."
9999
}
100100
}
101+
},
102+
"detect_timeout_gpc": {
103+
"title": "Global Dynamic Power Control Timeout",
104+
"description": "Der Wechselrichter reagierte nicht beim Lesen von Daten für globale dynamische Leistungssteuerung."
105+
},
106+
"detect_timeout_apc": {
107+
"title": "Fortgeschrittene Leistungssteuerung Zeitlimit",
108+
"description": "Der Wechselrichter reagierte nicht beim Lesen von Daten für fortgeschrittene Stromversorgungssteuerungen."
101109
}
102110
}
103111
}

custom_components/solaredge_modbus_multi/translations/en.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@
9797
"already_configured": "Host and port is already configured in another hub."
9898
}
9999
}
100+
},
101+
"detect_timeout_gpc": {
102+
"title": "Global Dynamic Power Control Timeout",
103+
"description": "The inverter did not respond while reading data for Global Dynamic Power Controls. These entities will be unavailable. Disable the Auto-Detect Additional Entities option if the inverter has trouble trying to read these sensors."
104+
},
105+
"detect_timeout_apc": {
106+
"title": "Advanced Power Control Timeout",
107+
"description": "The inverter did not respond while reading data for Advanced Power Controls. These entities will be unavailable. Disable the Auto-Detect Additional Entities option if the inverter has trouble trying to read these sensors."
100108
}
101109
}
102110
}

custom_components/solaredge_modbus_multi/translations/fr.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@
9898
"already_configured": "L'hôte et le port sont déjà configurés dans un autre hub."
9999
}
100100
}
101+
},
102+
"detect_timeout_gpc": {
103+
"title": "Tempsion mondial de contrôle de la puissance dynamique",
104+
"description": "L'onduleur n'a pas répondu lors de la lecture des données pour les contrôles de puissance dynamique globaux."
105+
},
106+
"detect_timeout_apc": {
107+
"title": "Timeout de contrôle de puissance avancé",
108+
"description": "L'onduleur n'a pas répondu lors de la lecture des données pour les contrôles de puissance avancés."
101109
}
102110
}
103111
}

custom_components/solaredge_modbus_multi/translations/it.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@
9898
"already_configured": "L'host e la porta sono già configurati in un altro hub."
9999
}
100100
}
101+
},
102+
"detect_timeout_gpc": {
103+
"title": "Timeout di controllo del potere dinamico globale",
104+
"description": "L'inverter non ha risposto durante la lettura dei dati per i controlli di potenza dinamica globali."
105+
},
106+
"detect_timeout_apc": {
107+
"title": "Timeout di controllo del potere avanzato",
108+
"description": "L'inverter non ha risposto durante la lettura dei dati per i controlli di potenza avanzati."
101109
}
102110
}
103111
}

custom_components/solaredge_modbus_multi/translations/nb.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@
9898
"already_configured": "Vert og port er allerede konfigurert i en annen hub."
9999
}
100100
}
101+
},
102+
"detect_timeout_gpc": {
103+
"title": "Global dynamisk kraftkontroll timeout",
104+
"description": "Omformeren svarte ikke mens du leste data for global dynamisk kraftkontroll."
105+
},
106+
"detect_timeout_apc": {
107+
"title": "Avansert timeout for strømkontroll",
108+
"description": "Omformeren svarte ikke mens du leste data for avanserte strømkontroller."
101109
}
102110
}
103111
}

custom_components/solaredge_modbus_multi/translations/nl.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@
9898
"already_configured": "Host en poort zijn al geconfigureerd in een andere hub."
9999
}
100100
}
101+
},
102+
"detect_timeout_gpc": {
103+
"title": "Global Dynamic Power Control Time -out",
104+
"description": "De omvormer reageerde niet tijdens het lezen van gegevens voor Global Dynamic Power Controls."
105+
},
106+
"detect_timeout_apc": {
107+
"title": "Geavanceerde time -out voor stroomregeling",
108+
"description": "De omvormer reageerde niet tijdens het lezen van gegevens voor geavanceerde stroomregeling."
101109
}
102110
}
103111
}

0 commit comments

Comments
 (0)