-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"I-Feel" support for "greeya" protocol #160
Comments
Dear @ToniA , is here any chance please to cooperate on this request please ? I have to find a solution because of dimensions of our apartment and presence of a child i have to use our climate device only via i-feel function. The "greeyac" commands are not accepted by coolexpert and "greeya" protocol misses this function. Thank you Toni ! Greetings ! |
Hi, sorry for not responding earlier. So this 'I-Feel' is a special command (temperature measurement) sent periodically by the remote controller? This would need a protocol decoding from a real remote controller, this would tell us the data that should be sent. See https://github.com/ToniA/Raw-IR-decoder-for-Arduino for instructions. I can't help much on decoding, as I don't have access to any Gree device. |
Hey Toni ! Thank you ! |
I don't have an I-feel AC, but for my setup I attached a DHT22-sensor to the ESP. I installed ESPeasy, so both heatpumpIR and the DHT-sensor are supported. The room-temperature is sent to my Domoticz controller. With this setup it is possible to control the AC based on the temperature in the room from Domoticz (or Home Assistant of course). |
Hi @Nateonas ! This is exactly what i would like to achieve. Im running HomeAssistant, so my goal is to build Ir remote on ESP32 with ESPHome and link my room temperature sensor to it. But for this, i have to activate/use the "I-Feel" option, which will measure the ambient temperature from AC remote controllers sensors (in this case from sensor linked to ESP32) otherwise the AC unit will use its internal ambient temp sensor. So the "I-Feel" is the way to tell AC to use the different sensor, and also to send/receive/behave regarding to measured values. Even if the device is equipped with WiFi module, you can activate "I-Feel" only via remote (i think it is self explaining...) and the remote should be placed in distance/position from where it can transmit every 2minutes the measured values to the AC. |
Would it be possible at all to implement functions for a specific model or brand? It might be easier to develop a separate ESP just to transmit the temperature readings to the AC. What setup did you have in mind? |
Hi @ronnieSVK ! I am using ESPHome with heatpumpir platform to send temperature data to my AC. I have specified the greeyac protocol, which actually does not match the protocol of my AC. It doesn't allow me to control the AC, but it transmits temperature data properly. But there is one problem - when I control the AC through the integration in my Home Assistant (WiFi), it disables the iFeel function and I have to reactivate it using the remote. |
Hi @Machaeon ! Thank you very much for you reply ! Thank you ! |
@ronnieSVK, Here is my yaml:
Here's something else that might be important: my AC accepts commands if I specify the greeyan protocol but it disables its WiFi adapter when it receives an IR command and I had to reconnect the AC to the network using the mobile app. |
Thank you @Machaeon once again ! However (if i good remeber) my code is quite the same, ill check it out in short and provide feedback. At least, we are now "two" with approx. same equipment and issue. If @ToniA provides reply for my questions about capturing Ir codes, maybe we can both cooperate to move things bit quicker. |
@Machaeon , feedback from me:
The result is, that ESPhome shows the temperature from HA tenperature sensor, but this value isnt transmitted to AC... Now im confused where is the issue, since my Ir Transmitter has LED diode on the board, which light up if command is transmitted. The LED behaves like this if i push command from ESPHome/HA to operate the AC (what again, doesnt work with greeyac for us). BUT, since the temperatures should be transmitted to AC unit every 2minutes, im expecting to "see" this via LED on Ir Transmitter. But this doesnt happen in my case. So im unsure now, if my unit didnt accept anything or the transmitter doesnt send the temp datas. May i please ask you to confirm/deny if your Transmitter has confirmation diode, if you see some activity in 2minute cycles ? Thank you ! |
@ronnieSVK, if you used the greeya protocol - this may be the source of the problem. In my config I am using greeyac and I see a blinking LED every two minutes |
@Machaeon sorry mate, this was just a typo in description. Im using the "greeyac" protocol of course. As addition, i see in ESP logs every 2minutes status about sending update for temperature, but the Ir LED doesnt light up, AC didnt capture the temperature :-/ |
@ronnieSVK, that's very strange. Can you show your config, maybe we can find a non-obvious problem? |
@Machaeon , yeah, im also confused :/
|
@ronnieSVK |
Thank you for suggestion. The issue was on my side... i was too quick to put expansion board under my ESP for easy wiring, and one of the connections was not stable. So now the issue with "2min interval" is solved, the LED lights up in this interval according to the logs. However my AC didnt capture those readings and temperatures. I can make tomorrow longer test, but i think those 10minutes today were enough. But i repeat it. In the meantime i have idea about reactivating "i-feel" option. I have Ir Receiver somewhere... If i would be able to capture the "I-Feel ON" command from the remote, then it would be possible to make automation in HA, where after each WiFi operated command would be with some delay the mentioned command sent. |
@ronnieSVK, after fixing the connection problems, it is very strange that the config works without the fixes I mentioned. In your config you created template sensor kitchen_air_condition_current_temeprature but did not use it because kitchen_air_condition_temperature_sensor was specified in the integration climate |
@Machaeon Everything looks fine, even the logs. Sadly what is missing is the temperature update in AC unit. It looks like my device didnt captures even the temps from "i-Feel" (my AC work normally with greeya, your device with greeyan, this makes for sure difference). Anyways, i try tomorrow to capture the function switch from Remote, at least it helps you to operate (somehow) the device. It is really very unlucky, that only one from the protocols is till now equipped with this feature |
Hello! Looks like I have bought similar AC. My AC remote's model on the back says YAC1FB9, but none of the provided protocols (generic, yan, yaa, yac) seems to work. I was able to decode signal from remote using this code - So It seems that it might actually be a new variant - YAP? This is the output I got from decoder - I-FEEL value seems to be updating accordingly and other values are decoded correctly.
I See that there is a recent commit in this repo regarding YAP protocol - fe4789d It seems that ESPHome has not yet implemented this code, as it's not allowing to define "greeyap" protocol. |
Hi @guntiss ! According to the remote controller model, it should be "yac", but yeah... who knows, as log wrote (looks like YAC or YAP protocol). My remote is marked "YAN" , but only command from protocol "greeya" are accepted. I try to decode the signal today, i have to check the documentations |
Hi @Machaeon ! |
Hi @ronnieSVK! I don't think it is possible to send I-Feel enable as a separate command. It is part of the data package. |
Yes, you are right... Im recently trying to dump the remote command, but sadly the "i-Feel" command isnt sent if remote is "off". If its on, then the command is sent with whole package. I dumped the code just with ESPHome Ir Receiver, maybe ToniA-s arduino/platformio workaround can divide those informations. Since as you wrote, from the "i-Feel" perspective are both protocols "greeyac and greeya" the same, the best workaround will be as you wrote. But ToniA doesnt respond too much here, in im "too short" to do it...I dont have knowledges to to deal with such things |
@ronnieSVK, although control via Home Assistant disables the I-Feel function, I found a compromise solution for controlling the AC temperature. I created a virtual sensor and input_number. The virtual sensor takes the room temperature value plus the input_number value (which can be positive or negative) and transmits them in I-Feel data format to the AC. So I don't change the target temperature via Home Assistant, I change the temperature that the AC sees via I-Feel and thus can influence the AC's output. |
@Machaeon , lets say it is a "solution" but it seems to me really "dirty". I think, at this point, capturing the "i-Feel" command separately could help us a lot. Sadly it is as you wrote, it is always part of command package from remote, since the button combination doesnt work for me with remote turned off. I have the YAN1F6 remote, where the "UP+Mode" button combination triggers the function. YAN1F1 version has dedicated "i-Feel" button, i dont know how this remote behaves |
@ronnieSVK, so far all we have is this, but I keep digging ) |
@Machaeon Yeah, i thought that :) However, i turn on AC unit once, and touch it once or twice after that. My issue only is because of size of our room, where i have to use deflector ahead of AC. This makes little turbulences and causes temperature misreadings of internal temp sensor. Anyways, it is better to measure ambient temp from my external room sensor, since it is located exactly "where it should be", but otherwise i had no issue with built-in sensor or beeps :) I dont want to disassemble the unit, otherwise i was thinking of replacing the internal temp sensor with ESP32 and send the temp readings from room sensor as we (would like to) do now... |
@ronnieSVK, I was forced to deal with this problem by the exact same situation with the deflector and I also thought about replacing the internal A/C sensor, until I found out that ESPHome can send data in iFeel format. |
@ronnieSVK, well, I did it. Added iFeel and WiFi enable for the greyaa protocol to the heatpumpir platform for ESPHome. |
hi @Machaeon ! Very nice result ! So it looks like, the solution for some protocols should be not too hard as expected. I dont think ToniA will do anything here, so the only workaround could be using it as external component and make some tests. The duplicated commands in HA was exactly what i was thinking about at the beginning :) Great results mate ! |
Hi @Machaeon , as i predicted, nothing changed in this topic sadly :( I would like to touch two topics, if you have time and possiblity, your answer would be really appreciated.
It works, but i have to care about this, since (as you know) 1C difference with AC is really noticeable. This difference is not constant, i mean 27 from sensor is 27 from iFeel too. But this 25/26C range is reported not correctly. Do you have also such issues ? I noticed, that you are using "0.5C" offset in your code. It is because of this please ?
Thank you very much ! |
Hi @ronnieSVK! I also encountered a temperature difference. This problem was solved by correcting the temperature in the sensor template by subtracting 0.5 degrees:
I don't know how to make an external component, but I can provide a link to an archive with the library code that can be used to replace the one downloaded when compiling the yaml: |
Thank you @Machaeon ! Ill check it out and try to make external component available |
Hi @Machaeon , There was some changes made in "heatpumpir" itself and included to new ESPHome release After update is AC capturing always "24C" temperature from "iFeel", no matter what the real (room sensor) temperature is. Also i found out, that the unit is now responding to some Ir commands, but not all (if you remember, till now it was only iFeel function/temp reporting that worked with greeya for me). For instance i can change temperature up (but not down) and i can turn off the device. It is strange, but the worse part is the corrupted iFeel function and additionally i have a feeling, that it messes also the WiFi connection. I think WiFi reset command is sent via Ir to the device. Did you encountered some of those issues also ? Thank you ! |
Hi @ronnieSVK! Haven't tried the update yet, but the latest version of heatpumpir had the timings changed, causing it to lose performance with my AC. In my modification of the library, I have reverted the timings back to those specified in the earlier version.
|
I rely entirely on PR's on the Gree protocol, I have no way to test them myself. If there's a bad change, could you please submit a PR to fix it? |
Hi @Machaeon ! Thanks once again ! |
Dear developer !
Firstly, thank you very much for your time and effort invested in this project !
I would like to kindly ask you to provide the upper mentioned "I-Feel" support for "greeya" protocol.
Sadly the "greeyac" commands are not registered by our AirCondition, however the factory remote controller is equipped with this function, which is proofed-tested, since we are using our device only with this option.
If i can provide any help in solving this request, just let me know !
Thank you
Best wishes
The text was updated successfully, but these errors were encountered: