-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
[Bug]: Emma: Inverter and battery configuration registers unavailable #943
Comments
I have no EMMA device, so I cannot easily debug this. I need someone to compile me a list of entities which are incompatible with an EMMA device. Please follow these steps:
Continue enabling entities and forcing an update until you see that all the entities become unavailable. If that is the case, add the entity to the list of incompatible entities. Disable the incompatible entity and continue enabling the next entity to check. Once I receive this list, I will be able to remove those incompatible entities from the integration. |
Thank you for pointing me in this direction. After disabling the configuration entities and re-enabling them one by one the following two lead to all others becoming unavailable:
I'm not quite sure, if this is a generic problem with the EMMA device itself or its configuration, e.g storage_charge_from_grid_function becoming unavailable if storage_working_mode_settings==adaptive or storage_discharging_cutoff_capacity becoming unavailable as storage_backup_power_state_of_charge takes precedence. |
@wlcrs Hi again :) 2025-02-14 21:09:25.229 DEBUG (MainThread) [huawei_solar.bridge] Storage capacity control as it is not supported by slave 123 home-assistant_huawei_solar_2025-02-14T19-18-13.153Z.log
My personal theory this is related to "Elevated permissions", all this entries are usually available with admin rights and since Emma ignores the authenitcation .... entires are detected but unavailable. Just a guess. 2025-02-14 21:31:31.033 ERROR (MainThread) [pymodbus.logging] Exception response 131 / 0 |
Hi again, As to why the battery entities influence some inverter entities: I guess a generic check for write permissions may go wrong, when an expected register of the battery is not writable as intended, thus disabling the "write_permission" for the entire device, including the inverter as it is the parent device. Our errors do not seem to be the same, heres a screenshot from my current (working) battery entities for comparison: When enabling End-of-discharge SOC and Charge from grid, all configuration entities in the battery and the parent inverter become available, the log showing errors in reading register 47954 or 47955 respectively. If I am interpreting https://github.com/wlcrs/huawei-solar-lib/blob/bb22046de7554798f37890aa37bc1f6efef633a0/src/huawei_solar/registers.py#L1392 right, the register for "Charge from Grid" should be 47087 (STORAGE_CHARGE_FROM_GRID_FUNCTION), so I´m wondering why I do not get an error containing this register. |
Without eelevated permissions I have the same errors.
Our lregisters do not match cause you have Map0 with S1 and I"m running L1
with S0.
I"ve enabled 3xcess and Working mode... dead
With them off ... dead... only if I enable elevTed permissions they work.
As I said Map0 doesn"t work as L1. Also L1 always required elevated
permissions for writing some registers.
Cheers
Sent from Gmail Mobile
…On Mon, Feb 17, 2025 at 18:06 delefant ***@***.***> wrote:
Hi again,
@dragosmd <https://github.com/dragosmd> Thanks for your reply.
As far as I can tell, the configuration entries only become available when
"Elevated permissions" are set. According to wlcrs/huawei-solar-lib@
27dfdb4
<wlcrs/huawei-solar-lib@27dfdb4>
EMMA should always have write access, which does seem to be the case, as
both the inverter and the subordinate battery do not throw error messages,
when changing (available) configuration parameters.
As to why the battery entities influence some inverter entities: I guess a
generic check for write permissions may go wrong, when an expected register
of the battery is not writable as intended, thus disabling the
"write_permission" for the entire device, including the inverter as it is
the parent device.
Our errors do not seem to be the same, heres a screenshot from my current
(working) battery entities for comparison:
grafik.png (view on web)
<https://github.com/user-attachments/assets/321e7949-f3f9-410c-8bfc-5dc08bf9c024>
When enabling End-of-discharge SOC and Charge from grid, all configuration
entities in the battery and the parent inverter become available, the log
showing errors in reading register 47954 or 47955 respectively.
If I am interpreting
https://github.com/wlcrs/huawei-solar-lib/blob/bb22046de7554798f37890aa37bc1f6efef633a0/src/huawei_solar/registers.py#L1392
right, the register for "Charge from Grid" should be 47087
(STORAGE_CHARGE_FROM_GRID_FUNCTION), so I´m wondering why I do not get an
error containing this register.
I could not find a register for "End-of-discharge SOC", but functionally,
47102 (STORAGE_BACKUP_POWER_STATE_OF_CHARGE) which I assume is used for
"Backup Power SOC" seems almost the same.
—
Reply to this email directly, view it on GitHub
<#943 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM3I5AGUGG4DV2VQB6N5LWL2QICJXAVCNFSM6AAAAABW3FNVRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTGU2DCMJSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: delefant]*delefant* left a comment (wlcrs/huawei_solar#943)
<#943 (comment)>
Hi again,
@dragosmd <https://github.com/dragosmd> Thanks for your reply.
As far as I can tell, the configuration entries only become available when
"Elevated permissions" are set. According to wlcrs/huawei-solar-lib@
27dfdb4
<wlcrs/huawei-solar-lib@27dfdb4>
EMMA should always have write access, which does seem to be the case, as
both the inverter and the subordinate battery do not throw error messages,
when changing (available) configuration parameters.
As to why the battery entities influence some inverter entities: I guess a
generic check for write permissions may go wrong, when an expected register
of the battery is not writable as intended, thus disabling the
"write_permission" for the entire device, including the inverter as it is
the parent device.
Our errors do not seem to be the same, heres a screenshot from my current
(working) battery entities for comparison:
grafik.png (view on web)
<https://github.com/user-attachments/assets/321e7949-f3f9-410c-8bfc-5dc08bf9c024>
When enabling End-of-discharge SOC and Charge from grid, all configuration
entities in the battery and the parent inverter become available, the log
showing errors in reading register 47954 or 47955 respectively.
If I am interpreting
https://github.com/wlcrs/huawei-solar-lib/blob/bb22046de7554798f37890aa37bc1f6efef633a0/src/huawei_solar/registers.py#L1392
right, the register for "Charge from Grid" should be 47087
(STORAGE_CHARGE_FROM_GRID_FUNCTION), so I´m wondering why I do not get an
error containing this register.
I could not find a register for "End-of-discharge SOC", but functionally,
47102 (STORAGE_BACKUP_POWER_STATE_OF_CHARGE) which I assume is used for
"Backup Power SOC" seems almost the same.
—
Reply to this email directly, view it on GitHub
<#943 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM3I5AGUGG4DV2VQB6N5LWL2QICJXAVCNFSM6AAAAABW3FNVRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTGU2DCMJSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Describe the issue
On the inverter with a battery connected, the write-enabled configuration registers of the inverter as well as the configuration and the per-module sensors of the battery entities instantly become unavailable.
On the other inverter without a connected battery, these write enabled registers such as MPPT-Scan On/Off are working.
Both inverters are accessed via modbus-tcp on an EMMA, connected via a Smartguard 63A-T0
Describe your Huawei Solar Setup
Inverter Type: 2 x SUN2000 10k-MAP0
Inverter Firmware version: V200R024C00SPC102
MBUS version: V100R001C00SPC339
Emma firmware version: SmartHEMS V100R024C10SPC100
Smartguard firmware version: V100R024C00SPC101
sDongle present: No
Power meter present: three phase
Optimizers Present: No
Battery: LUNA2000-S1 21kWh
Battery Firmware version: V200R023C10SPC115
Huawei Solar integration version: 1.5.4
Home Assistant version: 2025.2.1
How do you connect to the inverter?
Via the SDongle, wired connection
Upload your Diagnostics File
config_entry-huawei_solar-01JKN80S4DKY3DRAPMPTMSV2KN.json
Drag & Drop your Diagnostics File here.
Upload your relevant debug logs
Please confirm the following:
The text was updated successfully, but these errors were encountered: