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
304 stars 103 forks source link

How to check in codition state of AC? #199

Closed majker17 closed 1 month ago

majker17 commented 1 month ago

Dears,

I spend some time to checking in Automatization HVAC mode or the state of AC (is off or on) but without any results. Please tell me what I did write wrong in my code?

condition: state entity_id: climate.pokoj105 state: "'on'" attribute: hvac-modes

My goal is to check what is the state of AC - if it is off please set some paraemters.

majker17 commented 1 month ago

Hello anyone help? I will be appreciated for the support.

RobHofmann commented 1 month ago

Can you share the full automation?

majker17 commented 1 month ago

This is my complete script:


alias: I_piętro_pokoj_105_ON description: "" trigger:


My goal is to control the themperature, status of the AC and set the some confitions, for example:

Similar examples for the winder time.

RobHofmann commented 1 month ago

I think you need to remove the attribute: hvac_mode

So something like

- condition: state
  entity_id: climate.pokoj_105
  state: heat
majker17 commented 1 month ago

Thank you - I will check and give the feedback.

majker17 commented 1 month ago

Thank you - everything works fine so I will close the topic.

In this case I need to read status.