wlcrs / huawei_solar

Home Assistant integration for Huawei Solar inverters via Modbus
GNU Affero General Public License v3.0
556 stars 89 forks source link

[Feature Request]: EV charging drains LUNA2000 battery empty. #624

Closed johanvh83 closed 8 months ago

johanvh83 commented 8 months ago

Describe your feature request

I own a Huawei converter and LUNA2000 battery. Your integrations works already for months without any problem. Apologies! Recently I got a company eletrical vehicle (EV). At daytime the home battery is charged by the solar panels. I want to use the stored energy for my home usage and most preferable when I have to pay the most for the energy, so during day time. The charging of the EV is managed by the Engie Drive app. It starts the charging when the night - low tariff starts. In the area where I live in Belgium, it's 21:00. I realised that the EV drains quickly the home battery empty. As a result, the day after, I have to pay day high tarriff for my personnal home use! I did an investment into the home battery but due to the EV charging I don't get any profit! Is it possible to 'disable the discharge to the home battery' in order to keep the storaged energy till the morning after? The charging of my car should come from the grid, not from the home battery.

Proper usage

Roving-Ronin commented 8 months ago

@johanvh83 are you saying you use your LUNA battery during the day, when normally people are running of the solar panel output to power the house and also recharge the battery, because they used the battery overnight (when most countries charge higher prices for electricity) ?

If so, I think it would be best to look at the Huawei manual and refer to the Time of Use (TOU) settings, you can then configure the TOU scheduled (iirc I think you can have 5-6 dirrent time period you can manually define in the Huawei software).

johanvh83 commented 8 months ago

No, apologies if my post wasn't clear. No, I use the system as you describe. During the day, the battery is charged by the solar panel if the power consumption of the home is less compared to the produced solar energy. During daytime my home consumption is normally very low (approx 300 W).

Would the TOU setting solve my problem? The only thing I'd like to do is keep the stored energy in the home battery for my own home use instead of use the stored energy to charge the EV.

I guess TOU is used to charge the battery from the grid in nighttime and use the stored energy at daytime https://support.huawei.com/enterprise/en/doc/EDOC1100186676/e8d2e6db/tou-time-of-use-mode

Checked all HA services for the Huawei Solar integration but don't believe I'm able get the result I want

wlcrs commented 8 months ago

You can set the maximum discharge power to 0 to disable discharging.