-
-
Notifications
You must be signed in to change notification settings - Fork 89
Time of Use control
By using the huawei_solar.set_tou_periods
service you can control the Time of Use periods for your battery.
The GUI is straightforward, and looks a lot like the huawei_solar.set_fixed_charge_periods
and the settings for Capacity control.
You must select a battery device, obviously, and provide the TOU intervals. Calling this service, completely replaces the current TOU settings for the battery, so you must include all the values you want.
You use one line for each period that you want to set, using the format <start time>-<end time>/<days effective>/(+/-)
, where <days effective>
are set by using number 1 through 7 with 1=Monday and 7=Sunday, and where +
indicates a charge period, and -
a discharge period.
For example, to set discharge periods from midnight to 3, then again from 6 to 14, and from 17 to midnight, with a charging period from 5-6 in the morning, for a LUNA-2000 battery, use:
00:00-03:00/1234567/-
05:00-06:00/1234567/+
06:00-14:00/1234567/-
17:00-23:59/1234567/-
Note how the last time limit is 23:59 -- some users have reported that setting this to 00:00 will return an "unknown error".
Also note, that when no TOU period is set, your battery may still be charged by surplus PV energy, but will not charge from AC, nor discharge to support your power usage.
Also note that the example is contrived, but could be e.g. for charging electric cars from 3-6, ensuring a minimum SOC for the battery at 6, and another "non-use" period from 14-17, before a peak electricity cost period from e.g. 17-21.
It is also possible to set these values through the FusionSolar app ('Devices' -> 'Connected devices' -> 'Dongle' -> Three dots '...' in upper right corner -> 'Parameter settings').
As the refresh rate for setting parameters is 5 minutes, it will take up to 5 minutes for changes done via this way to show up in Home Assistant.
Some users have reported that changing the settings in Home Assistant will not show up in FusionSolar.