From d76dac440a33f31a5228f5e7e8c147bc7612b4d4 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Tue, 25 Jul 2023 13:33:16 +0200 Subject: [PATCH] Add mqtt water_heater turn on/off support (#28319) Co-authored-by: Franck Nijhof --- source/_integrations/water_heater.mqtt.markdown | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/_integrations/water_heater.mqtt.markdown b/source/_integrations/water_heater.mqtt.markdown index 0cdf545e8a0..d68e9a0521f 100644 --- a/source/_integrations/water_heater.mqtt.markdown +++ b/source/_integrations/water_heater.mqtt.markdown @@ -158,7 +158,7 @@ mode_command_template: required: false type: template mode_command_topic: - description: The MQTT topic to publish commands to change the Water Heater operation mode. Use with `mode_command_template` if you only want to publish the power state. + description: The MQTT topic to publish commands to change the Water Heater operation mode. required: false type: string mode_state_template: @@ -208,6 +208,14 @@ payload_on: required: false type: string default: "ON" +power_command_template: + description: A template to render the value sent to the `power_command_topic` with. The `value` parameter is the payload set for `payload_on` or `payload_off`. + required: false + type: template +power_command_topic: + description: The MQTT topic to publish commands to change the water heater power state. Sends the payload configured with `payload_on` if the water heater is turned on via the `water_heater.turn_on`, or the payload configured with `payload_off` if the water heater is turned off via the `water_heater.turn_off` service. Note that `optimistic` mode is not supported through `water_heater.turn_on` and `water_heater.turn_off` services. When called, these services will send a power command to the device but will not optimistically update the state of the water heater. The water heater device should report its state back via `mode_state_topic`. + required: false + type: string precision: description: The desired precision for this device. Can be used to match your actual water heater's precision. Supported values are `0.1`, `0.5` and `1.0`. required: false