MiguelAngelLV / esphaier

ESP8266 code to connect to Haier Air Conditioner with wifi module support
127 stars 32 forks source link

Tuto ? #9

Closed euhkah closed 3 years ago

euhkah commented 3 years ago

Hello, Is it possible to do a tutorial ? with photos ? Because I don't know what a "Wemos D1 Mini" is... I would like to connect my HA with my AC Haier, but I feel like I have to be an engineer... The original module should be replaced by this mysterious Wemos ? I have an ESP32 module, I don't want to go through the Chinese cloud.

Thank you

MiguelAngelLV commented 3 years ago

Wemos D1 is a ESP8266 popular board, a previous version of ESP32. Is very cheap (4-5$).

Yes, you can reemplace the Haier module.

image

You flash the Wemos D1, use a old USB cable and solder in the connections and... "voilรก".

euhkah commented 3 years ago

Thank you !

I understood that it was necessary to install ESPHome, in supervisor, edit the yaml, copy the haier.h in the folder of ESPHome and install the firmware created with ESPHome...

It is surely obvious to you, it was not clear to me ๐Ÿ˜… (I thought that was something to do with Arduino or ESP Easy ...!)

I passed all the steps, and the logs give me the right values โ€‹โ€‹๐Ÿ˜Ž! I can not yet create an entity, I think it from the new version of ESPHome ? I find a device, but without an entity... ! "merci" ๐Ÿ˜‰

MiguelAngelLV commented 3 years ago

Oh sorry, I thought you used esphome before.

Check if you have 1.9.2 version of EspHome. The 1.9.1 have a bug and Home Assistant don't show the entity.

euhkah commented 3 years ago

Yes !

PLATFORMIO_D1_MINI par espressif Firmware: 1.19.2 (Jun 21 2021, 18:57:20)

maybe something else

MiguelAngelLV commented 3 years ago

Find in the Home Assistant core logs.

Maybe can get the error.

MiguelAngelLV commented 3 years ago

Did you deleted your comment?

Anyway.

2021-06-21 22:51:47 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/esphome/init.py", line 214, in on_login entity_infos, services = await cli.list_entities_services() File "/usr/local/lib/python3.8/site-packages/aioesphomeapi/client.py", line 137, in list_entities_services entities.append(cls(**kwargs)) File "", line 9, in init self.supported_modes = __attr_converter_supported_modes(supported_modes) File "/usr/local/lib/python3.8/site-packages/aioesphomeapi/model.py", line 245, in _convert_climate_modes return [ClimateMode(val) for val in value] File "/usr/local/lib/python3.8/site-packages/aioesphomeapi/model.py", line 245, in return [ClimateMode(val) for val in value] File "/usr/local/lib/python3.8/enum.py", line 339, in call return cls.new(cls, value) File "/usr/local/lib/python3.8/enum.py", line 662, in new raise ve_exc ValueError: 6 is not a valid ClimateMode

The "value error 6" is the error I get with 1.9.1 of esphome.

Maybe you can try delete haier folder in the ESPHome config folder in Hassio and reflash.

euhkah commented 3 years ago

Yes i deleted the comment, because i realized i was trying with albetaCOM's haier.h.

His gives me values in the logs (not in lovelace). Your version of hair.h doesn't work with my air conditioning. I think I have a newer air conditioner (but I'm not sure, I don't know how to find the firmware version). But I can't ask you to help me with his version.

Thank you for your help, I made a lot of progress, thanks to your availability.

MiguelAngelLV commented 3 years ago

Ok, no problem.

With any news, please, notify me if you think I can improve my version :)