From 91757cde173c2ffdc93f28aebf5b132d6a51f5ac Mon Sep 17 00:00:00 2001 From: OzGav Date: Wed, 30 Mar 2022 17:27:16 +1000 Subject: [PATCH 1/2] Update conditions.markdown (#22192) --- source/_docs/scripts/conditions.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index 5075306feff..08029c6ce60 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -209,8 +209,8 @@ condition: condition: state entity_id: alarm_control_panel.home state: - - armed_away - - armed_home + - "armed_away" + - "armed_home" ``` Or, combine multiple entities with multiple states. In the following example, @@ -223,8 +223,8 @@ condition: - media_player.living_room - media_player.kitchen state: - - playing - - paused + - "playing" + - "paused" ``` Alternatively, the condition can test against a state attribute. @@ -235,7 +235,7 @@ condition: condition: state entity_id: climate.living_room_thermostat attribute: hvac_modes - state: heat + state: "heat" ``` Finally, the `state` option accepts helper entities (also known as `input_*` From 5734abd6269fa76f21d69b4f7dd443ece0ccc07f Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Wed, 30 Mar 2022 11:56:57 +0200 Subject: [PATCH 2/2] Correct MQTT scene docs (#22193) --- source/_integrations/scene.mqtt.markdown | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source/_integrations/scene.mqtt.markdown b/source/_integrations/scene.mqtt.markdown index f2c4903ff94..89f38002ea6 100644 --- a/source/_integrations/scene.mqtt.markdown +++ b/source/_integrations/scene.mqtt.markdown @@ -59,14 +59,9 @@ availability_topic: required: false type: string command_topic: - description: The MQTT topic to publish commands to change the scene state. + description: The MQTT topic to publish `payload_on` to activate the scene. 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 entity_category: description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity. required: false @@ -96,7 +91,7 @@ payload_not_available: type: string default: offline payload_on: - description: The payload that represents `on` state. If specified, will be used for both comparing to the value in the `state_topic` (see `value_template` and `state_on` for details) and sending as `on` command to the `command_topic`. + description: The payload that will be sent to `command_topic` when activating the MQTT scene. required: false type: string default: "ON"