From 4f7216c7c999b383833dd8738d3f32388e89623b Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 7 Sep 2020 00:36:27 +0200 Subject: [PATCH] State condition can also accept an input_* Entity ID as state value (#14412) --- source/_docs/scripts/conditions.markdown | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index f02f38f72e1..74ffbd3886f 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -225,6 +225,17 @@ condition: state: heat ``` +Finally, the `state` option accepts helper entities (also known as `input_*` +entities). The condition will pass if the state of the entity matches the state +of the given helper entity. + +```yaml +condition: + condition: state + entity_id: alarm_control_panel.home + state: input_select.guest_mode +``` + ### Sun condition #### Sun state condition