# Example configuration.yml entry
cover:
- platform: mqtt
+ name: "MQTT Cover"
state_topic: "home-assistant/cover"
command_topic: "home-assistant/cover/set"
- name: "MQTT Sensor"
- qos: 0
- retain: true
payload_open: "PAYLOAD_OPEN"
payload_close: "PAYLOAD_CLOSE"
payload_stop: "PAYLOAD_STOP"
state_open: "STATE_OPEN"
state_closed: "STATE_CLOSED"
optimistic: false
+ qos: 0
retain: false
value_template: '{{ value.x }}'
@@ -122,17 +121,17 @@ state from
state_topic
. If these messages
Configuration variables:
- - state_topic (Required): The MQTT topic subscribed to receive sensor values.
+ - name (Optional): The name of the sensor. Default is
MQTT Cover
.
+ - state_topic (Optional): The MQTT topic subscribed to receive sensor values.
- command_topic (Required): The MQTT topic to publish commands to control the rollershutter.
- - name (Optional): The name of the sensor. Default is “MQTT Sensor”.
- - qos (Optional): The maximum QoS level of the state topic. Default is 0 and will also be used to publishing messages.
- - retain (Optional): If the published message should have the retain flag on or not.
- - payload_open (Optional): The payload that opens the cover. Default is “UP”
- - payload_close (Optional): The payload that closes the cover. Default is “DOWN”
- - payload_stop (Optional): The payload that stops the rollershutter. default is “STOP”
- - state_open (Optional): The payload that represents open state. Default is”STATE_OPEN”
- - state_closed (Optional): The payload that represents closed state. Default is “STATE_CLOSED”
+ - payload_open (Optional): The payload that opens the cover. Default is
OPEN
.
+ - payload_close (Optional): The payload that closes the cover. Default is
CLOSE
.
+ - payload_stop (Optional): The payload that stops the rollershutter. default is
STOP
.
+ - state_open (Optional): The payload that represents open state. Default is
open
.
+ - state_closed (Optional): The payload that represents closed state. Default is
closed
.
- optimistic (Optional): Flag that defines if switch works in optimistic mode. Default is
true
if no state topic defined, else false
.
+ - qos (Optional): The maximum QoS level of the state topic. Default is
0
. Will also be used when publishing messages.
+ - retain (Optional): If the published message should have the retain flag on or not. Default is
false
.
- value_template (Optional): Defines a template to extract a value from the payload.
@@ -143,7 +142,6 @@ state from
state_topic
. If these messages
-
diff --git a/sitemap.xml b/sitemap.xml
index 2cbaa92d96..912f858bf3 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1726,9 +1726,6 @@