From cd984667f3dfb9f2e6daab0a7a33a89012d67036 Mon Sep 17 00:00:00 2001 From: Will Adler Date: Sat, 15 Jul 2023 18:14:10 -0400 Subject: [PATCH] edit README note on external temperature sensor --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c11afbd..2fc57ea 100644 --- a/README.md +++ b/README.md @@ -388,9 +388,11 @@ climate: It is possible to use an external temperature sensor to tell the heat pump what the room temperature is, rather than relying on its internal temperature -sensor. You can do this by calling `set_remote_temperature(float temp)` on the -`mitsubishi_heatpump` object in a lambda. Note that you can call -`set_remote_temperature(0)` to switch back to the internal temperature sensor. +sensor. This is helpful if you want to make sure that a particular room, or part +of the room, reaches the desired temperature—rather than just the area near the +heat pump or the thermostat. You can do this by calling `set_remote_temperature(float temp)` +on the `mitsubishi_heatpump` object in a lambda. (If needed, you can call +`set_remote_temperature(0)` to switch back to the internal temperature sensor.) There are several ways you could make use of this functionality. One is to use a sensor automation: @@ -402,7 +404,7 @@ climate: id: hp sensor: - # You could use a Bluetooth temperature sensor + # You could use a Bluetooth temperature sensor as the source... - platform: atc_mithermometer mac_address: "XX:XX:XX:XX:XX:XX" temperature: @@ -411,7 +413,7 @@ sensor: then: - lambda: 'id(hp).set_remote_temperature(x);' - # Or you could use a HomeAssistant sensor + # ...or you could use a Home Assistant sensor as the source - platform: homeassistant name: "Temperature Sensor From Home Assistant" entity_id: sensor.temperature_sensor @@ -419,10 +421,17 @@ sensor: then: - lambda: 'id(hp).set_remote_temperature(x);' ``` +One issue that you might have here is that, after some amount of time with no update from the +external temperature sensor, the heat pump will revert back to its internal temperature. +You can prevent this by [adding a `heartbeat` filter](https://github.com/geoffdavis/esphome-mitsubishiheatpump/issues/31#issuecomment-1207115352) +to the sensor, which will keep reminding the heat pump of the external sensor value. -Alternatively you could define a +Also, if your external sensor is in Fahrenheit, you will have to [convert the value to Celsius](https://github.com/geoffdavis/esphome-mitsubishiheatpump/issues/31#issuecomment-1207115352). + + +Alternatively, you could define a [service](https://www.esphome.io/components/api.html#user-defined-services) -that HomeAssistant can call: +that Home Assistant can call: ```yaml api: