diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index b1c3fa06491..7e11dae2ec0 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -107,6 +107,18 @@ If your template uses an `entity_id` that begins with a number (example: `states Rendering templates with time (`now()`) is dangerous as updates only trigger templates in sensors based on entity state changes.
+## {% linkable_title Priority of operators %} + +The default priority of operators is that the filter (`|`) has priority over everything except brackets. This means that: + +{% raw %} +```yaml +{{ states('sensor.temperature') | float / 10 | round(2) }} +``` +{% endraw %} + +Would round `10` to 2 decimal places, then divide `states('sensor.temperature')` by that. + ## {% linkable_title Home Assistant template extensions %} In templates, besides the normal [state object methods and properties](/topics/state_object/), there are also some extra things available: @@ -115,6 +127,8 @@ In templates, besides the normal [state object methods and properties](/topics/s ## {% linkable_title Examples %} +To test a template, go to the