Skip to content

Commit

Permalink
Added new filters for templates (#7699)
Browse files Browse the repository at this point in the history
* Added new filters for templates

* Minor fixes
  • Loading branch information
pvizeli authored and fabaff committed Dec 1, 2018
1 parent 4435f2b commit b008b0f
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit b008b0f

Please sign in to comment.