Deprecate power_command_topic for MQTT climate (#25575)

This commit is contained in:
Jan Bouwhuis 2023-01-12 11:17:33 +01:00 committed by GitHub
parent 152654468a
commit a592ac1350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View File

@ -220,7 +220,7 @@ mode_command_template:
required: false required: false
type: template type: template
mode_command_topic: mode_command_topic:
description: The MQTT topic to publish commands to change the HVAC operation mode. description: The MQTT topic to publish commands to change the HVAC operation mode. Use with `mode_command_template` if you only want to publish the power state.
required: false required: false
type: string type: string
mode_state_template: mode_state_template:
@ -270,10 +270,6 @@ payload_on:
required: false required: false
type: string type: string
default: "ON" default: "ON"
power_command_topic:
description: The MQTT topic to publish commands to change the power state. This is useful if your device has a separate power toggle in addition to mode.
required: false
type: string
precision: 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`. 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 required: false
@ -449,6 +445,8 @@ Similarly for `*_command_topic`s, a template can be specified to render the outg
A full configuration example looks like the one below. A full configuration example looks like the one below.
{% raw %}
```yaml ```yaml
# Full example configuration.yaml entry # Full example configuration.yaml entry
mqtt: mqtt:
@ -469,11 +467,13 @@ mqtt:
- "eco" - "eco"
- "sleep" - "sleep"
- "activity" - "activity"
power_command_topic: "study/ac/power/set"
preset_mode_command_topic: "study/ac/preset_mode/set" preset_mode_command_topic: "study/ac/preset_mode/set"
mode_command_topic: "study/ac/mode/set" mode_command_topic: "study/ac/mode/set"
mode_command_template: "{{ value if value=="off" else "on" }}"
temperature_command_topic: "study/ac/temperature/set" temperature_command_topic: "study/ac/temperature/set"
fan_mode_command_topic: "study/ac/fan/set" fan_mode_command_topic: "study/ac/fan/set"
swing_mode_command_topic: "study/ac/swing/set" swing_mode_command_topic: "study/ac/swing/set"
precision: 1.0 precision: 1.0
``` ```
{% endraw %}

View File

@ -392,9 +392,6 @@ Configuration variable names in the discovery payload may be abbreviated to cons
'pl_unlk': 'payload_unlock', 'pl_unlk': 'payload_unlock',
'pos_clsd': 'position_closed', 'pos_clsd': 'position_closed',
'pos_open': 'position_open', 'pos_open': 'position_open',
'pow_cmd_t': 'power_command_topic',
'pow_stat_t': 'power_state_topic',
'pow_stat_tpl': 'power_state_template',
'pr_mode_cmd_t': 'preset_mode_command_topic', 'pr_mode_cmd_t': 'preset_mode_command_topic',
'pr_mode_cmd_tpl': 'preset_mode_command_template', 'pr_mode_cmd_tpl': 'preset_mode_command_template',
'pr_mode_stat_t': 'preset_mode_state_topic', 'pr_mode_stat_t': 'preset_mode_state_topic',