diff --git a/huawei/README.md b/huawei/README.md index 51816a4..aacc4c8 100644 --- a/huawei/README.md +++ b/huawei/README.md @@ -4,9 +4,9 @@ Connects to a Huawei FusionSolar using Modbus RTU or TCP. ## Huawei FusionSolar -In order to communicate with the Huawei FusionSolar inverter, a working communication must be provided. This can be done with a Huawei SmartDongle or with a directly with the modbus RTU connection. +The Huawei FusionSolar can be connected either via the Huawei SmartDongle or via a Modbus RTU (RS485) connection. -Once nymea has connected successfully to the inverter, following devices will be supported: +The following devices are supported: * Huawei FusionSolar Inverter (all model supported by the SmartDongle) * Huawei Meter (connected internally to the Inverter) @@ -27,7 +27,7 @@ with the Huawei Solar Inverter. In order to allow nymea to read from the device You can also contact the [official Huawei support](mailto:eu_inverter_support@huawei.com) in order to get the update files and instructions, or get it from [here](https://support.huawei.com/enterprise/en/digital-power/sdongle-pid-23826585/software). -> The SmartDongle provides only access to the registers specified in the Huawei `openAPI`. Full modbus register access requires a modbus RTU connction. +> The SmartDongle provides only access to the registers specified in the Huawei `openAPI`. Full modbus register access requires a modbus RTU connection. ### Direct modbus RTU connection (RS485). diff --git a/huawei/huaweifusionsolar.h b/huawei/huaweifusionsolar.h index df879ff..ed3d87d 100644 --- a/huawei/huaweifusionsolar.h +++ b/huawei/huaweifusionsolar.h @@ -43,7 +43,7 @@ public: explicit HuaweiFusionSolar(const QHostAddress &hostAddress, uint port, quint16 slaveId, QObject *parent = nullptr); ~HuaweiFusionSolar() = default; - bool initialize() override; + virtual bool initialize() override; virtual bool update() override; private: diff --git a/huawei/huaweifusionsolardiscovery.cpp b/huawei/huaweifusionsolardiscovery.cpp index 07cfaf8..f27d06e 100644 --- a/huawei/huaweifusionsolardiscovery.cpp +++ b/huawei/huaweifusionsolardiscovery.cpp @@ -51,7 +51,7 @@ void HuaweiFusionSolarDiscovery::startDiscovery() checkNetworkDevice(networkDeviceInfo); } - // Imedialty check any new device gets discovered + // Immedialty check any new device gets discovered connect(discoveryReply, &NetworkDeviceDiscoveryReply::networkDeviceInfoAdded, this, &HuaweiFusionSolarDiscovery::checkNetworkDevice); // Check what might be left on finished diff --git a/huawei/integrationpluginhuawei.json b/huawei/integrationpluginhuawei.json index 8df9556..2441249 100644 --- a/huawei/integrationpluginhuawei.json +++ b/huawei/integrationpluginhuawei.json @@ -74,7 +74,7 @@ }, { "name": "huaweiRtuInverter", - "displayName": "Huawei FusionSolar Inverter ((Modbus RTU)", + "displayName": "Huawei FusionSolar Inverter (Modbus RTU)", "id": "77558007-5076-4ca6-bd46-169f215c3e29", "createMethods": ["discovery"], "interfaces": ["solarinverter", "connectable"], @@ -123,7 +123,7 @@ "type": "double", "unit": "Watt", "defaultValue": 0, - "cached": true + "cached": false }, { "id": "49b92919-301c-4ff7-ae63-0c1a2184e3f4", @@ -164,7 +164,7 @@ "type": "double", "unit": "Watt", "defaultValue": 0.00, - "cached": true + "cached": false }, { "id": "759554dd-74c5-4836-9792-96e02eb816f0", @@ -183,7 +183,8 @@ "displayNameEvent": "Total real energy imported changed", "type": "double", "unit": "KiloWattHour", - "defaultValue": 0.00 + "defaultValue": 0.00, + "cached": true }, { "id": "af48ff45-11ba-401e-a812-bb1db0896449",