Closed Roving-Ronin closed 1 month ago
I think we need to implement products from iStore in two steps. As of now I have no information about the efficiency of LC0, MAP0, MB0 and the corresponding iStore products. So 1st step is to implement the iStore products which correspond to L1 and M1. 2nd I'll consider if it makes sense to incorporate the newer products with the efficiency calculations from the L1 and M1.
PS: This branch handles implementing products from iStore https://github.com/JensenNick/huawei_solar_pees/tree/alpha-022_support-for-istore
1) Add support for iStore inverters, that list the full capacity (W) in the name, i.e. 10000 (not 10K or 10KTL)
2) Add support for Huawei LC0 inverters, that list their capacity in the model name as 8K and 10K
3) Add support for Huawei MB0 inverters, that list their capacity in the model name as 10K, 12K, 15K, 17K, 20K or 25K.
4) Updated inverter_rated_power sensor to use 'set inverter_model =' that then references to sensor to query. This saves referring to the specific sensor 30 times in the state formula, as well as being able to update the sensor to refer to at one point, that updates the whole sensor.
5) Update inverter_model state string/formula to support newer model inverters, this regex will match (for example):
Huawei: SUN2000-5KTL-L0 SUN2000-6KTL-L1 SUN2000-8KTL-LC0 SUN2000-5KTL-M0 SUN2000-6KTL-M1 SUN2000-8KTL-M2 SUN2000-12KTL-M3 SUN2000-15K-MAP0 SUN2000-17K-MB0 iStore: IS-HYB-10000-1PH IS-HYB-15000-3PH