You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_docs/configuration/templating.markdown
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ Home Assistant adds extensions to allow templates to access all of the current s
78
78
- `relative_time(timestamp)`will format the date time as relative time vs now (ie 7 seconds)
79
79
- `float`will format the output as float.
80
80
- `strptime(string, format)`will parse a string to a datetime based on a [format][strp-format].
81
+
- `log(value, base)`will take the logarithm of the input. When the base is omitted, it defaults to `e` - the natural logarithm. Can also be used as a filter.
81
82
- Filter `round(x)` will convert the input to a number and round it to `x` decimals.
82
83
- Filter `timestamp_local` will convert an UNIX timestamp to local time/data.
83
84
- Filter `timestamp_utc` will convert an UNIX timestamp to UTC time/data.
@@ -254,6 +255,8 @@ The following overview contains a couple of options to get the needed values:
0 commit comments