diff --git a/source/_integrations/template.markdown b/source/_integrations/template.markdown index cbfe805edd0..b192e36fccc 100644 --- a/source/_integrations/template.markdown +++ b/source/_integrations/template.markdown @@ -15,6 +15,7 @@ ha_domain: template ha_platforms: - alarm_control_panel - binary_sensor + - button - cover - fan - light @@ -29,7 +30,7 @@ ha_platforms: 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, numbers and selects are covered on this page. For other types, please see the specific pages: +Sensors, binary (on/off) sensors, buttons, numbers and selects are covered on this page. For other types, please see the specific pages: - [Alarm Control Panel](/integrations/alarm_control_panel.template/) - [Cover](/integrations/cover.template/) @@ -40,7 +41,7 @@ Sensors, binary (on/off) sensors, numbers and selects are covered on this page. - [Vacuum](/integrations/vacuum.template/) - [Weather](/integrations/weather.template/) -Sensor, binary sensor, number and select template entities are defined in your YAML configuration files, directly 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. +Sensor, binary sensor, button, number and select template entities are defined in your YAML configuration files, directly 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)._ @@ -218,8 +219,17 @@ select: required: false type: boolean default: false -"[all sensor, binary sensor, number, select entities]": - description: Fields that can be used above for sensors, binary sensors, numbers, and selects. +button: + description: List of buttons + required: true + type: map + keys: + press: + description: Defines actions to run to press the button. + required: true + type: action +"[all sensor, binary sensor, button, number, select entities]": + description: Fields that can be used above for sensors, binary sensors, buttons, numbers, and selects. required: false type: map keys: