MQTT camera config to integration key (#22825)

This commit is contained in:
Jan Bouwhuis 2022-05-23 13:26:45 +02:00 committed by GitHub
parent 6949cf068f
commit b025c759ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```
<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 `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