Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new filters for templates #7699

Merged
merged 2 commits into from
Dec 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/_docs/configuration/templating.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ Home Assistant adds extensions to allow templates to access all of the current s
- Filter `regex_findall_index(string, find='', index=0, ignorecase=False)` will find all regex matches of find in string and return the match at index (findall returns an array of matches).
- Filter `bitwise_and(value_one, value_two)` perform a bitwise and(&) operation with two values.
- Filter `bitwise_or(value_one, value_two)` perform a bitwise or(\|) operation with two values.
- Filter `base64_encode` convert given value to a Base64 encoded string.
- Filter `base64_decode` convert given Base64 value to a regulary string.
- Filter `ordinal` convert a number into a speakable ordinal text.

[strp-format]: https://docs.python.org/3.6/library/datetime.html#strftime-and-strptime-behavior

Expand Down