mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-04 10:08:57 +00:00

* Updated Configuration Variables sections Squashed commit of the following: commit a95d114183553ad3850e6ca2d688d622388ee666 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Mon Jul 30 20:08:02 2018 +0200 Clean some things up commit db63a37dc97ad7735b78b7078b09343a9e9d1981 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Mon Jul 30 18:28:20 2018 +0200 Revert "The rest for this PR" This reverts commit bb1b2f9a2f289e79198142f481305a301084ae29. commit df90512482f45195e2da06e08fa7d537df0be710 Merge: deef4fd4d4 e4ed00d287 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Mon Jul 30 17:05:27 2018 +0200 Merge remote-tracking branch 'upstream/current' into patch-1 commit deef4fd4d4379407fd668be1947c66ed3e87eff5 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sun Jul 29 12:40:01 2018 +0200 Fix Liquid error commit 74369fbbc8e5a302e6e7b8d26bfac6150d731232 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sun Jul 29 12:37:03 2018 +0200 Update Configuration Variables sections commit 6e50eaa013e8ff240763b52557b5f74f8d620568 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sun Jul 29 11:52:51 2018 +0200 Fix empty keys commit 7e4852e4738a55cebd17ec71d4a8fb217ae10ac3 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sun Jul 29 11:41:46 2018 +0200 Update binary_sensor.netatmo.markdown commit e1d83df83eedbb446c412ea97829d0970579438c Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sun Jul 29 11:28:39 2018 +0200 More updated Configuration Variables sections commit 66cbe391812488ec930ce8150cfc409950a02253 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 22:00:25 2018 +0200 Fix Liquid Exception sensor.speedtest commit bb1b2f9a2f289e79198142f481305a301084ae29 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 21:54:34 2018 +0200 The rest for this PR - Update components with new Configuration Variables section to have YAML block syntax - Fix wrong capitalised booleans commit 5e67726eb71b414e88b654128d193c892a6ae148 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 20:43:52 2018 +0200 Try multiline string in Cast Trying out a multiline string in a {% configuration %}-block. commit b8d34e9a8e8abfa1885a54a198b323b9de12d0c3 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 20:41:39 2018 +0200 Lint fixes etc. All default True/False capital letters have been fixed. Tried to reduce lines to 80 characters or less where possible. commit 88228b293ddef2630653c5636d2b75606106742b Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:32:46 2018 +0200 Update notify.webostv.markdown commit 7204c1d637beeabefb4141faddd334b29da92bea Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:15:18 2018 +0200 Fix capital letter commit 6e1b3db87b07c916df0d34983d333ad1d9faf1fc Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:14:05 2018 +0200 Update media_player.webostv.markdown commit 89ee23565abab1dc7113f83a1cd680bcd26e430a Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:08:59 2018 +0200 Update http.markdown commit 418f5cb7cd4e98592bfe6902276af881e0dac47b Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:02:19 2018 +0200 Fix capital letter commit d5264c3c4f9b468b2f7b9b1eba786d108e1b88ef Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:01:39 2018 +0200 Fix capital letter commit e4cd51271d1881adf8160497cddb638b285e505e Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:01:08 2018 +0200 Update sensor.iota.markdown commit c18b25fddc062b35d9160a02df3377f152231020 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 16:01:01 2018 +0200 Fix capital letter commit 79a78f284a2280d1f2c8d007c072fbe8ce6655c8 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:56:22 2018 +0200 Update Configuration Variables section commit 0db5228080573b21f5570ce56e60e67d1004e0f1 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:54:47 2018 +0200 Update Configuration Variables section commit d5d26f16117a9cc74349dd77f98fdce53d7ca1cd Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:54:14 2018 +0200 Update Configuration Variables section commit ab3f04511edbcc25a7f5f7e514b6a092a3cfcb68 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:52:50 2018 +0200 Update Configuration Variables section commit 37b2d1831d65c584be95daf49ea90022227984f7 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:51:29 2018 +0200 Update Configuration Variables section commit 39b3ecd7079dbf13576cd5306507b5f86c3ea9db Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:50:53 2018 +0200 Update Configuration Variables section commit 823ea87d3a9da8dee2cb786bd1f64a6492537e80 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:50:11 2018 +0200 Update Configuration Variables section commit 6560a2bac06e2292f912f96143ce6e688f900280 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:49:53 2018 +0200 Update Configuration Variables section commit cc97df289b09bdb52123b775af6545eba8608cc1 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:47:23 2018 +0200 Update Configuration Variables section commit fdc881eb7a33f0ab1e4a8a5749c05c07df2ab7fd Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:46:55 2018 +0200 Update Configuration Variables section commit 81e292c3e92a834c04ef577d2b1ab867d8d9db79 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:46:16 2018 +0200 Update Configuration Variables section commit 05d3481d1165ee89b3dc9a0342f1c2041c06e8ca Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:45:25 2018 +0200 Update Configuration Variables section commit ef34f8c2f4eb17183fa0d7de8da90cca02f355ea Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:41:08 2018 +0200 Update Configuration Variables section commit 49f69a36e46585d14396f284b0b8a016add8efe9 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:16:27 2018 +0200 Update Configuration Variables section commit 14732eeee06cc20f78af99035d8fbde02b7e2778 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:14:58 2018 +0200 Update Configuration Variables section commit e0f8578628d298730a258f3597c00d8d47748cc4 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:11:56 2018 +0200 Update media_player.samsungtv.markdown commit 8be3c95f8e3acb39c73843816e43b66c3f1f9945 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:10:45 2018 +0200 Update Configuration Variables section commit 53b6672521dc6fb69a7ad25ac56def6a2e2bcdf4 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:10:40 2018 +0200 Update media_player.webostv.markdown commit 421e90392af3704ef1a2577ce9d35f3d7459b71e Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 15:03:33 2018 +0200 Update Configuration Variables section commit 7f142fd359b693e4af872bdf1ecd6e98b82f694f Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:59:54 2018 +0200 webOS brand fix + filename clarification commit 1f1051bcbc55ff96da69493823ac8d4676e3a738 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:52:29 2018 +0200 Update sensor.yr.markdown commit 8be62f4a620d624b27bb130ab8d2a09c66016b08 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:52:05 2018 +0200 Update Configuration Variables section commit 69c615b295dd86c0bba46154587c25ea7e0bfd27 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:50:57 2018 +0200 Update notify.webostv.markdown commit 4b1175e5653f217d2d5c332ef25f4f540a2052e1 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:50:30 2018 +0200 Update notify.html5.markdown commit 4ba06dd29db58b96e1cbfb149c00037f6b4be5c3 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:49:59 2018 +0200 Update image_processing.openalpr_local.markdown commit ec919d57810e5a1e82908c297222bfc64492da8b Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:49:18 2018 +0200 Update image_processing.microsoft_face_detect.markdown commit da657b579fefb26061a52e1d06ff97ae8f08eefa Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:42:46 2018 +0200 Update Configuration Variables section commit 3b066ba22bfa409011faebd9a52a3187614bd444 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:40:33 2018 +0200 Update Configuration Variables section commit 360c5422d783bc940962a93e41f82950570210ab Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 14:38:54 2018 +0200 Update Configuration Variables section commit 7965ff8c7131bd646bea648c27a4eae861d1dc6d Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:51:12 2018 +0200 Update Configuration Variables section commit 48d20dd4fa39d76e294f32b99de6e3d1b9eaf419 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:48:33 2018 +0200 Update Configuration Variables section commit 4c6efe7218c3e098f3091dbd05f9b76b1fd59882 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:40:33 2018 +0200 Update Configuration Variables section commit 8c45d8309ebfbe57c2a08332890da4f5b08231ea Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:35:19 2018 +0200 Update Configuration Variables section commit bbfa64af6fa049553460524f3a983c4e803da15a Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:33:14 2018 +0200 Newline commit f0577bb456c09b027cb11341e2a95b2bbab444aa Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:32:54 2018 +0200 Fix typo commit 65f73ced0cfc453f77ee75d30e4a3ec788abba65 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:19:23 2018 +0200 Update notify.webostv.markdown commit 1a11c971bb409bbafebc04174f8dda3e32c711ce Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:18:44 2018 +0200 Update notify.html5.markdown commit 46532335451a593bab6fa6e9953c880537d5713c Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:18:04 2018 +0200 Update image_processing.openalpr_local.markdown commit ce9ca3453b33aa966f9f6716cd1e9330f3e3f458 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Sat Jul 28 13:15:05 2018 +0200 Update Configuration Variables section commit 6ae8a408894ba6c51b8c4cb545acc6405059bafa Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Thu Jul 26 22:58:55 2018 +0200 Update Configuration Variables section commit c4bed222338ca3be5e471352579fb8e71254d5d4 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Thu Jul 26 22:56:35 2018 +0200 Update Configuration Variables section commit 9fe09afd30a1e67a9c5f0ac887630c26de694814 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:46:23 2018 +0200 Update Configuration Variables section commit 8efc72f10db4bf10bcaecc5c84d7f88263b710ae Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:44:08 2018 +0200 Update image_processing.openalpr_cloud.markdown commit 52046e50645d7adb4d0a4cadc4151de54b7354aa Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:43:52 2018 +0200 Update Configuration Variables section commit c7a9296ae3e7d3ef545117b17bd95513a0168c4b Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:27:08 2018 +0200 Update image_processing.microsoft_face_detect.markdown commit 3b37dc0e11ac5344670225119ae6bbc9fff04af4 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:20:26 2018 +0200 Update Configuration Variables section commit 870cd41fef2b1c1c139642a291e9aaae14ae5c4c Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:18:38 2018 +0200 Update image_processing.microsoft_face_identify.markdown commit 0f76212b24b425282a99483c6efaad2abdbd3cf0 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:17:09 2018 +0200 Update Configuration Variables section commit 73513b9e4e26263eb4d8b5fb86cf6326c3319b8c Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:13:26 2018 +0200 Update image_processing.microsoft_face_detect.markdown commit c171a080b3bac291d05bcc4c4760b0d9529159d3 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 23:01:06 2018 +0200 Update image_processing.microsoft_face_detect.markdown commit 294a37f5847a227c33d5c9696f21a8bbe2288d83 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 21:46:14 2018 +0200 Update image_processing.microsoft_face_detect.markdown commit 9f4c3fad9e9ade578f205104bdac3d649c9d86fc Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 21:21:17 2018 +0200 Update image_processing.microsoft_face_detect.markdown commit 11579aa61b08adbb1e599177eda54b579fc9b593 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 21:13:30 2018 +0200 Update camera.mjpeg.markdown commit e93f5db4b6bd94d8cb5b46a61c76d86c31f00c8f Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 19:34:36 2018 +0200 Update Configuration Variables section commit 383b9ace663573473bdab467cd8697f7e330cda5 Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 17:49:38 2018 +0200 Remove leftover line commit 7e2e72f78f2ae4603a5c9968372b453dc956a79b Author: Jorim Tielemans <tielemans.jorim@gmail.com> Date: Wed Jul 25 17:46:55 2018 +0200 Update Configuration Variables section * Remove encapsulation Double quotes were visible in the frontend. * Remove empty default value * 🚑 Correcting types * ✏️ Removes double italic
186 lines
5.8 KiB
Markdown
186 lines
5.8 KiB
Markdown
---
|
|
layout: page
|
|
title: "MQTT Binary Sensor"
|
|
description: "Instructions on how to integrate MQTT binary sensors within Home Assistant."
|
|
date: 2015-05-30 23:21
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
logo: mqtt.png
|
|
ha_category: Binary Sensor
|
|
ha_release: 0.9
|
|
ha_iot_class: "depends"
|
|
---
|
|
|
|
The `mqtt` binary sensor platform uses an MQTT message payload
|
|
to set the binary sensor to one of two states: `on` or `off`.
|
|
|
|
The binary sensor state will be updated only after a new message is published on
|
|
`state_topic` matching `payload_on` or `payload_off`.
|
|
If these messages are published with the `retain` flag set,
|
|
the binary sensor will receive an instant state update after subscription and
|
|
Home Assistant will display the correct state on startup.
|
|
Otherwise, the initial state displayed in Home Assistant will be `unknown`.
|
|
|
|
## {% linkable_title Configuration %}
|
|
|
|
The `mqtt` binary sensor platform optionally supports an `availability_topic` to
|
|
receive online and offline messages (birth and LWT messages) from the MQTT
|
|
device. During normal operation, if the MQTT cover device goes offline
|
|
(i.e., publishes `payload_not_available` to `availability_topic`), Home
|
|
Assistant will display the binary sensor as `unavailable`. If these messages are
|
|
published with the `retain` flag set, the binary sensor will receive an instant
|
|
update after subscription and Home Assistant will display the correct
|
|
availability state of the binary sensor when Home Assistant starts up.
|
|
If the `retain` flag is not set, Home Assistant will display the binary sensor
|
|
as `unavailable` when Home Assistant starts up. If no `availability_topic`
|
|
is defined, Home Assistant will consider the MQTT device to be available.
|
|
|
|
To use an MQTT binary sensor in your installation,
|
|
add the following to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
binary_sensor:
|
|
- platform: mqtt
|
|
state_topic: "home-assistant/window/contact"
|
|
```
|
|
|
|
{% configuration %}
|
|
name:
|
|
description: The name of the binary sensor.
|
|
required: false
|
|
type: string
|
|
default: MQTT Binary Sensor
|
|
state_topic:
|
|
description: The MQTT topic subscribed to receive sensor values.
|
|
required: true
|
|
type: string
|
|
payload_on:
|
|
description: The payload that represents the on state.
|
|
required: false
|
|
type: string
|
|
default: "ON"
|
|
payload_off:
|
|
description: The payload that represents the off state.
|
|
required: false
|
|
type: string
|
|
default: "OFF"
|
|
availability_topic:
|
|
description: >
|
|
The MQTT topic subscribed to receive birth and LWT messages from the MQTT
|
|
device. If `availability_topic` is not defined, the binary sensor availability
|
|
state will always be `available`. If `availability_topic` is defined,
|
|
the binary sensor availability state will be `unavailable` by default.
|
|
required: false
|
|
type: string
|
|
payload_available:
|
|
description: The payload that represents the online state.
|
|
required: false
|
|
type: string
|
|
default: online
|
|
payload_not_available:
|
|
description: The payload that represents the offline state.
|
|
required: false
|
|
type: string
|
|
default: offline
|
|
qos:
|
|
description: The maximum QoS level to be used when receiving messages.
|
|
required: false
|
|
type: integer
|
|
default: 0
|
|
unique_id:
|
|
description: >
|
|
An ID that uniquely identifies this sensor. If two sensors have
|
|
the same unique ID, Home Assistant will raise an exception.
|
|
required: false
|
|
type: string
|
|
device_class:
|
|
description: >
|
|
The [type/class](/components/binary_sensor/) of
|
|
the sensor to set the icon in the frontend.
|
|
required: false
|
|
type: string
|
|
value_template:
|
|
description: >
|
|
Defines a [template](/docs/configuration/templating/#processing-incoming-data)
|
|
to extract a value from the payload.
|
|
required: false
|
|
type: string
|
|
force_update:
|
|
description: >
|
|
Sends update events even if the value has not changed.
|
|
Useful if you want to have meaningful value graphs in history.
|
|
reqired: false
|
|
type: boolean
|
|
default: false
|
|
{% endconfiguration %}
|
|
|
|
## {% linkable_title Examples %}
|
|
|
|
In this section, you will find some real-life examples of how to use this sensor.
|
|
|
|
### {% linkable_title Full configuration %}
|
|
|
|
To test, you can use the command line tool `mosquitto_pub` shipped with
|
|
`mosquitto` or the `mosquitto-clients` package to send MQTT messages.
|
|
To set the state of the binary sensor manually:
|
|
|
|
```bash
|
|
$ mosquitto_pub -h 127.0.0.1 -t home-assistant/window/contact -m "OFF"
|
|
```
|
|
|
|
The example below shows a full configuration for a binary sensor:
|
|
|
|
{% raw %}
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
binary_sensor:
|
|
- platform: mqtt
|
|
name: "Window Contact Sensor"
|
|
state_topic: "home-assistant/window/contact"
|
|
payload_on: "ON"
|
|
payload_off: "OFF"
|
|
availability_topic: "home-assistant/window/availability"
|
|
payload_available: "online"
|
|
payload_not_available: "offline"
|
|
qos: 0
|
|
device_class: opening
|
|
value_template: '{{ value.x }}'
|
|
```
|
|
{% endraw %}
|
|
|
|
### {% linkable_title Get the state of a device with ESPEasy %}
|
|
|
|
Assuming that you have flashed your ESP8266 unit with
|
|
[ESPEasy](https://github.com/letscontrolit/ESPEasy).
|
|
Under "Config" is a name ("Unit Name:") set for your device
|
|
(here it's "bathroom"). A configuration for a "Controller" for MQTT with the
|
|
protocol "OpenHAB MQTT" is present and the entries ("Controller Subscribe:" and
|
|
"Controller Publish:") are adjusted to match your needs.
|
|
In this example, the topics are prefixed with "home". Also, add a "Switch Input"
|
|
in the "Devices" tap with the name "switch" and "button" as value.
|
|
|
|
As soon as the unit is online, you will get the state of the attached button.
|
|
|
|
```bash
|
|
home/bathroom/status Connected
|
|
...
|
|
home/bathroom/switch/button 1
|
|
```
|
|
|
|
The configuration will look like the example below:
|
|
|
|
{% raw %}
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
binary_sensor:
|
|
- platform: mqtt
|
|
name: Bathroom
|
|
state_topic: "home/bathroom/switch/button"
|
|
payload_on: "1"
|
|
payload_off: "0"
|
|
```
|
|
{% endraw %}
|