From fadd48786efe572225afb3b099104a930d136c16 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Mon, 23 May 2022 12:58:58 +0200 Subject: [PATCH] MQTT number config to integration key (#22831) --- source/_integrations/number.mqtt.markdown | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/_integrations/number.mqtt.markdown b/source/_integrations/number.mqtt.markdown index 26ba4e7db6c..1041576eaea 100644 --- a/source/_integrations/number.mqtt.markdown +++ b/source/_integrations/number.mqtt.markdown @@ -16,11 +16,29 @@ To enable MQTT Number in your installation, add the following to your `configura ```yaml # Example configuration.yaml entry +mqtt: + number: + - command_topic: my-device/threshold +``` + + +{% 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: - platform: mqtt command_topic: my-device/threshold ``` +{% enddetails %} + {% configuration %} availability: description: A list of MQTT topics subscribed to receive availability (online/offline) updates. Must not be used together with `availability_topic`.