mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
MQTT camera config to integration key (#22825)
This commit is contained in:
parent
6949cf068f
commit
b025c759ea
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user