wlcrs / huawei_solar

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

[Feature Request]: Forcible Charge read register 47100 value to a sensor #731

Closed feserdel closed 3 months ago

feserdel commented 3 months ago

Describe your feature request

Currently Huawei allow read and control (write) Forcible Charge MODBUS register Address 47100.

image

But the integration only allows write via services (huawei_solar.forcible_charge and huawei_solar.forcible_charge_soc).

I have an automation to start forcible charge under certain circumstances (eg when energy is cheap at night), but is impossible to know when ends.

Also, is necessary to check if another forcible charge is ongoing before start new forcible charge cycle.

For this reason it will be good to read the state of forcible charge register to a sensor, and enable automation management.

Proper usage

wlcrs commented 3 months ago

Implemented in in v1.4.0. You can use the state attributes of the new sensor to retrieve different properties of the forcible (dis)charge function.

feserdel commented 3 months ago

Thank you!!