Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Huawei SmartGuard-63A- S0/AUS0 #499

Open
2 tasks done
Roving-Ronin opened this issue Oct 9, 2023 · 11 comments
Open
2 tasks done

[Feature Request]: Huawei SmartGuard-63A- S0/AUS0 #499

Roving-Ronin opened this issue Oct 9, 2023 · 11 comments
Labels
on-hold Don't close when stale

Comments

@Roving-Ronin
Copy link
Contributor

Describe your feature request

As per the EMMA feature request, this 'issue' is intended as a placeholder to allow the gathering of information and discussion re the forthcoming SmartGuard-63A- S0/AUS0 (also referred to as 'BackupBoxA' on Huawei Support Site), that will supercede the current BackupBox device, that provides automatic grid outage failover for LUNA ESS users, with the provision of a single protected phase.

As per the other new products, this will require the release of the modbus register definitions for this product, at which stage we can see if they are the same as the current BackupBox, potentially meaning WLCRS will be 'out of the box' compatible with the SmartGuard, or if additional effort would be required to support it. At which point review of the registers would need to be done and put forward to see if any provide any useful functionality, or not.

Documentation available currently:
BackupBoxA V100R023C10 Communication Matrix.pdf
BackupBoxA V100R023C10 Open Source Software Notice.docx
BackupBoxA V100R023C10 Release Notes.pdf
BackupBoxA V100R023C10 Security Maintenance Manual.pdf
BackupBoxA V100R023C10 Upgrade Guide.pdf

Note: From the communication matrix above, it already confirms that the SmartGuard connects via RS485 to the EMMA device, that in turn connects via RS485 to the inverter(s) / LUNA. Additionally the SmartGuard enclosure includes a DIN rail for mounting the EMMA inside of it (though you can install EMMA without a SmartGuard, for non LUNA users). From this it appears that in future installations of LUNA that want to operate in an off-grid/outage situation, will be expected to deploy Inverter(s)+LUNA ESS+EMMA+SmartGuard by default.

Proper usage

  • I confirm that this is not a bug report or support request
  • I confirm that this feature request is within the stated scope of the integration
@wlcrs wlcrs added the on-hold Don't close when stale label Oct 18, 2023
@Roving-Ronin
Copy link
Contributor Author

Some new information released at: https://solar.huawei.com/en/professionals/all-products/HUAWEI-SmartGuard

Instead of previously having to deploy a Backup-Box and a DDSU/DTSU-666H meter (and optional SmartLogger), the EMMA product is now included as part of the SmartGuard, providing 'Smart' functions and also the ability to shed load (via Shelly PM/Pro devices). Looking at the User Manual and the wiring diagrams, this however appears to remove the option of using CT's to monitor the power (as the standalone EMMA allows for), with the SmartGuard having the inverter, backed up and non backed up loads and a connection for the grid to be connected to it, Huawei designed it so the EMMA is intetgrated into these connections.

image

image

@menyhartda
Copy link

Describe your feature request

As per the EMMA feature request, this 'issue' is intended as a placeholder to allow the gathering of information and discussion re the forthcoming SmartGuard-63A- S0/AUS0 (also referred to as 'BackupBoxA' on Huawei Support Site), that will supercede the current BackupBox device, that provides automatic grid outage failover for LUNA ESS users, with the provision of a single protected phase.

As per the other new products, this will require the release of the modbus register definitions for this product, at which stage we can see if they are the same as the current BackupBox, potentially meaning WLCRS will be 'out of the box' compatible with the SmartGuard, or if additional effort would be required to support it. At which point review of the registers would need to be done and put forward to see if any provide any useful functionality, or not.

Documentation available currently: BackupBoxA V100R023C10 Communication Matrix.pdf BackupBoxA V100R023C10 Open Source Software Notice.docx BackupBoxA V100R023C10 Release Notes.pdf BackupBoxA V100R023C10 Security Maintenance Manual.pdf BackupBoxA V100R023C10 Upgrade Guide.pdf

Note: From the communication matrix above, it already confirms that the SmartGuard connects via RS485 to the EMMA device, that in turn connects via RS485 to the inverter(s) / LUNA. Additionally the SmartGuard enclosure includes a DIN rail for mounting the EMMA inside of it (though you can install EMMA without a SmartGuard, for non LUNA users). From this it appears that in future installations of LUNA that want to operate in an off-grid/outage situation, will be expected to deploy Inverter(s)+LUNA ESS+EMMA+SmartGuard by default.

Proper usage

* [x]  I confirm that this is not a bug report or support request

* [x]  I confirm that this feature request is within the stated scope of the integration

Hi there.

I just downloaded the latest MODBUS interface definiton and communication matrix for the EMMA 2.0 with Smartguard, also known in the Fusionsolar app as SmartHEMS. Maybe theese files can help. If needed i can help with testing as i have a system installed at my house. I never coded anything for HA so i'm a bit lost on that side.

SmartHEMS V100R024C00SPC100 MODBUS Interface Definitions.pdf
SmartHEMS V100R024C00SPC100 Communication Matrix.xlsx

Best Regards,

@Roving-Ronin
Copy link
Contributor Author

@menyhartda This refers to EMMA and firmware version V100R024C00SPC100, please have a read through the above thread, as I believe this is the version of firmware (and V100R024C00SPC102) that people have working already, based upon WLCRS Integration v1.5.1

@vschild
Copy link

vschild commented Feb 10, 2025

Hi! Anyone managed to get it working with the smartguard? When i try to install the integration i get this error:

Logger: custom_components.huawei_solar.config_flow
Source: custom_components/huawei_solar/config_flow.py:508
integration: Huawei Solar (documentation, issues)
First occurred: 5:33:42 PM (1 occurrences)
Last logged: 5:33:42 PM

Unexpected exception while connecting via ModbusTCP
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/config/custom_components/huawei_solar/config_flow.py", line 508, in async_step_setup_network
info = await validate_network_setup_auto_slave_discovery(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/config/custom_components/huawei_solar/config_flow.py", line 100, in validate_network_setup_auto_slave_discovery
bridge = await create_tcp_bridge(
^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/huawei_solar/bridge.py", line 659, in create_tcp_bridge
return await _create(await AsyncHuaweiSolar.create(host, port, slave_id), slave_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/huawei_solar/bridge.py", line 685, in _create
product_info = await HuaweiSolarProductInfo.retrieve_from_device(client, slave_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/huawei_solar/bridge.py", line 67, in retrieve_from_device
) = await client.get_multiple(
^^^^^^^^^^^^^^^^^^^^^^^^^^
...<8 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 292, in get_multiple
response = await self._read_registers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 422, in _read_registers
async with self._communication_lock():
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/contextlib.py", line 214, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 141, in _communication_lock
await asyncio.wait_for(
...<2 lines>...
)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 506, in wait_for
async with timeouts.timeout(timeout):
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit
raise TimeoutError from exc_val
TimeoutError

@Roving-Ronin
Copy link
Contributor Author

Initial support for EMMA has been added with the release of v1.5.x, however SmartGuard is a different product to EMMA, for which I believe support has NOT been added to WLCRS integration.
I believe that we are still pending finding the Modbus register details for SmartGuard, that would be required to allow adding support for SmartGuard.

As SmartGuard is the new version of the Backup Box, your install overall should be able to work with WLCRS, if connecting to the inverters via the sDongle / EMMA, albeit without the status / controls of the SmartGuard indicating being operating On/Off Grid etc.

@vschild
Copy link

vschild commented Feb 11, 2025

Thanks for your reply. I'm trying to connect to the emma that is incorporated in the Smartguard so maybe this Emma is another device and thats why it doesnt work.

@menyhartda
Copy link

menyhartda commented Feb 11, 2025 via email

@Roving-Ronin
Copy link
Contributor Author

The SmartGuard has an EMMA 'bundled' into it, but from a wiring perspective you should be connecting to the IP address / Modbus port of the EMMA. IMHO I would think it should work, just that WLCRS would not currently be able to 'understand' or know which Modbus registers to pot serially query, to talk with the BackupBox component of SmartGuard, so it could now if it's on grid power / grid offline etc..?

@vschild
Copy link

vschild commented Feb 12, 2025

I can confirm that it doesnt work (i expected the same as you). It doesnt connect.

@menyhartda
Copy link

menyhartda commented Feb 12, 2025 via email

@vschild
Copy link

vschild commented Feb 12, 2025

i did manage to connect via the IP address of the Smartguard. But the data
coming back (probably as only theese are programmed within the Modbus
registers) is only from the MAP0 inverter and the Batteries. Nothing in the
EMMA and it smartmeter and nothing on the SMARTGUARD. However the fact the
the system is on-gid or off grid can be seen in the Inverter registers.

On Wed, Feb 12, 2025 at 1:37 PM vschild @.***> wrote:
I can confirm that it doesnt work (i expected the same as you). It doesnt
connect.


Reply to this email directly, view it on GitHub
<#499 (comment)>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3GKFTIDAZ26Q22DZYS6XED2PMXANAVCNFSM6AAAAABUINIK7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJTGQ3DAMRRGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Daniel, Menyhart.

can you share how did you connect to the Emma? I followed the instructions of the wiki and continue getting the error of the log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-hold Don't close when stale
Projects
None yet
Development

No branches or pull requests

4 participants