MQTT number config to integration key (#22831)

This commit is contained in:
Jan Bouwhuis 2022-05-23 12:58:58 +02:00 committed by GitHub
parent b3f6c192f7
commit fadd48786e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,29 @@ To enable MQTT Number in your installation, add the following to your `configura
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
mqtt:
number:
- command_topic: my-device/threshold
```
<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 `number` 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
number: number:
- platform: mqtt - platform: mqtt
command_topic: my-device/threshold command_topic: my-device/threshold
``` ```
{% 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`.