mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
MQTT humidifier config to integration key (#22829)
This commit is contained in:
parent
0f2777f579
commit
cfc7d9f805
@ -22,12 +22,32 @@ To enable MQTT humidifiers in your installation, add the following to your `conf
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
|
mqtt:
|
||||||
|
humidifier:
|
||||||
|
- command_topic: "bedroom_humidifier/on/set"
|
||||||
|
target_humidity_command_topic: "bedroom_humidifier/humidity/set"
|
||||||
|
```
|
||||||
|
|
||||||
|
<a id='new_format'></a>
|
||||||
|
|
||||||
|
{% details "Previous configuration format" %}
|
||||||
|
|
||||||
|
The configuration format of manual configured MQTT items has changed.
|
||||||
|
The old format that places configurations under the `light` platform key
|
||||||
|
should no longer be used and is deprecated.
|
||||||
|
|
||||||
|
The above example shows the new and modern way,
|
||||||
|
this is the previous/old example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
humidifier:
|
humidifier:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
command_topic: "bedroom_humidifier/on/set"
|
command_topic: "bedroom_humidifier/on/set"
|
||||||
target_humidity_command_topic: "bedroom_humidifier/humidity/set"
|
target_humidity_command_topic: "bedroom_humidifier/humidity/set"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% enddetails %}
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
availability:
|
availability:
|
||||||
description: A list of MQTT topics subscribed to receive availability (online/offline) updates. Must not be used together with `availability_topic`.
|
description: A list of MQTT topics subscribed to receive availability (online/offline) updates. Must not be used together with `availability_topic`.
|
||||||
@ -279,31 +299,31 @@ The example below shows a full configuration for a MQTT humidifier including mod
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml
|
# Example configuration.yaml
|
||||||
humidifier:
|
mqtt:
|
||||||
- platform: mqtt
|
humidifier:
|
||||||
name: "Bedroom humidifier"
|
- name: "Bedroom humidifier"
|
||||||
device_class: "humidifier"
|
device_class: "humidifier"
|
||||||
state_topic: "bedroom_humidifier/on/state"
|
state_topic: "bedroom_humidifier/on/state"
|
||||||
command_topic: "bedroom_humidifier/on/set"
|
command_topic: "bedroom_humidifier/on/set"
|
||||||
target_humidity_command_topic: "bedroom_humidifier/humidity/set"
|
target_humidity_command_topic: "bedroom_humidifier/humidity/set"
|
||||||
target_humidity_state_topic: "bedroom_humidifier/humidity/state"
|
target_humidity_state_topic: "bedroom_humidifier/humidity/state"
|
||||||
mode_state_topic: "bedroom_humidifier/mode/state"
|
mode_state_topic: "bedroom_humidifier/mode/state"
|
||||||
mode_command_topic: "bedroom_humidifier/preset/preset_mode"
|
mode_command_topic: "bedroom_humidifier/preset/preset_mode"
|
||||||
modes:
|
modes:
|
||||||
- "normal"
|
- "normal"
|
||||||
- "eco"
|
- "eco"
|
||||||
- "away"
|
- "away"
|
||||||
- "boost"
|
- "boost"
|
||||||
- "comfort"
|
- "comfort"
|
||||||
- "home"
|
- "home"
|
||||||
- "sleep"
|
- "sleep"
|
||||||
- "auto"
|
- "auto"
|
||||||
- "baby"
|
- "baby"
|
||||||
qos: 0
|
qos: 0
|
||||||
payload_on: "true"
|
payload_on: "true"
|
||||||
payload_off: "false"
|
payload_off: "false"
|
||||||
min_humidity: 30
|
min_humidity: 30
|
||||||
max_humidity: 80
|
max_humidity: 80
|
||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user