mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Minimize configuration sample
This commit is contained in:
parent
f3723ec56f
commit
0ba0ac6ac2
@ -13,7 +13,7 @@ ha_iot_class: "depends"
|
|||||||
ha_release: 0.18
|
ha_release: 0.18
|
||||||
---
|
---
|
||||||
|
|
||||||
The `mqtt` cover platform allows you to control an MQTT cover (such as blinds, a rollershutter, or a garage door).
|
The `mqtt` cover platform allows you to control an MQTT cover (such as blinds, a rollershutter or a garage door).
|
||||||
|
|
||||||
## {% linkable_title Configuration %}
|
## {% linkable_title Configuration %}
|
||||||
|
|
||||||
@ -38,20 +38,19 @@ To use your MQTT cover in your installation, add the following to your `configur
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
cover:
|
cover:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "MQTT Cover"
|
|
||||||
command_topic: "home-assistant/cover/set"
|
command_topic: "home-assistant/cover/set"
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
|
command_topic:
|
||||||
|
description: The MQTT topic to publish commands to control the cover.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
name:
|
name:
|
||||||
description: The name of the cover.
|
description: The name of the cover.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: MQTT Cover
|
default: MQTT Cover
|
||||||
command_topic:
|
|
||||||
description: The MQTT topic to publish commands to control the cover.
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
payload_open:
|
payload_open:
|
||||||
description: The command payload that opens the cover.
|
description: The command payload that opens the cover.
|
||||||
required: false
|
required: false
|
||||||
@ -129,7 +128,7 @@ value_template:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
set_position_topic:
|
set_position_topic:
|
||||||
description: The MQTT topic to publish position commands to. You need to set position_topic as well if you want to use position topic. Use template if position topic wants different values than within range `position_closed` - `position_open`. If template is not defined and `position_closed != 100` and `position_open != 0` then proper position value is calculated from percentage position.
|
description: "The MQTT topic to publish position commands to. You need to set position_topic as well if you want to use position topic. Use template if position topic wants different values than within range `position_closed` - `position_open`. If template is not defined and `position_closed != 100` and `position_open != 0` then proper position value is calculated from percentage position."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
set_position_template:
|
set_position_template:
|
||||||
@ -179,7 +178,7 @@ unique_id:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
device:
|
device:
|
||||||
description: 'Information about the device this cover is a part of to tie it into the [device registry](https://developers.home-assistant.io/docs/en/device_registry_index.html). Only works through [MQTT discovery](/docs/mqtt/discovery/) and when [`unique_id`](#unique_id) is set.'
|
description: "Information about the device this cover is a part of to tie it into the [device registry](https://developers.home-assistant.io/docs/en/device_registry_index.html). Only works through [MQTT discovery](/docs/mqtt/discovery/) and when [`unique_id`](#unique_id) is set."
|
||||||
required: false
|
required: false
|
||||||
type: map
|
type: map
|
||||||
keys:
|
keys:
|
||||||
@ -188,23 +187,23 @@ device:
|
|||||||
required: false
|
required: false
|
||||||
type: list, string
|
type: list, string
|
||||||
connections:
|
connections:
|
||||||
description: 'A list of connections of the device to the outside world as a list of tuples `[connection_type, connection_identifier]`. For example the MAC address of a network interface: `"connections": [["mac", "02:5b:26:a8:dc:12"]]`.'
|
description: 'A list of connections of the device to the outside world as a list of tuples `[connection_type, connection_identifier]`. For example the MAC address of a network interface: `"connections": ["mac", "02:5b:26:a8:dc:12"]`.'
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
manufacturer:
|
manufacturer:
|
||||||
description: 'The manufacturer of the device.'
|
description: The manufacturer of the device.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
model:
|
model:
|
||||||
description: 'The model of the device.'
|
description: The model of the device.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
description: 'The name of the device.'
|
description: The name of the device.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
sw_version:
|
sw_version:
|
||||||
description: 'The firmware version of the device.'
|
description: The firmware version of the device.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
@ -217,6 +216,7 @@ In this section you will find some real-life examples of how to use this platfor
|
|||||||
|
|
||||||
The example below shows a full configuration for a cover without tilt with state topic only.
|
The example below shows a full configuration for a cover without tilt with state topic only.
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
cover:
|
cover:
|
||||||
@ -235,13 +235,15 @@ cover:
|
|||||||
payload_available: "online"
|
payload_available: "online"
|
||||||
payload_not_available: "offline"
|
payload_not_available: "offline"
|
||||||
optimistic: false
|
optimistic: false
|
||||||
value_template: '{% raw %}{{ value.x }}{% endraw %}'
|
value_template: '{{ value.x }}'
|
||||||
```
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
### {% linkable_title Full configuration position topic without tilt %}
|
### {% linkable_title Full configuration position topic without tilt %}
|
||||||
|
|
||||||
The example below shows a full configuration for a cover without tilt with position topic.
|
The example below shows a full configuration for a cover without tilt with position topic.
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
cover:
|
cover:
|
||||||
@ -261,8 +263,9 @@ cover:
|
|||||||
payload_available: "online"
|
payload_available: "online"
|
||||||
payload_not_available: "offline"
|
payload_not_available: "offline"
|
||||||
optimistic: false
|
optimistic: false
|
||||||
value_template: '{% raw %}{{ value.x }}{% endraw %}'
|
value_template: '{{ value.x }}'
|
||||||
```
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
### {% linkable_title Full configuration %}
|
### {% linkable_title Full configuration %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user