From b025c759ea494ebe78198b66bab5c659822736c7 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Mon, 23 May 2022 13:26:45 +0200 Subject: [PATCH] MQTT camera config to integration key (#22825) --- source/_integrations/camera.mqtt.markdown | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/_integrations/camera.mqtt.markdown b/source/_integrations/camera.mqtt.markdown index 32411417616..2a35bedfe07 100644 --- a/source/_integrations/camera.mqtt.markdown +++ b/source/_integrations/camera.mqtt.markdown @@ -18,11 +18,30 @@ To enable this camera in your installation, add the following to your `configura ```yaml # Example configuration.yaml entry +mqtt: + camera: + - topic: zanzito/shared_locations/my-device +``` + + + +{% details "Previous configuration format" %} + +The configuration format of manual configured MQTT items has changed. +The old format that places configurations under the `camera` 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 camera: - platform: mqtt topic: zanzito/shared_locations/my-device ``` +{% enddetails %} + The sample configuration above can be tested by publishing an image to the topic from the console: ```shell