From 7f785f3bbcac9fe6d03797c9d8139c3399f56cd8 Mon Sep 17 00:00:00 2001 From: dougiteixeira <31328123+dougiteixeira@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:03:20 -0300 Subject: [PATCH] Add config flow for platform number in Template (#33721) * Add config flow for platform number in Template * Update template.markdown * Update template.markdown * Update template.markdown * Update template.markdown * tiny tweaks --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_integrations/template.markdown | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/source/_integrations/template.markdown b/source/_integrations/template.markdown index 7ebd0120e94..8108478e01b 100644 --- a/source/_integrations/template.markdown +++ b/source/_integrations/template.markdown @@ -41,7 +41,9 @@ related: The `template` integration allows creating entities which derive their values from other data. This is done by specifying [templates](/docs/configuration/templating/) for properties of an entity, like the name or the state. -Sensors, binary (on/off) sensors, buttons, images, numbers and selects are covered on this page. For other types, please see the specific pages: +Sensors, binary (on/off) sensors, buttons, images, numbers, and selects are covered on this page. They can be configured using [UI](#configuration) or [YAML](#yaml-configuration) file. + +For other types, please see the specific pages: - [Alarm control panel](/integrations/alarm_control_panel.template/) - [Cover](/integrations/cover.template/) @@ -52,16 +54,6 @@ Sensors, binary (on/off) sensors, buttons, images, numbers and selects are cover - [Vacuum](/integrations/vacuum.template/) - [Weather](/integrations/weather.template/) -Sensor, binary sensor, button, image and select can be configured using [UI](#ui-configuration) or [YAML](#yaml-configuration) file. - -Number template entities are defined in your YAML configuration files under the `template:` key and cannot be configured via the UI. You can define multiple configuration blocks as a list. Each block defines sensor/binary sensor/number/select entities and can contain an optional update trigger. - -_For old sensor/binary sensor configuration format, [see below](#legacy-binary-sensor-configuration-format)._ - -## UI configuration - -Sensor template, binary sensor template, button template, image template and select template can be configured using the user interface at **{% my helpers title="Settings > Devices & services > Helpers" %}**. Select the **+ Add helper** button and then select the **{% my config_flow_start domain=page.ha_domain title=page.title %}** helper. - {% include integrations/config_flow.md %} {% important %} @@ -76,6 +68,10 @@ If you need more specific features for your use case, the manual [YAML-configura ## YAML configuration +Entities (sensors, binary sensors, buttons, images, numbers, and selections) are defined in your YAML configuration files under the `template:` key. You can define multiple configuration blocks as a list. Each block defines sensor/binary sensor/number/select entities and can contain an optional update trigger. + +_For old sensor/binary sensor configuration format, [see below](#legacy-binary-sensor-configuration-format)._ + ### State-based template binary sensors, buttons, images, numbers, selects and sensors Template entities will by default update as soon as any of the referenced data in the template updates.