4 min read

Why the air conditioner stops heating before the room has warmed up: its sensor is under the ceiling

The AC reads the temperature high under the ceiling and stops early. An external sensor in the room and an automation in Home Assistant correct the set temperature by the difference between the two readings.

Level
Intermediate
Active time
45–60 minutes
Home Assistant required
Yes

You turned the AC on at 22 °C. It switches off, and the room is still cool. A common reason is that the temperature sensor is in the AC itself, high under the ceiling, where the warm air collects. It reads 22 °C long before you feel the same on the sofa.

What you will get

An external temperature sensor in the room at the height where you live, and an automation in Home Assistant that corrects the AC’s set temperature by the difference between the two readings. The AC keeps working on its own: we do not switch it with a plug, we give it a more realistic target.

The project is for heating mode. Cooling may have the opposite problem and is not described here.

What we need

You need a Zigbee hub or Home Assistant with a Zigbee adapter.

  • Setup time: about 45–60 minutes.
  • Observation: one to two days, until you judge whether the result is good.
  • Skills: you add a Zigbee sensor and paste YAML.

How it works

The AC reads current_temperature with its own sensor, and the external sensor gives the real temperature room. The difference ac - room is the AC’s error. The new set temperature is target + (ac - room): if the AC thinks it is 2 degrees warmer, and we want 22, we make it aim for 24.

Two things protect it from silly values: the values are limited to the AC’s minimum and maximum, and the automation works only when heat and when both temperatures are numbers.

Simeon’s Gree air conditioners join Home Assistant through the local gree integration. They report the current temperature, but their own sensor is not accurate, so his Versatile Thermostat works with the average of the room sensors instead. It is the same idea: don’t rely on the air conditioner’s own sensor.

Steps

  1. Place the sensor. Mount it at the height where you sit or sleep (for example 1–1.5 metres), away from a radiator, sun, a door and the AC’s air stream. See in Home Assistant the sensor.…_temperature of the sensor.
  2. Create the target. Settings → Devices & services → Helpers → Create helper → Number. Name “Target temperature”, min. 16, max. 26, step 0.5. The entity ID becomes input_number.room_target (example).
  3. Check the AC. Developer tools → States: climate.living_room_ac must have the attribute current_temperature. If it does not, the project does not work with this AC.
  4. Create the automation. Settings → Automations & scenes → Create automation → Edit in YAML. The entity IDs are examples.
alias: "AC: correction by the room temperature"
mode: single
triggers:
  - trigger: time_pattern
    minutes: "/10"
  - trigger: state
    entity_id: input_number.room_target
conditions:
  - condition: state
    entity_id: climate.living_room_ac
    state: heat
  - condition: template
    value_template: >
      {{ is_number(states('sensor.living_room_temperature'))
         and is_number(state_attr('climate.living_room_ac', 'current_temperature')) }}
actions:
  - variables:
      target: "{{ states('input_number.room_target') | float }}"
      ac: "{{ state_attr('climate.living_room_ac', 'current_temperature') | float }}"
      room: "{{ states('sensor.living_room_temperature') | float }}"
      lo: "{{ state_attr('climate.living_room_ac', 'min_temp') | float(16) }}"
      hi: "{{ state_attr('climate.living_room_ac', 'max_temp') | float(30) }}"
      new: "{{ [[target + (ac - room), lo] | max, hi] | min | round(0) }}"
  - action: climate.set_temperature
    target:
      entity_id: climate.living_room_ac
    data:
      temperature: "{{ new }}"

The automation starts every 10 minutes and when you change the target. round(0) is for ACs with a 1-degree step: if yours accepts 0.5, change it. 16 and 30 are fallback values in case the AC does not publish its own limits.

Checking the result

  • Difference. In Developer tools → States compare the current_temperature of the AC with the sensor in the room. The difference is the one we correct.
  • New target. After a run the AC has a new set temperature. See the automation’s Traces.
  • Result. After a day or two compare the sensor’s temperature with the target. If it deviates, check the sensor’s position.
  • Sensor without connection. When unavailable the automation does not start: the AC stays with the last set value.

If it does not work

  • The AC does not listen. Not all integrations allow changing the temperature. Try manually in Developer tools → Actions.
  • The temperature jumps. The interval is too short or the sensor is near the air stream. Increase the interval.
  • There is no current_temperature. The integration does not provide it: it cannot be used.
  • A correction loop is running. The correction changes together with the AC’s sensor. Check whether the values stabilise after an hour or two.

Limitations and switching off

  • The project drives the AC to a higher set temperature. It runs longer, and consumes more, until the room is warm: this is the goal, but check the bill.
  • One sensor shows one point in the room. If the room is large, the temperature is not the same everywhere.
  • The automation does not know when a window is open.
  • Switching off: switch off the automation and set the AC’s temperature back by hand.

Sources and verification status

The material follows the Home Assistant documentation, read on 22.11.2026. The topic is from Simeon’s list of ideas.

Need a hand?

We can set up and install everything in this project. In some regions we install it ourselves — ask us.

Contact us

Related projects

Temperature and humidity sensor SONOFF Zigbee SNZB-02P

13,90 €
View parts

What you need

Requires a Zigbee hub or Home Assistant with a Zigbee adapter.

Added to cart

Real Home Automations

Sign in to your account

With a code sent to your email

Continue with Google
or

By continuing, you accept the Terms and Conditions and the Privacy Policy.