From 2b7cf67945e374aad0f8fe33672fde8907184748 Mon Sep 17 00:00:00 2001 From: Philip Rosenberg-Watt Date: Thu, 18 Jul 2019 16:22:09 -0600 Subject: [PATCH] Add MQTT climate precision (#9896) * Add MQTT climate precision * Document default values * Add example config * Fix generate error --- source/_components/climate.mqtt.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/_components/climate.mqtt.markdown b/source/_components/climate.mqtt.markdown index a5f38468a43..4da6ff8fc70 100644 --- a/source/_components/climate.mqtt.markdown +++ b/source/_components/climate.mqtt.markdown @@ -139,6 +139,11 @@ temperature_high_state_topic: description: The MQTT topic to subscribe for changes in the target high temperature. If this is not set, the target high temperature works in optimistic mode (see below). required: false type: string +precision: + description: The desired precision for this device. Can be used to match your actual thermostat's precision. Supported values are `0.1`, `0.5` and `1.0`. + required: false + type: float + default: 0.1 for Celsius and 1.0 for Fahrenheit. fan_mode_command_topic: description: The MQTT topic to publish commands to change the fan mode. required: false @@ -318,4 +323,5 @@ climate: temperature_command_topic: "study/ac/temperature/set" fan_mode_command_topic: "study/ac/fan/set" swing_mode_command_topic: "study/ac/swing/set" + precision: 1.0 ```