Add cover topics configuration (#1518)

This commit is contained in:
definitio 2021-10-10 18:54:39 +03:00 committed by GitHub
parent 5f0f796387
commit f551da1b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,19 @@ Advanced options:
- **disabled_by_default** (*Optional*, boolean): If true, then this entity should not be added to any client's frontend,
(usually Home Assistant) without the user manually enabling it (via the Home Assistant UI).
Requires Home Assistant 2021.9 or newer. Defaults to ``false``.
- If MQTT enabled, all other options from :ref:`MQTT Component <config-mqtt-component>`.
MQTT options:
- **position_state_topic** (*Optional*, string): The topic to publish
cover position changes to.
- **position_command_topic** (*Optional*, string): The topic to receive
cover position commands on.
- **tilt_state_topic** (*Optional*, string): The topic to publish cover
cover tilt state changes to.
- **tilt_command_topic** (*Optional*, string): The topic to receive
cover tilt commands on.
- All other options from :ref:`MQTT Component <config-mqtt-component>`.
.. _cover-open_action:
@ -195,7 +207,7 @@ fields are read-only, if you want to act on the cover, use the ``make_call()`` m
} else {
// Cover is in-between open and closed
}
- ``tilt``: Retrieve the current tilt position of the cover, as a value between ``0.0`` and ``1.0``.
- ``current_operation``: The operation the cover is currently performing: