I’m using a Xiaomi IR Blaster device to control my Tosot (Gree) AC device.
climate:
- platform: heatpumpir
protocol: greeyac
name: "Woonkamer airco"
horizontal_default: middle
vertical_default: auto
max_temperature: 30
min_temperature: 16
sensor: current_temperature
receiver_id: rcvr
Since the internal temperature sensor is quit inaccurate, I would like to use the current_temperature value from my wall mounted thermostat.
This feature is available on the ESPHome IR Remote Climate component:
The greeyac protocol supports a feature Gree calls “I-Feel”. The handheld remote control has a built-in temperature sensor and it will periodically transmit the temperature from this sensor to the AC unit. If a sensor is provided in the configuration with this model, the sensor’s temperature will be transmitted to the greeyac device in the same manner as the original remote controller.
For this I configured a home assistant sensor in my ESPHome configuration to get the current temperature value from my thermostat:
- platform: homeassistant
id: current_temperature
entity_id: climate.woonkamer
attribute: temperature
and whenever I use the IR component to control the AC, or when the value for climate.woonkamer.temperatue changes, the current temperature is send correctly:
14:49:17 [D] [climate:385] 'Woonkamer airco' - Sending state:
14:49:17 [D] [climate:388] Mode: HEAT
14:49:17 [D] [climate:393] Fan Mode: AUTO
14:49:17 [D] [climate:405] Swing Mode: OFF
14:49:17 [D] [climate:408] Current Temperature: 20.00°C
14:49:17 [D] [climate:414] Target Temperature: 17.00°C
The value however needs to be send to the AC via IR every few minutes (recommended interval: 2 minutes)
How often the temperature is transmitted is determined by the update_interval assigned to the sensor. Note that update_interval must be less than 10 minutes or the greeyac device will revert to using its own internal temperature sensor; a value of 2 minutes seems to work well. See Sensor Component for more information.
The platform: homeassistant sensor however does not support the property of update_interval.
How can I overcome this limitation and make the IR blaster send a temperature update every 2 minutes, even though the value did not change?