RobHofmann / HomeAssistant-GreeClimateComponent

Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.
GNU General Public License v3.0
280 stars 99 forks source link

Can you support the `Anti Direct Blowing Wind Shield` feature #162

Closed red3 closed 1 week ago

red3 commented 1 month ago

My gree air conditioner has a feature called Anti Direct Blowing Wind Shield, which is to prevent the cold wind blowing directly on people, I can control it by the Gree+ app. Can you support this feature? or if there a way to keep the previous status of this so called Anti Direct Blowing Wind Shield, cause every time I turn on this feature using the Gree+ app, and next time turn on the air conditioner using home assistant, the status of this feature just gone.

Thanks for your work.

toughvj commented 1 month ago

Can you provide device model?

red3 commented 1 month ago

@toughvj How can I find the device model? On the Gree+ app, it displayed as 云轩(it’s a Chinese name and I don’t know corresponding English version)

toughvj commented 1 month ago

Should be located somewhere on unit.

red3 commented 1 month ago

Does it begin with KFR-xxx(some numbers and alphabets)

toughvj commented 1 month ago

Yeah

red3 commented 1 month ago

It’s KFR-35GNhHc1BAt

toughvj commented 1 month ago

This is Gree unit?

red3 commented 1 month ago

yeah, why asking (I am not sure it’s a global or Chinese only)

toughvj commented 1 month ago

Does it looks like U Crown series?

red3 commented 1 month ago

I just googled the U Crown series and Yeah it looks like U Crown series.

red3 commented 1 month ago

the rectangular unit is placed high up on the wall , so the cold air from the ac might blow directly on people. Therefore, this unit comes with this feature.

toughvj commented 1 month ago

Have you tried to achieve this effect by setting some od fixed vertical swing position?

red3 commented 1 month ago

I'll try it later to see if this meet my needs

red3 commented 1 month ago

@toughvj after extract Gree+'s app data, I can see the unit support those commands: ["SetTem","Add0.5","TemRec","Mod","functype","WdSpd","Tur","Quiet","SwUpDn","SmartWind","SwingLfRig","Health","Lig","LigSen","AntiDirectBlow","UnmanedShutDown","SwhSlp","SlpMod","AppTimer","Pow","AssHt","TemSen"], and there is a command called AntiDirectBlow, and the status of AntiDirectBlow would looks like: {"AntiDirectBlow":1} or {"AntiDirectBlow":0}, 1 means open and 0 means off.

toughvj commented 1 month ago

You can try with attached file. Remember to add input_boolean helper and then add it to configuration of unit: anti_direct_blow: input_boolean. with given name climate.txt

please give any feedback.

red3 commented 1 month ago

Thanks for your help, I’ll try it later this week and will let you know if it works.

red3 commented 1 month ago

@toughvj it seemed that the attached file miss the {AntiDirectBlow} value of “p” para on line 320, it works well after correct this. I’m so glad you made this happen, will you consider publishing this?

toughvj commented 1 month ago

yes, I found this bug yesterday. This feature is in latest PR. waiting for @RobHofmann

red3 commented 1 month ago

👍Can’t wait to see this.

toughvj commented 1 month ago

@red3 can U try attached file, if this is working or throw any errors? climate.txt

red3 commented 1 month ago

I’ll try this tomorrow, this version makes any changes?

toughvj commented 1 month ago

yes, it changes the way a device is added to HA even if it is unplugged when HA starts. Rob reports errors and it works fine for me.

red3 commented 1 month ago

it's working fine on my side, and I can see the following logs: available(): Device is online

toughvj commented 1 week ago

solved with PR #179, can be closed