Open euhkah opened 3 years ago
Okay ! the entity appears! (I changed the entity area, and it works!)
I can change the temperature setpoint value, everything doesn't seem to be working yet. In the logs (see previous message), the current temperature is displayed correctly. But lovelace shows 50 degrees and setpoint at 16, when it's at 24 (I can change). "offset" problem ?
(I tried with the 2 versions of haier.h/haierv2.h)
Hello @euhkah,
Please clarify how did you manage to change the entity area, if the entity doesn't appear anywhere, either on Lovelace screen or on the entities list. I have the same problem here as you did. I have no clue how to retrieve any haier AC sensor values/states to display them in HA dashboard. But I see them recurrently changing in ESPHome logs while pressing buttons on my haier AC remote control. (ESPHome version: 2021.8.2)
Shouldn't have I mqtt sever connection (at least IP, user, password, or whatever..) defined somewhere to read my haier device? If so, then where to define them? In my_haier.yaml edited in ESPHome UI? In haierv2.h edited in the external tool?
Can you guide me, please?
Hi, sorry, I've been out several months now.
I guess you installed the ESPHome integration, right? (Configuration->Integrations -> ESPHome)
Can you see your entity listed there? If not, clicking on 3 dots (system options), do you have checked the checkbox? So Home Assistant automatically add the entities when dicovered?
On ESPHome tab how do you see your device? Is it green or red?
There is not much else of configuration there...
@Krzysztonek there is no need of mqtt connection as it is an integration, everything should be prepared...
Let me know the details and let's hope I can help you with that.
Thank you so much, @albetaCOM for your kind advice. I should be shame, because I was seeking some support from GitHub Community but simply I had totally wrong ESPHome integration defined in my HA. I was not aware that ESPHome should not be only installed on HA server, but also should be configured for each ESP8266 device separately. It was my pitiful human error. However, this is my first experience with ESP and also my first contribution to the GitHub Community. The first pancake is always spoiled! ;)
So, all 3 Haier Tundra devices work perfectly under ESP8266. The only issue is on Haier Flexis Plus device, visible on the bottom-right of the below screen (AC Salon). This AC is recognizable by HA but not controllable from the dashboard:
Seems Haier Flexis needs different software installed on ESP8266, I have to dive more deeply to find the solution.
Thank you again for your priceless time and for your willingness to help!
Hi @Krzysztonek you are very welcome!
Indeed it seems the 3rd haier has another protocol. If you want to play a little bit with it, you can start by changing the temperature with your remote control and look at the logs to see which byte has changed on the logs (array of byte that appears after Readed message ALBA: and then go on like this until you have all functionality bytes identified.
Once you have that we'll have the knowledge to decode the status, we'll have still missing the knowledge to control the AC (if it is different aswell) for that we would need to sniff the communication between your original wifi dongle and the AC unit with docklight for example.
But first things first, I would start up by trying to decode the status as you don't have to change the setup, just change the setpoint with the remote control and capture the logs.
Let me know if you try it and if I can help you with any of that.
Hi @albetaCOM :) I just did the homework you've requested. Here are the results of changing the setpoint of my Haier Flexis Plus, using remote control: Based on the above table I'm assuming, that the temperature setpoint is being stored on byte #35. The checksum is on byte #36. I was changing the setpoint from 30 to 16 while byte #34 was being changed from 14 to 0. I also noticed that byte #15 displays one of two values: 47 or 48. This is unclear to me what might be a trigger for changing this byte... Or maybe byte #15 doesn't matter at this stage, who knows ;)
Please let me know what next steps have to be done?
BTW: You became a father... Truly Congrats!
Good morning @Krzysztonek, nice work!
It seems byte 15 is the current temperature (multiplied by 2).
I created a HaierFlexisPlus.h file so you can try with this one, but we still have to decode all the other parameters such as:
Let me know if with this new file at least the current temp and the setpoint are suportted in Haier Flexis Plus.
A Very Good Evening, @albetaCOM :)
I don't even dare to ask for your support again to properly decode all data. First, please let me know how should I prepare those data to be more readable and useful for your convenience. I will do whatever you need but please let me know your expectations on this matter. I know you're a very busy father. Please take your time, no hurry :) Every day we are closer and closer to the final shape of the *.h file, anyway.
Hi @Krzysztonek, FYI: I cannot open file with the link you've provided (404)
@Krzysztonek me neither
Hi @albetaCOM :) I just did the homework you've requested. Here are the results of changing the setpoint of my Haier Flexis Plus, using remote control: Based on the above table I'm assuming, that the temperature setpoint is being stored on byte #35. The checksum is on byte #36. I was changing the setpoint from 30 to 16 while byte #34 was being changed from 14 to 0. I also noticed that byte #15 displays one of two values: 47 or 48. This is unclear to me what might be a trigger for changing this byte... Or maybe byte #15 doesn't matter at this stage, who knows ;)
Please let me know what next steps have to be done?
BTW: You became a father... Truly Congrats!
@Krzysztonek not a father, a mother, and for the 3rd time!! :)
Deeply sorry, Guys!
It was my bad. Unintentionally I set this file as private. Already changed to public. To get the file please, try this link. Now it should work I believe.
@albetaCOM , I don't know why I assumed you are not a woman... Shame on, me. Apologize! 🌹
Deeply sorry, Guys!
It was my bad. Unintentionally I set this file as private. Already changed to public. To get the file please, try this link. Now it should work I believe.
@albetaCOM , I don't know why I assumed you are not a woman... Shame on, me. Apologize! 🌹
@Krzysztonek , Could you put the data on an excel where each row is the new functionality, something like this
Like this I guess it would be much easier to keep track of the byte changes...
@Krzysztonek , Could you put the data on an excel where each row is the new functionality, something like this
Like this I guess it would be much easier to keep track of the byte changes...
@albetaCOM
I've just uploaded Haier Flexis Plus Commands file. Would you be so kind to check if this is what may help?
Hi @Krzysztonek I've been busy...
Yes it is perfect. I will analyze it when I have time. In parallel you can also try to decode it yourself checking the bytes that change..
I'll come back to you as soon as I have something.
Dear @albetaCOM, How are you? How is your newly born child? I tried to decode those magical bytes and I even did some observations when comparing their values before and after a particular command has been triggered on the Haier remote.
FIRST: Unfortunately, this is not a matter of a single byte changing its value, since I observed that from 2 to even 7 bytes change their values at the same time, when executing one single command. This is what I discovered:
SECOND: I'm not a programmer, having no clue how to use that information and how to convert it into the FlexisHaier.h code.
I'm fully aware that it might be tricky, but maybe you would be able to find some spare time to help me or at least give me some hints on how to move things forward, please? ❤️
Dear @albetaCOM , Any news from you, please? I'm stuck...
Hello, I just saw that I never replied, I can give you my config file, without promising you that it works, but it works for me (I haven't done the last update). Haierv2.zip config.txt
I hope this will help you !
Hi, @euhkah Does this .h file support Haier Flexis Plus model or is it generic, suitable for less demanding Haier models?
I have a Haier Geos
Hi @Krzysztonek,
I just commited a change on HierFlexisPlus.h file to be able to update and set purify status correctly.
Can you try it?
The following commands I am guessing are not working properly, right?
To know if we have to work on the status decoding or/and the control decoding:
Thanks and sorry for the delay, it's been a very busy year!!
...
Hi @albetaCOM ,
Thank you for your response :) Unfortunately, after uploading a new firmware.bin (compiled with this updated HaierFlexisPlus.h file), I'm not able to run my Flexis Plus AC. The Flexis Plus AC card looks as follows:
As you can see, there is no switch-on button visible/available. While clicking any other visible button (heat/cool/dry/fan/auto), the device also doesn't react. It applies to my Haier Flexis Plus device only.
On the other hand, all my Haier Tundra devices (with Haierv2.h file compiled) work perfectly. To compare both AC models, please, see the below card for Haier Tundra:
@albetaCOM , have I done anything wrong? Or maybe this version of HaierFlexisPlus.h file doesn't support my model? What do you want me to do to have this device integrated with HA?
Hello, I have the device, but not the entity in ESPHome v1.19.2... (I never tried with a previous version) The logs return the correct information, without errors
[08:32:19][D][Haier:372]: POLL: 255 255 10 64 0 0 0 0 0 1 77 1 153 179 180 [08:32:19][D][Haier:411]: Readed message ALBA: 255 255 42 64 0 0 0 0 0 2 109 1 8 0 3 0 2 0 0 0 0 0 48 0 86 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 110 240 30 [08:32:19][D][climate:377]: 'Haier' - Sending state: [08:32:19][D][climate:380]: Mode: OFF [08:32:19][D][climate:397]: Swing Mode: OFF [08:32:19][D][climate:400]: Current Temperature: 24.00°C [08:32:19][D][climate:406]: Target Temperature: 24.00°C
but impossible to display the information in lovelace, and modify them