About This File
QuickApp to read the Alpha ESS SMILE Hi5 for HC3
This QuickApp is used to query the most important parameters of an Alpha ESS solar system. It reads directly from the inverter and therefore does not require an online connection. Remember: Only 1 connection can be established with most AlphaESS inverters. If you are already querying the values elsewhere, you will not be able to establish a connection via HC3.
Some important information:
After installation, only the parent device will be created.
You can now use your own icons for parent and child devices; these must be entered as a variable with the icon ID. As soon as the device is activated, these are then used when the ChildDevices are created.
Hint: you can use http://<hc3-ip-address>/api/icons to get a list of your icons and icon-id's.
The query and creation of ChilDevices remains inactive until the variable SDM_ACTIVE is set to true. This allows you to adjust the other parameters, which are also set on the "Variables" tab, as required. After SDM_ACTIVE has been set to true, the ChildDevices are created automatically.
Further ChildDevices can be added or removed by setting the "enabled" parameter to true or false in the LUA code under "ChildDevicesDetails".
Tip: If you make changes and save the QA file, make sure that you delete all variables on the "Variables" tab beforehand. Otherwise, the variable settings of your saved QA file will be used and the entry "SDM_ACTIVE = false" will probably not be present and the QA will immediately try to create ChildDevices and read in values.
Variables:
MODBUS_IP contains the IP address of the AlphaESS inverter
MODBUS_PORT is the standard port of the adapter, 502
UNIT_ID is the ID of the AlphaESS inverter (mostly 85)
INTERVALL defines the polling intervals in seconds
ICON_PARENT sets the ID of the icon to be used for the parent device
ICON_CHILDS sets the ID of the icon to be used for the child device
SDM_ACTIVE stops all processes if false and continues them if true.
Important: If ChildDevices are deleted using "enabled=false", the data stored for this ChildDevice up to that point is also deleted! If this is not desired, the device should be managed via the interface. I would not recommend reading all the parameters as the QuickApp has otherwise put too much load on the HC3 memory in my case.
Use at your own risk, I have written the device myself for my own purposes and the code can be used without any guarantee of completeness and correctness. If you don't want to take any risks, just leave it. The code is still subject to change.
Have fun!
AlphaESS.fqa