From 695f81fb69aa3449b26db48cb54f9ebf17f8d4d4 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 6 Sep 2020 20:29:32 +0200 Subject: [PATCH] Numeric state condition can also accept input_number entity ID (#14403) --- source/_docs/scripts/conditions.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index 060ed8292d8..f02f38f72e1 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -148,6 +148,18 @@ condition: below: 25 ``` +Number helpers (`input_number` entities) can be used in the `above` and `below` +options to make the condition more dynamic. + +```yaml +condition: + condition: numeric_state + entity_id: climate.living_room_thermostat + attribute: temperature + above: input_number.temperature_threshold_low + below: input_number.temperature_threshold_high +``` + ## State condition Tests if an entity is a specified state.