Hello,
I have a Haier refrigerator (model HFW7819EWMP) and I have connected it to my Home assistant with your component. I have found some problems during the procces but I have fixed it modifying your code (but not maintaining the compatibility with old models). I write you to help to add compatibility with this kind of refrigerators, for sure it will be usefull to more people, and being selfish, for me is great if you add compatibility and I can update without patching my changes every time :)
I have prepared an image to help to understand the changes:
Now i will explain you all the changes that I had to do:
This model doesn’t have quickModeZ1 so I had an error in the core “pyhon”. I fixed it commenting in ref.py the “elif” where it checks this property. This is the log of the error in HA:
It was needed to be able to show the device info and to create the data archive
In files binary_sensor.py and switch.py quickModeZ1 is “Super Freeze” mode and “quickModeZ2” is “Super Cool” Mode. For sure it is an error and they are swaped in these files (in ref.py they are correct). So I have fixed it in both files:
This model has more doors and with diferent meaning that you had in the component. In your code you had this
In this model it is:
So I adapted the binary_sensor.py file:
HonBinarySensorEntityDescription(
key="doorStatusZ1",
name="Door1 Status Fridge",
device_class=BinarySensorDeviceClass.DOOR,
icon="mdi:fridge-top",
on_value=1,
translation_key="fridge_door",
),
HonBinarySensorEntityDescription(
key="door2StatusZ1",
name="Door2 Status Fridge",
icon="mdi:fridge-top",
device_class=BinarySensorDeviceClass.DOOR,
on_value=1,
translation_key="fridge_door",
),
HonBinarySensorEntityDescription(
key="doorStatusZ2",
name="Door1 Status Freezer",
icon="mdi:fridge-bottom",
device_class=BinarySensorDeviceClass.DOOR,
on_value=1,
translation_key="freezer_door",
),
HonBinarySensorEntityDescription(
key="door2StatusZ2",
name="Door2 Status Freezer",
icon="mdi:fridge-bottom",
device_class=BinarySensorDeviceClass.DOOR,
on_value=1,
translation_key="freezer_door",
),
This model has a new sensor with the Humidity of one box of the fridge. I added it…
sensor.py
I attach the files modified by my (only the "hon" component files, not the ref.py of pyhon) and the ref_581.zip with the data extracted by the plugin.
files_patched.zipref_571.zip
Hello, I have a Haier refrigerator (model HFW7819EWMP) and I have connected it to my Home assistant with your component. I have found some problems during the procces but I have fixed it modifying your code (but not maintaining the compatibility with old models). I write you to help to add compatibility with this kind of refrigerators, for sure it will be usefull to more people, and being selfish, for me is great if you add compatibility and I can update without patching my changes every time :)
I have prepared an image to help to understand the changes:
Now i will explain you all the changes that I had to do:
This model doesn’t have quickModeZ1 so I had an error in the core “pyhon”. I fixed it commenting in ref.py the “elif” where it checks this property. This is the log of the error in HA: It was needed to be able to show the device info and to create the data archive
In files binary_sensor.py and switch.py quickModeZ1 is “Super Freeze” mode and “quickModeZ2” is “Super Cool” Mode. For sure it is an error and they are swaped in these files (in ref.py they are correct). So I have fixed it in both files:
This model has more doors and with diferent meaning that you had in the component. In your code you had this In this model it is: So I adapted the binary_sensor.py file:
This model has a new sensor with the Humidity of one box of the fridge. I added it… sensor.py
const.py
en.json
es.json
I attach the files modified by my (only the "hon" component files, not the ref.py of pyhon) and the ref_581.zip with the data extracted by the plugin. files_patched.zip ref_571.zip