With the xiaomi.airp.cpa4, trying to use the card "Set fan level to ..." results in an error:
Cannot read properties of undefined (reading 'siid')
The fan speed on the xiaomi.airp.cpa4 is not a 3 level dropdown like on the card (and the zhimi.airp.vb4 that I also have and works fine), instead it's split into 15 increments (in the mi home app it's representing different room sizes)
For the xiaomi.airp.cpa4 I believe we need to use SIID 9, PIID 11 - favorite-level as outlined here
and this screenshot from the mihome app
Looking through the code, should I be adding favorite-level under mapping_cpa4? here
I can't quite find how to change the card display from a drop down to an integer
Any tips? I'll be happy to work on this and open a pull request
With the xiaomi.airp.cpa4, trying to use the card "Set fan level to ..." results in an error:
The fan speed on the
xiaomi.airp.cpa4
is not a 3 level dropdown like on the card (and thezhimi.airp.vb4
that I also have and works fine), instead it's split into 15 increments (in the mi home app it's representing different room sizes)For the
xiaomi.airp.cpa4
I believe we need to useSIID 9
,PIID 11
-favorite-level
as outlined hereand this screenshot from the mihome app
Looking through the code, should I be adding
favorite-level
undermapping_cpa4
? hereI can't quite find how to change the card display from a drop down to an integer
Any tips? I'll be happy to work on this and open a pull request