MQTT humidifier config to integration key (#22829)

This commit is contained in:
Jan Bouwhuis 2022-05-23 14:39:24 +02:00 committed by GitHub
parent 0f2777f579
commit cfc7d9f805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,12 +22,32 @@ To enable MQTT humidifiers in your installation, add the following to your `conf
```yaml
# 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:
- platform: mqtt
command_topic: "bedroom_humidifier/on/set"
target_humidity_command_topic: "bedroom_humidifier/humidity/set"
```
{% enddetails %}
{% configuration %}
availability:
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
# Example configuration.yaml
mqtt:
humidifier:
- platform: mqtt
name: "Bedroom humidifier"
- name: "Bedroom humidifier"
device_class: "humidifier"
state_topic: "bedroom_humidifier/on/state"
command_topic: "bedroom_humidifier/on/set"