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
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# 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:
|
camera:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
topic: zanzito/shared_locations/my-device
|
topic: zanzito/shared_locations/my-device
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% enddetails %}
|
||||||
|
|
||||||
The sample configuration above can be tested by publishing an image to the topic from the console:
|
The sample configuration above can be tested by publishing an image to the topic from the console:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user