mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +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,9 +299,9 @@ The example below shows a full configuration for a MQTT humidifier including mod
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml
|
# Example configuration.yaml
|
||||||
|
mqtt:
|
||||||
humidifier:
|
humidifier:
|
||||||
- platform: mqtt
|
- 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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user