Aircondition not allways on

Is this the correct way to switch on (or even change the temperature) aircon’s ?

alias: 'Switch : Airco living 20 graden'
sequence:
  - device_id: a14f058bae5fb4159978ec5c9cb58364
    domain: climate
    entity_id: climate.airco_living_links
    type: set_hvac_mode
    hvac_mode: heat
  - device_id: 0a5190bad4520620184413382194401a
    domain: climate
    entity_id: climate.airco_living_rechts
    type: set_hvac_mode
    hvac_mode: heat
  - service: climate.set_temperature
    target:
      device_id:
        - a14f058bae5fb4159978ec5c9cb58364
        - 0a5190bad4520620184413382194401a
    data:
      temperature: 20
mode: single

It works mostly wel, but sometimes there is only one aircon switched on.

Aircon’s (Samsung) were connected to Smartthings with a MIM-H04 module. When I do the automatisation with the Smartthings app, it allways works…