Update MQTT platforms that now support availablity (#4293)
To accompany changes from: https://github.com/home-assistant/home-assistant/pull/11336 Updated platforms: - Switch (previously supported) - Binary sensor (previously supported) - Cover (previously supported) - Light - JSON light - Template light - Sensor - Alarm control panel - Lock - HVAC - Fan - Vacuum
This commit is contained in:
parent
943b2e3119
commit
5d321e66f7
12 changed files with 1024 additions and 229 deletions
|
@ -28,34 +28,121 @@ climate:
|
|||
temperature_command_topic: /sensors/hvac_study/target_temp
|
||||
```
|
||||
|
||||
Configuration variables *except* for MQTT topics:
|
||||
|
||||
- **name** (*Required*): Name of MQTT HVAC.
|
||||
- **qos** (*Optional*): The maximum QoS level of the state topic. Default is `0` and will also be used to publishing messages.
|
||||
- **retain** (*Optional*): If the published message should have the retain flag on or not.
|
||||
- **send_if_off** (*Optional*): Set to `false` to suppress sending of all MQTT messages when the current mode is `Off`. Defaults to `true`.
|
||||
- **initial** (*Optional*): Set the initial target temperature. Defaults to 21 degrees.
|
||||
- **payload_on** (*Optional*): For MQTT topics that control an `on` / `off` value (e.g., `aux_command_topic`), set the value that should be sent for `on`. Defaults to 'ON'.
|
||||
- **payload_off** (*Optional*): For MQTT topics that control an `on` / `off` value (e.g., `aux_command_topic`), set the value that should be sent for `off`. Defaults to 'OFF'.
|
||||
|
||||
Configuration of the MQTT topics:
|
||||
|
||||
- **current_temperature_topic** (*Optional*): The MQTT topic on which to listen for the current temperature
|
||||
- **power_command_topic** (*Optional*): 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.
|
||||
- **mode_command_topic** (*Optional*): The MQTT topic to publish commands to change the HVAC operation mode.
|
||||
- **mode_state_topic** (*Optional*): The MQTT topic to subscribe for changes of the HVAC operation mode. If this is not set, the operation mode works in optimistic mode (see below).
|
||||
- **temperature_command_topic** (*Optional*): The MQTT topic to publish commands to change the target temperature.
|
||||
- **temperature_state_topic** (*Optional*): The MQTT topic to subscribe for changes in the target temperature. If this is not set, the target temperature works in optimistic mode (see below).
|
||||
- **fan_mode_command_topic** (*Optional*): The MQTT topic to publish commands to change the fan mode.
|
||||
- **fan_mode_state_topic** (*Optional*): The MQTT topic to subscribe for changes of the HVAC fan mode. If this is not set, the fan mode works in optimistic mode (see below).
|
||||
- **swing_mode_command_topic** (*Optional*): The MQTT topic to publish commands to change the swing mode.
|
||||
- **swing_mode_state_topic** (*Optional*): The MQTT topic to subscribe for changes of the HVAC swing mode. If this is not set, the swing mode works in optimistic mode (see below).
|
||||
- **away_mode_command_topic** (*Optional*): The MQTT topic to publish commands to change the away mode.
|
||||
- **away_mode_state_topic** (*Optional*): The MQTT topic to subscribe for changes of the HVAC away mode. If this is not set, the away mode works in optimistic mode (see below).
|
||||
- **hold_command_topic** (*Optional*): The MQTT topic to publish commands to change the hold mode.
|
||||
- **hold_state_topic** (*Optional*): The MQTT topic to subscribe for changes of the HVAC hold mode. If this is not set, the hold mode works in optimistic mode (see below).
|
||||
- **aux_command_topic** (*Optional*): The MQTT topic to publish commands to switch auxiliary heat.
|
||||
- **aux_state_topic** (*Optional*): The MQTT topic to subscribe for changes of the auxiliary heat mode. If this is not set, the auxiliary heat mode works in optimistic mode (see below).
|
||||
{% configuration %}
|
||||
name:
|
||||
description: The name of the HVAC.
|
||||
required: false
|
||||
type: string
|
||||
default: MQTT HVAC
|
||||
qos:
|
||||
description: The maximum QoS level to be used when receiving and publishing messages.
|
||||
required: false
|
||||
type: integer
|
||||
default: 0
|
||||
retain:
|
||||
description: Defines if published messages should have the retain flag set.
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
send_if_off:
|
||||
description: "Set to `false` to suppress sending of all MQTT messages when the current mode is `Off`."
|
||||
required: false
|
||||
type: boolean
|
||||
default: true
|
||||
initial:
|
||||
description: Set the initial target temperature.
|
||||
required: false
|
||||
type: number
|
||||
default: 21
|
||||
payload_on:
|
||||
description: The payload that represents enabled state.
|
||||
required: false
|
||||
type: string
|
||||
default: ON
|
||||
payload_off:
|
||||
description: The payload that represents disabled state.
|
||||
required: false
|
||||
type: string
|
||||
default: OFF
|
||||
availability_topic:
|
||||
description: The MQTT topic subscribed to receive availability (online/offline) updates.
|
||||
required: false
|
||||
type: string
|
||||
payload_available:
|
||||
description: The payload that represents the available state.
|
||||
required: false
|
||||
type: string
|
||||
default: online
|
||||
payload_not_available:
|
||||
description: The payload that represents the unavailable state.
|
||||
required: false
|
||||
type: string
|
||||
default: offline
|
||||
current_temperature_topic:
|
||||
description: The MQTT topic on which to listen for the current temperature.
|
||||
required: false
|
||||
type: string
|
||||
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
|
||||
mode_command_topic:
|
||||
description: The MQTT topic to publish commands to change the HVAC operation mode.
|
||||
required: false
|
||||
type: string
|
||||
mode_state_topic:
|
||||
description: The MQTT topic to subscribe for changes of the HVAC operation mode. If this is not set, the operation mode works in optimistic mode (see below).
|
||||
required: false
|
||||
type: string
|
||||
temperature_command_topic:
|
||||
description: The MQTT topic to publish commands to change the target temperature.
|
||||
required: false
|
||||
type: string
|
||||
temperature_state_topic:
|
||||
description: The MQTT topic to subscribe for changes in the target temperature. If this is not set, the target temperature works in optimistic mode (see below).
|
||||
required: false
|
||||
type: string
|
||||
fan_mode_command_topic:
|
||||
description: The MQTT topic to publish commands to change the fan mode.
|
||||
required: false
|
||||
type: string
|
||||
fan_mode_state_topic:
|
||||
description: The MQTT topic to subscribe for changes of the HVAC fan mode. If this is not set, the fan mode works in optimistic mode (see below).
|
||||
required: false
|
||||
type: string
|
||||
swing_mode_command_topic:
|
||||
description: The MQTT topic to publish commands to change the swing mode.
|
||||
required: false
|
||||
type: string
|
||||
swing_mode_state_topic:
|
||||
description: The MQTT topic to subscribe for changes of the HVAC swing mode. If this is not set, the swing mode works in optimistic mode (see below).
|
||||
required: false
|
||||
type: string
|
||||
away_mode_command_topic:
|
||||
description: The MQTT topic to publish commands to change the away mode.
|
||||
required: false
|
||||
type: string
|
||||
away_mode_state_topic:
|
||||
description: The MQTT topic to subscribe for changes of the HVAC away mode. If this is not set, the away mode works in optimistic mode (see below).
|
||||
required: false
|
||||
type: string
|
||||
hold_command_topic:
|
||||
description: The MQTT topic to publish commands to change the hold mode.
|
||||
required: false
|
||||
type: string
|
||||
hold_state_topic:
|
||||
description: The MQTT topic to subscribe for changes of the HVAC hold mode. If this is not set, the hold mode works in optimistic mode (see below).
|
||||
required: false
|
||||
type: string
|
||||
aux_command_topic:
|
||||
description: The MQTT topic to publish commands to switch auxiliary heat.
|
||||
required: false
|
||||
type: string
|
||||
aux_state_topic:
|
||||
description: The MQTT topic to subscribe for changes of the auxiliary heat mode. If this is not set, the auxiliary heat mode works in optimistic mode (see below).
|
||||
required: false
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
#### Optimistic mode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue