# ESPhome app including Haier (hOn based) AC Airconditioning

**URL:** <https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291>\
**Category:** Developers\
**Created:** [April 14, 2023, 6:57pm UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291 "2023-04-14T18:57:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priknr1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/priknr1/32/558_2.png) [@Priknr1](https://community.homey.app/u/Priknr1)\
**Post date:** [April 14, 2023, 6:57pm UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/1 "2023-04-14T18:57:06Z")

</div>

Hi All,

It has been a long time since I was last active here. In the early stages of homey I created some apps for z-wave devices. But along the way, I got other priorities.

Now I am biting into a new thing.

I have a Haier AC. There is no Haier app available yet.  
The wifi module is connected through USB and therefor easily replaced. The Haier ac’s consist of 2 types:

- Based on hOn
- Based on SmartAir

There is a piece of software called “ESPhome” that can be installed on a Wemos D1 mini.  
And can than be controlled by Home Assistent. But i don’t have that, i have a Homey ofcourse 😃  
Someone created a piece of ESPhome software which should connect the Haier hOn AC to Home assistent: [https://github.com/paveldn/haier-esphome](https://github.com/paveldn/haier-esphome)

But I dont want to control my AC with Home assistent (for I don’t have that), I want to control my AC with my Homey.

Fortunately, someone has started developping a Homey app for ESPhome devices.  
(which is than applied to the appstore by someone else without asking the developer!)  
[https://github.com/Inversion-NL/Homey-ESPhome](https://github.com/Inversion-NL/Homey-ESPhome)

So now my plan is to add the ESPhome device for Haier AC into that app.  
[https://github.com/priknr1/Homey-ESPhome](https://github.com/priknr1/Homey-ESPhome)

But, my programming skills for homey are quite rusty. I added a new device, and the app is compiling.  
I can fill in the IP and port for the ESPhome device, and it starts to communicate.  
But then I get the following error 7 times before a timout occurs:

> 2023-04-14 18:11:38 [ManagerDrivers] [Driver:esphome-haier\_ac] Error on device 192.168.1.119: TypeError: Cannot read property ‘deserializeBinary’ of undefined  
> at deserialize (/node\_modules/esphome-native-api/lib/utils/messages.js:90:52)  
> at Socket. (/node\_modules/esphome-native-api/lib/connection.js:26:34)  
> at Socket.emit (events.js:311:20)  
> at addChunk (\_stream\_readable.js:294:12)  
> at readableAddChunk (\_stream\_readable.js:275:11)  
> at Socket.Readable.push (\_stream\_readable.js:209:10)  
> at TCP.onStreamRead (internal/stream\_base\_commons.js:186:23)

Is this 7 times the same error on a retry, or 7 different errors?  
What could cause this error?  
Does it maybe have to do with unknown capibily names?

---

<div class="post-metadata">

**Author:** ![Robin\_van\_Kekem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_van_kekem/32/8187_2.png) [@Robin\_van\_Kekem](https://community.homey.app/u/Robin_van_Kekem)\
**Post date:** [August 7, 2023, 9:55am UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/2 "2023-08-07T09:55:39Z")

</div>

Baldhor has picked up the development of my app.  
With my permission, this time. In contrary to the other app which was in the app store and is now replaced.

> **[ESPhome](https://homey.app/en-us/app/nl.inversion.esphome/ESPhome/)**
>
> Control your ESP8266/ESP32 by simple configuration files.

Could you post the output of the device which is logged at line 34 in the driver.js here:  
[https://github.com/Baldhor/Homey-ESPhome-Enhanced/blob/main/drivers/esphome-device/driver.js#L34](https://github.com/Baldhor/Homey-ESPhome-Enhanced/blob/main/drivers/esphome-device/driver.js#L34)

---

<div class="post-metadata">

**Author:** ![Priknr1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/priknr1/32/558_2.png) [@Priknr1](https://community.homey.app/u/Priknr1)\
**Post date:** [May 15, 2024, 2:11pm UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/3 "2024-05-15T14:11:30Z")

</div>

Turns out the issue was in my Wemos board with the AC, not my connection from ESPhome to the wemos board.

I was able to connect and control my Haier Airco from homey now.

If anyone wants to do this, below is a summary of the steps.

- Buy a Wemos D1 Mini (ESP PCB for a few euros)
- Provide this with ESPhome firmware with settings for the Haier (for details see:  
[GitHub - paveldn/haier-esphome at experimental](https://github.com/paveldn/haier-esphome/tree/experimental))
- Make a connection for 5V, Gnd, Rx and Tx. (Details also in previous link)
- Remove any original WiFi module from the Haier Air Conditioner and install the Wemos module
- Install the ESPhome app on Homey
- Add the air conditioning to “Hardware devices” via the ESPhome app
- Add the air conditioning to “Virtual devices” via the ESPhome app
- Link the desired functions of the Hardware Device to the Virtual device

---

<div class="post-metadata">

**Author:** ![Bart\_Fokkens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bart_fokkens/32/80576_2.png) [@Bart\_Fokkens](https://community.homey.app/u/Bart_Fokkens)\
**Post date:** [June 11, 2025, 6:24am UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/4 "2025-06-11T06:24:31Z")

</div>

Hello priknr1,

I would like to get my haier ac in the homey app. Can you sell programmed wemos d1 mini devices with the right firmware already installed?

best regards,

---

<div class="post-metadata">

**Author:** ![Priknr1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/priknr1/32/558_2.png) [@Priknr1](https://community.homey.app/u/Priknr1)\
**Post date:** [June 11, 2025, 7:14am UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/5 "2025-06-11T07:14:22Z")

</div>

Problem with that is, it needs the WIFI SSID and Password in it, and I am not familiar enough with programming the wemos in a way that it would become Accesppoint where you could fill in the Credentials for your wifi yourself etc.

---

<div class="post-metadata">

**Author:** ![Bart\_Fokkens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bart_fokkens/32/80576_2.png) [@Bart\_Fokkens](https://community.homey.app/u/Bart_Fokkens)\
**Post date:** [June 13, 2025, 3:12pm UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/6 "2025-06-13T15:12:14Z")

</div>

That indeed is a problem. Thanks for thinking with me!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 14, 2025, 10:02pm UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/7 "2025-06-14T22:02:30Z")

</div>

When it can’t connect to your wifi, it should turn on AP mode.  
When you can’t find a wifi SSID to connect to, or when it just won’t connect:  
You can view and edit the yaml by connecting the board with a USB cable to a pc/laptop

> [@\[HOW-TO\]\[Pro\] Using ESPhome devices - no additional hardware](https://community.homey.app/t/how-to-pro-using-esphome-devices-no-additional-hardware/90258/1):
>
> #### First install and run ESPhome itself on your laptop/pc:
> 
> [Getting Started with ESPHome - ESPHome - Smart Home Made Simple](https://esphome.io/guides/getting_started_command_line)
> 
> Here’s my local ESPhome page:
> 
> > ![Screenshot from 2023-09-26 02-58-48](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/01b0036f4087110751045d36113832302fca2b81.png)

---

<div class="post-metadata">

**Author:** ![TimoSoof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timosoof/32/93406_2.png) [@TimoSoof](https://community.homey.app/u/TimoSoof)\
**Post date:** [April 17, 2026, 9:25am UTC](https://community.homey.app/t/esphome-app-including-haier-hon-based-ac-airconditioning/79291/8 "2026-04-17T09:25:48Z")

</div>

App for Haier airco

> **[Haier hOn | Homey](https://homey.app/nl-nl/app/com.haier.hon.airco/Haier-hOn/)**
>
> Slim Klimaatbeheer
