Updated to use Fox OpenApi v1 api call endpoints.
The OpenApi has deprecated some of the original v0 endpoint calls, {Inverter Device_Detail, Device_real-time data} - it is expected these will eventually be withdrawn in the future and this update changes the default behaviour to use the v1 api instead.
Note: I have been testing the v1 interface for several months with no problems; whilst there should be no reason for users to continue to use the v0 api endpoint, for legacy the addition of the flag Use_V1_Api: false in your platform config will force the integration to continue using v0 api calls (but they may eventually stop working in the future).
Added 2 variables for hybrid battery systems:
- Max Bat Charge Current (A)
- Max Bat Discharge Current (A)
These 2 sensors are provided by the battery management system (BMS) and show what the max battery charge or discharge current that is currently allowed by the BMS.
As battery SoC and lowest cell temperature changes these sensors will show how the BMS is adapting the charge and discharge power to cope with state of charge and temperature affects (specifically low temperature).
Whilst the OpenApi does not provide us with the lowest cell temperature, these sensors are the end result, i.e. what the maximum battery charge and discharge power that can be safely maintained. Your max battery charge / discharge power can be found by multiplying this max battery current by battery volts.