HomeAssistant-GreeClimateComponent icon indicating copy to clipboard operation
HomeAssistant-GreeClimateComponent copied to clipboard

Integration should batch commands when possible

Open domialex opened this issue 3 months ago • 2 comments

I'm thinking it would be possible to batch commands sent to the climate entities. It would be beneficial when using HA scenes that can possibly send multiple states at the same time.

domialex avatar Sep 14 '25 15:09 domialex

Yeah that would be amazing actually. Right now i have a script that executes 4 commands sequentially.

RobHofmann avatar Sep 18 '25 10:09 RobHofmann

Came here for the same after noticing setting HVAC mode was no longer turning my mini split from off to on and I had to edit to add a climate.turn on.

My code to turn on my Gree, set the HVAC mode and set the temp.

          - if:
              - condition: state
                entity_id: climate.entrance_mini_split
                state: "off"
            then:
              - action: climate.turn_on
                metadata: {}
                data: {}
                target:
                  entity_id: climate.entrance_mini_split
            alias: If Entrance Mini Split is Off, Turn On
          - alias: Entrance Mini Split Mode
            if:
              - condition: not
                conditions:
                  - condition: state
                    entity_id: climate.entrance_mini_split
                    state: cool
            then:
              - action: climate.set_hvac_mode
                metadata: {}
                data:
                  hvac_mode: cool
                target:
                  entity_id: climate.entrance_mini_split
          - alias: Entrance Mini Split Temperature
            if:
              - condition: not
                conditions:
                  - condition: template
                    value_template: >-
                      {{ state_attr('climate.entrance_mini_split',
                      'temperature') == target_temp | int }}
            then:
              - action: climate.set_temperature
                metadata: {}
                data:
                  temperature: "{{ target_temp }}"
                target:
                  entity_id: climate.entrance_mini_split

For comparison sakes, my code to turn on my daikin, set HVAC mode and temp is as follows:

data:
  hvac_mode: cool
  temperature: "{{ target_temp }}"
target:
  entity_id: climate.daikinap97021
action: climate.set_temperature

MRobi1 avatar Sep 21 '25 22:09 MRobi1