suaveolent / ha-hoymiles-wifi

Home Assistant custom component for Hoymiles DTUs and the HMS-XXXXW-2T microinverters
MIT License
146 stars 9 forks source link

Parameter output power (persistent or non-persistent) #54

Open RetoLu opened 3 months ago

RetoLu commented 3 months ago

The output power of the inverter can be set via the openDTU with two different parameters: "permanent" (persistent) and "non-permanent" (non-persistent). There is only one parameter, is it permanent or non-permanent. If the permanent parameter is selected, the power is saved permanently in the inverter's internal EEPROM memory. For technical reasons, this type of memory has a limited number of write cycles. Would it be possible to have both parameters? See also under: https://martinteske-blog.de/home-assistant-nulleinspeisung-balkonkraftwerk/

Tomblin commented 3 months ago

I was wondering about the same and tried to follow it up in the code, I ended up on a constant value 8 added to a request indicating that this is a power limit change request in https://github.com/suaveolent/hoymiles-wifi/blob/f595e64303b8d15adc48a09b1a3caa2d06988fb4/hoymiles_wifi/const.py#L44

If I understand correctly it is derived from this https://github.com/henkwiedig/Hoymiles-DTU-Proto/blob/main/SetPowerLimit.py

But I'm none the wiser which limit is set, probably the transient one, but I don't knw

suaveolent commented 3 months ago

TL;DR: It sets it via the permanent parameter. As of this moment, there is no way we know of to only set it temporarily.

Long answer: The artcile you linked does not apply, since the W-series does not support openDTU. See also this dicussion: https://github.com/suaveolent/ha-hoymiles-wifi/issues/16

The parameters and requests I took in the const.py file are directly copied from the Android S-Miles apk.

Unfortuntatley I did not yet find a solution to only temporarily set the power limit.

suaveolent commented 3 months ago

Maybe the parameters CMD_ACTION_LIMIT_POWER_PFor CMD_ACTION_LIMIT_POWER_REACTIVE could help here, but I personally did not test it or find anything usefule in the code.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] commented 6 days ago

This issue is stale because it has been open for 30 days with no activity.