Document MQTT enabled_by_default (#18069)

This commit is contained in:
Erik Montnemery 2021-06-03 09:43:00 +02:00 committed by GitHub
parent b8b14dbba6
commit 464231a9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 83 additions and 8 deletions

View File

@ -125,6 +125,11 @@ device:
description: "Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant."
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: "[Icon](/docs/configuration/customizing-devices/#icon) for the entity."
required: false

View File

@ -100,6 +100,11 @@ device_class:
description: Sets the [class of the device](/integrations/binary_sensor/#device-class), changing the device state and icon that is displayed on the frontend.
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
expire_after:
description: Defines the number of seconds after the sensor's state expires, if it's not updated. After expiry, the sensor's state becomes `unavailable`.
required: false

View File

@ -89,6 +89,11 @@ device:
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: "[Icon](/docs/configuration/customizing-devices/#icon) for the entity."
required: false

View File

@ -128,6 +128,11 @@ device:
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
fan_mode_command_template:
description: A template to render the value sent to the `fan_mode_command_topic` with.
required: false

View File

@ -110,6 +110,11 @@ device_class:
description: Sets the [class of the device](/integrations/cover/), changing the device state and icon that is displayed on the frontend.
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: "[Icon](/docs/configuration/customizing-devices/#icon) for the entity."
required: false

View File

@ -101,6 +101,11 @@ device:
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: "[Icon](/docs/configuration/customizing-devices/#icon) for the entity."
required: false

View File

@ -151,6 +151,11 @@ device:
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
effect_command_topic:
description: "The MQTT topic to publish commands to change the light's effect state."
required: false
@ -516,6 +521,11 @@ device:
description: 'The firmware version of the device.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
effect:
description: Flag that defines if the light supports effects.
required: false
@ -849,6 +859,11 @@ device:
description: 'The firmware version of the device.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
effect_list:
description: List of possible effects.
required: false

View File

@ -97,6 +97,11 @@ device:
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: "[Icon](/docs/configuration/customizing-devices/#icon) for the entity."
required: false

View File

@ -87,6 +87,11 @@ device:
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: "[Icon](/docs/configuration/customizing-devices/#icon) for the entity."
required: false

View File

@ -51,18 +51,23 @@ availability_topic:
required: false
type: string
command_topic:
description: The MQTT topic to publish commands to change the switch state.
description: The MQTT topic to publish commands to change the scene state.
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: Icon for the switch.
description: Icon for the scene.
required: false
type: icon
name:
description: The name to use when displaying this switch.
description: The name to use when displaying this scene.
required: false
type: string
default: MQTT Switch
default: MQTT Scene
payload_available:
description: The payload that represents the available state.
required: false
@ -89,7 +94,7 @@ retain:
type: boolean
default: false
unique_id:
description: An ID that uniquely identifies this switch device. If two switches have the same unique ID, Home Assistant will raise an exception.
description: An ID that uniquely identifies this scene entity. If two scenes have the same unique ID, Home Assistant will raise an exception.
required: false
type: string
{% endconfiguration %}
@ -102,15 +107,15 @@ Make sure that your topic matches exactly. `some-topic/` and `some-topic` are di
## Examples
In this section, you will find some real-life examples of how to use this sensor.
In this section, you will find some real-life examples of how to use the MQTT Scene.
### Full configuration
The example below shows a full configuration for a switch.
The example below shows a full configuration for a scene.
```yaml
# Example configuration.yaml entry
switch:
scene:
- platform: mqtt
unique_id: living_room_party_scene
name: "Living Room Party Scene"

View File

@ -92,6 +92,11 @@ device_class:
required: false
type: device_class
default: None
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
expire_after:
description: Defines the number of seconds after the sensor's state expires, if it's not updated. After expiry, the sensor's state becomes `unavailable`.
required: false

View File

@ -97,6 +97,11 @@ device:
description: 'Identifier of a device that routes messages between this device and Home Assistant. Examples of such devices are hubs, or parent devices of a sub-device. This is used to show device topology in Home Assistant.'
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
icon:
description: "[Icon](/docs/configuration/customizing-devices/#icon) for the entity."
required: false

View File

@ -93,6 +93,11 @@ docked_topic:
description: The MQTT topic subscribed to receive docked state values from the vacuum.
required: false
type: string
enabled_by_default:
description: Flag which defines if the entity should be enabled when first added.
required: false
type: boolean
default: true
error_template:
description: Defines a [template](/topics/templating/) to define potential error messages emitted by the vacuum. This is required if `error_topic` is set.
required: false