Someone can figure out how to use that in HA??
There is a repo to communicate with native wifi controller, but that is NodeJS
It could be great!
Someone can figure out how to use that in HA??
There is a repo to communicate with native wifi controller, but that is NodeJS
It could be great!
Will be very useful also for me!
I would love it too. Iām currently trying to āparseā / dissect all this mess. It looks like this repository is the only help on the internetā¦ Also mailed Haier, I didnāt expect a response (havenāt got one).
It looks like not all models have the same response, or it might be that the response has changed in newer firmware (Haier Air Conditioner).
Currently have a hard time discovering which byte contains which information, and when does it change. Also because there is no documentation I have no idea if what I think I know is correct.
First need to know more about the fields, if that is clear (sort of) I want to change the states. And if that is clear, it needs to be ported from C# to python. And thenā¦ integrated into Home Assistant.
Not sure if all of this is feasible without help. I could provide a tool to connect to it and log some info, which MIGHT return some results if parsed correctly.
If anybody is interested, let me know. Itās currently programmed in C#, itās .NET Core, so it runs on Linux/Mac also.
Well, I now made the tool we can use to try to hopefully control it.
Please, anybody having a Haier airco, and the official wifi KZW-W002, use it, and preferably some programming knowledge, run it, try to help.
All info is in Readme / link above.
Thank you very much!! Iāll try and let you know!
I have Haier AC with built in WiFi.
Unfortunately I am not able to get any data with your script:
Started!
2020-07-20 18:27:13 | AsyncTcpClient_Message | Connecting to server |
2020-07-20 18:27:13 | Haier AC Connected!
2020-07-20 18:27:31 | AsyncTcpClient_Message | Connection closed remotely |
2020-07-20 18:27:31 | ClosedCallback, closedRemotely: True
2020-07-20 18:27:31 | AsyncTcpClient_Message | Connecting to server |
2020-07-20 18:27:31 | Haier AC Connected!
2020-07-20 18:27:49 | AsyncTcpClient_Message | Connection closed remotely |
2020-07-20 18:27:49 | ClosedCallback, closedRemotely: True
2020-07-20 18:27:49 | AsyncTcpClient_Message | Connecting to server |
2020-07-20 18:27:49 | Haier AC Connected!
2020-07-20 18:28:06 | AsyncTcpClient_Message | Connection closed remotely |
2020-07-20 18:28:06 | ClosedCallback, closedRemotely: True
2020-07-20 18:28:06 | AsyncTcpClient_Message | Connecting to server |
2020-07-20 18:28:06 | Haier AC Connected!
@Michal_Trawka Ahh, looks like I didnāt respond yet. Yes, the newest firmware (2.5.14) stops sending anythingā¦ So I need like a āhelloā of āinitā command, or maybe āpollingā is the same command.
Iāve already tried to calculate CRC16 low and high, but is wasnāt good, and didnāt have more time to check. It would be nice if it works with everything official (also).
I wrote a suggestion for better home automation integrations to Haier customer support. They redirected me to official GE Appliances site and encouraged to share my ideas. I have already created topic. I think they follow topics popularity, likes, comments. So letās request simple changes from Haier if you miss some features
https://cocreate.firstbuild.com/u/scrapid/idea/m95ckcru2bzgumi3gjgfzuxr9
Thank you scrapid!!
I added the comment to your topic
Also added a comment. But that Firstbuild thing canāt be from Haier/GE, or is it?
Iāve integrated Haier Tundra through Homebridge with use of Haieracbridge Platform (that unfortunately requires another bridge installed on Android devide) and integrated it with native Homebridge HomeKit support with HomeKit Controller on HA. Round and round it goes - but hereās result:
Iāve been able to get Haier AC fan into HomeAssistant using HomeBridge and HomeKit Controller integration, without any extra Android devices.
Hereās my setup:
The only issue I have atm is that I can only control 1 of my 2 ACs, I started discussion of that issue here: HomeKit Controller and HomeBridge - weird device detection bug?
How about installing multiple Homebridge instances?
Iām about to install 4 Haier Flairs and integrate them in HA!
I think itād be a lot easier on so many levels if plugin author added that literally 1 line change to the code
Iāve also started working on python version of the remote control. Iāve managed to translate base command functions, connect to the AC and send binary data to it, but I think Iām still missing something. Or maybe thereās some error in generated bytecode.
The point is that code is there, all we need to do is just translate it from JS (TypeScript to be precise) to Python and then wrap it into Hass integration. If thereās someone who knows TypeScript better than me around and interested in Haier integration, we could maybe chat and figure it out together.
I would really love to have this integration in HA. You are doing a great job! Unfortunately I donāt know any JS, so canāt help you with that.
Hope this wil be available soon!
Iāve checked the code lately, but couldnāt find the part when it connects to the AC. A year ago Iāve tried to make it work to connect to it, but couldnāt get it to work.
Did you find the part where it connects? ** Ahh, already found it **
haier-ac-remote/HaierAC.ts at master Ā· bstuff/haier-ac-remote (github.com)
Also mailed back to geappliances.com, and just got a reply that they donāt monitor this email anymoreā¦
Well, as I mentioned I started working on Python version.
Iāve uploaded what I have so far, and you can read about in what state it is here: GitHub - Nixellion/hass-haier-ac: Home Assistant Haier AC Custom integration
Iām not sure where to go from here or how to check if bytecode is correct. Ideally we need someone who can find a way to run original code in full and see what kind of bytecode it produces and compare it to Pythonās output to see if they match. Or maybe tell me how I can do that. Iām not good with TypeScript or JS (a bit better with JS and have a friend who knows it better than me, but thatās of no help at the moment), especially making code like that run for testing purposes.
Or maybe someone who can just spot a mistake right away, that should work as well of course
Iāve checked everything, and as far as I can rewrote it in C#, already had 80%. But I cannot get anything out of it
Also the orignal developer bstuff didnāt reply on any of the issues. I cannot believe it works for you. Do you also have the āKZW-W002ā Wi-Fi stick?
I did not say it works for me. I mean his original plugin for Homebridge does work. But my translation to Python does not. All I managed to do, apparently, is break some kind of command queue or whatnot So all I managed to do is establish a socket connection to AC (thatās the easy part) and then send āsomethingā to it that mostly seems to resemble what Homebridge plugin does, but itās missing something.
Iāll check the stick tomorrow.
Yes, I did mean the Homebridge, so we know it SHOULD work. So hopefully we have the same Wi-Fi stick and can get it to workā¦ Will await your reply