Solax

Appareils supportés
Device Type | Modbus TCP (Ethernet) | RS485 | Curtailment |
---|---|---|---|
Solax X1 Hybrid G4 | ✅ | ✅ | ❌ |
Solax X3 Hybrid G4 | |||
Solax IES | |||
Solax ESS-TRENE | ⌛ (prévu) | ⌛ (prévu) | ✅ |
Solax ESS-AELIO |
Installation
La documentation ci-dessous est extraite du dépôt GitHub public homeassistant-solax-modbus. Le document original peut être trouvé ici. Des crédits sont donnés aux auteurs de ce document.
Note : Ce document ci-dessous n'est pas spécifiquement conçu pour le SmartgridOne Controller ; mais donne des instructions générales sur la façon de configurer la communication Modbus avec les onduleurs Solax.
License
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Méthodes de connexion
- Les hybrides SolaX G2 et SolaX G3 ont un Ethernet intégré (Le Qcells Q.VOLT HYB-G3-3P est un SolaX G4 malgré la dénomination G3).
- Les SolaX G4 et d'autres n'ont pas d'Ethernet intégré, la communication est possible via le port série RS485 COM.
- SolaX uniquement - Tous les dongles SolaX ne fournissent pas de communication modbus, le PocketWiFi minimal supporté est le PocketWiFi 3.0 PocketLAN ne fournit pas de connexion Modbus.
- Adaptateur RS485 à Ethernet - le meilleur moyen de se connecter à votre onduleur.
- Adaptateur RS485 à USB - non recommandé, peut causer des erreurs dans HA.
- Dongle Solis - voir ci-dessous
L'interface RS485 utilise uniquement le pin4 (fil bleu) et le pin5 (blanc-bleu). La polarité est importante, alors assurez-vous que le pin4 (fil bleu dans les câbles typiques) est connecté à la borne A de votre adaptateur et le pin5 (fil blanc-bleu) à la borne B de votre adaptateur.
Les câbles RS485 peuvent être assez longs, donc 25 mètres ou plus est possible. Vous pouvez utiliser la paire bleue d'un câble cat5 ou cat6 standard.
Assurez-vous de vérifier le débit en bauds de votre onduleur sur la page Wiki et assurez-vous qu'il correspond au débit en bauds de l'adaptateur Ethernet à RS485. Vous pouvez confirmer le débit en bauds sur l'écran LCD à l'avant de votre onduleur, dans les menus.
L'adresse Modbus par défaut est 1. Certaines personnes ont signalé que leur adresse Modbus était 4.
Attention : Ce travail est basé sur la documentation de protocole commune pour les appareils X1 et X3. La documentation n'est pas toujours claire sur les paramètres qui ne s'appliquent pas à l'onduleur X1, donc certaines entités qui apparaissent peuvent ne pas avoir de sens sur X1. Vous pouvez le signaler et elles peuvent être supprimées pour X1.
Il y a un port marqué COM sur l'onduleur G4, certains manuels d'utilisation affirment par erreur qu'il s'agit d'un port Ethernet.
NE CONNECTEZ PAS CE PORT COM À UN SWITCH ETHERNET - votre port de switch Ethernet sera endommagé si vous le faites!!!
Waveshare RS485 à ETH (B)
-
se connecte via Ethernet à votre routeur/switch de réseau domestique
-
utilisez l'outil "vircom" (Windows) pour définir l'adresse IP correspondant à votre réseau local (ou pour permettre à l'appareil d'utiliser DHCP, il n'utilise pas DHCP par défaut, cependant nous recommandons d'utiliser une IP statique)
-
configurez-le pour utiliser "Modbus TCP à RTU", assurez-vous que le mode de travail est "Serveur TCP" et que le serveur écoute sur le port 502. Assurez-vous que le débit en bauds correspond au débit en bauds de votre onduleur (voir : paramètres > paramètres avancés > modbus > débit en bauds)
-
Dans "Plus de paramètres avancés...",
- SolaX définissez le type de passerelle Modbus sur "Simple Modbus au mode TCP/IP"
- Sofar Solar & possiblement Growatt définissez le type de passerelle Modbus sur "Type de stockage d'interrogation automatique"
- tous les autres paramètres peuvent rester par défaut
-
vous pouvez vérifier la configuration en ouvrant la page Web de votre adaptateur. Elle devrait afficher quelque chose comme :
-
Dans le cas peu probable où vous avez plusieurs onduleurs connectés à un adaptateur RS485, vous devrez peut-être modifier le drapeau multi-hôtes (non testé). Le système augmentera l'écart entre les messages, ce qui ralentira le débit de communication. Assurez-vous que votre intervalle de sondage est suffisamment long (la LED d'activité ne doit pas s'allumer en permanence).
-
si tout va bien, la LED PWR doit être rouge, la LED LINK doit initialement être verte et devenir bleue en permanence dès que HA a établi la connexion. La LED ACT doit être éteinte la plupart du temps mais doit clignoter en vert (envoyer) et bleu (recevoir) brièvement toutes les 15 secondes (l'intervalle de sondage par défaut). D'après la documentation Waveshare :
- Si la lumière Link n'est pas verte, le câble réseau n'est pas correctement connecté, veuillez vérifier le câble réseau.
- Si la lumière Link n'est pas bleue (considérez uniquement le mode de fonctionnement TCP), le logiciel de l'ordinateur hôte n'a pas de port série. Le serveur établit une connexion, veuillez vérifier si l'adresse IP est configurée dans le même segment de réseau.
- Si la lumière Active est verte, cela signifie que le port réseau envoie des données, mais qu'il n'y a pas de dispositif série renvoyant des données. Veuillez vérifier si le débit en bauds est correctement configuré et si les fils RS485 sont correctement connectés.
Lors de la configuration de l'intégration Modbus SolaX, spécifiez l'adresse IP du réseau de l'appareil Waveshare, et non l'adresse de SolaX. Ne cochez pas le drapeau RS485 série ; le port série est ignoré dans cette configuration.
Adaptateur USB à RS485
- Connecté directement en USB à votre système HA
- Ce modèle à bas coût peut être trouvé dans divers e-boutiques, recherchez USB RS485
- Chipset CH340C (des produits similaires avec un chipset FTDI FT232 devraient également fonctionner mais sont plus chers)
Lors de la configuration de l'intégration SolaX Modbus, cochez le drapeau 'port série RS485', et spécifiez le nom du port série réel (comme vu dans la sortie de 'ls /dev/ttyUSB*'). Si vous avez plus d'un appareil USB, il est judicieux d'utiliser le nom vu dans la sortie de 'ls /dev/serial/by-id'. Dans cette configuration, l'adresse IP et le port TCP n'ont pas d'importance, utilisez 'localhost' comme adresse IP et laissez le port TCP par défaut 502.
Plusieurs onduleurs connectés à un adaptateur RS485 & résistances de terminaison
Il devrait être possible de connecter plusieurs onduleurs au même adaptateur RS485 (par exemple Waveshare). Les onduleurs doivent avoir des adresses Modbus différentes, donc vous devez d'abord changer les adresses Modbus des onduleurs. Ensuite, configurez une instance pour chaque onduleur. Le dialogue de configuration vous permet de définir l'adresse Modbus.
L'utilisation de résistances de terminaison est requise lors de la connexion de plusieurs onduleurs. Placez une résistance de 120 Ohm entre A&B à l'adaptateur RS485 et placez une résistance de 120 Ohm entre A&B sur le dernier onduleur connecté.
SolaX PocketWiFi 3.0
Cette interface nécessite plus de tests et n'est pas garantie de fonctionner :
- Connectez le dongle à votre réseau Wi-Fi
- Mettez à jour le firmware vers la dernière version
- Configurez l'intégration avec l'adresse IP du dongle et autres paramètres par défaut.
La comparaison des fonctions et des dépendances :