158 Commits

Author SHA1 Message Date
Franck Nijhof
640674275b
Merge branch 'current' into next 2022-12-07 13:14:19 +01:00
Brian Steere
9a84f0eb8a
fix: typo in templating docs (#25125) 2022-12-05 10:16:33 +01:00
Franck Nijhof
f166f4dfe8
Allow is_state to accept a list of values (#25031)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-01 09:21:49 +01:00
On Freund
e43b9fae57
'device_attr' and 'is_device_attr' can be used as a filter and as a test (#25036) 2022-11-24 08:31:23 +01:00
kepath
533945f95c
Update templating.markdown (#24805) 2022-11-09 09:40:05 +01:00
Petro31
40d3bdf240
add new jinja test and filters (#24342)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-10-25 19:54:05 +02:00
Franck Nijhof
7fea1d8934
Rename entry_id template method to config_entry_id (#24689) 2022-10-25 13:48:18 +02:00
Franck Nijhof
05d5712f82
Merge branch 'current' into next 2022-10-24 12:31:22 +02:00
Stefan
ee9b8a4230
Fix some dead or redirected links. (#24627) 2022-10-19 19:40:09 +02:00
Matheson Steplock
49a853f63f
Provide link to Python re module in discussion of regex filters (#24552) 2022-10-17 23:57:50 +02:00
Matheson Steplock
fdf3f2b9ac
Switch to markdown link (#24607) 2022-10-17 22:16:07 +02:00
Franck Nijhof
b4022f6e61
Merge branch 'current' into rc 2022-10-05 11:23:29 +02:00
Franck Nijhof
11a4db20fd
Merge branch 'current' into next 2022-10-05 11:22:51 +02:00
TheFes
b41037f94d
Update templating docs for check for none (#24278) 2022-10-03 14:12:23 +02:00
ehendrix23
9904c9cd36
Add optional default value to average function (#24282) 2022-10-03 13:54:47 +02:00
Rami Mosleh
c97b92affe
Add Config entry Template function documentation (#24275) 2022-10-03 13:53:46 +02:00
Joakim Sørensen
245b047eb6
Add documentation for version in templates (#24131)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-09-15 15:02:14 +02:00
Jan Bouwhuis
22890299de
Add this object to MQTT templates (#23845) 2022-08-24 18:07:04 +02:00
[pʲɵs]
22e1c38e66
Document int and boolean template filters (#23221) 2022-06-29 12:33:35 +02:00
Jonas Diemer
e753929330
Fixing some inaccuracies on unpack() filter (#22967) 2022-06-20 23:09:30 +02:00
Erik Montnemery
b1c4be88ed
Update template documentation to reflect stricter handling of errors (#22885) 2022-05-25 17:43:40 +02:00
Kevin Stillhammer
479413cc5f
Add template as_timedelta (#22740) 2022-05-23 19:33:49 +02:00
jugla
12b4363a50
add unavailable status with an example (#22607) 2022-05-09 13:09:44 +02:00
Mike Degatano
50fedcd03b
Mention short-circuiting issue in iif (#22092) 2022-03-27 17:20:12 +02:00
Chris Browet
50ae2201a1
Templating: "search" actually defaults to IgnoreCase false (#21993) 2022-03-12 17:35:00 +01:00
Danny Tsang
127c7707ac
Fix rendering of is_defined example. (#21575) 2022-02-18 23:54:30 +01:00
Gabriel Visser
85b2be9721
Fix iif template example typo (#21529) 2022-02-07 11:59:37 +01:00
PCR-2020
66604b8702
Removed ambigious numbers in example (#21505) 2022-02-06 18:25:25 +01:00
Jan Bouwhuis
9565d350bd
Template filter is_defined missing documentation (#21459) 2022-02-03 14:56:08 +01:00
Franck Nijhof
a5cd7fc19b
Merge branch 'current' into next 2022-01-23 20:11:56 +01:00
indexample
89b5f91b0b
Update templating.markdown (#21227) 2022-01-17 14:48:55 +01:00
Eiko Wagenknecht
59cbb73907
Add missing "can" in templating docs (#21196) 2022-01-14 22:44:08 +02:00
Petro31
26a1714b1a
Add is_number test (#21110) 2022-01-10 13:01:52 +01:00
Jan Bouwhuis
04afa8997e
Explain mqtt templating and mention attribute use (#20735) 2022-01-05 19:04:57 +01:00
avee87
906b9af95c
Update template min/max/average documentation (#20448) 2022-01-04 11:01:20 +01:00
Franck Nijhof
b0d25401a2
Merge branch 'current' into next 2021-12-27 20:51:43 +01:00
Franck Nijhof
b76d2db200
Add iif (immediate if) template function/filter (#20769)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-22 12:35:29 +01:00
Brynley McDonald
c6a9cd2366
Add documenation for slugify template filter (#20069)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-21 11:54:09 +01:00
Daniel D'Abate
c8dda7478f
Fix timestamp_custom example (#20739) 2021-12-18 15:57:46 +01:00
Jan Bouwhuis
09ab7e50e5
Improve readability pack and unpack template examples (#20734)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-17 11:01:15 +01:00
Jan Bouwhuis
d56e16f934
New template filters pack and unpack (#20547)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-12-03 09:22:47 +01:00
Jan Bouwhuis
10dd348db8
Revert "Add bytes support to bitwise template filters" (#20552) 2021-12-03 08:31:01 +01:00
Jan Bouwhuis
fe5dee1459
Revert "Add template int filter / function documentation" (#20551) 2021-12-03 08:29:56 +01:00
Jan Bouwhuis
b0c7969a73
Add template int filter / function documentation (#20471) 2021-11-30 15:25:52 +01:00
Jan Bouwhuis
d721c7731a
Add bytes support to bitwise template filters (#20412) 2021-11-29 13:56:29 +01:00
Jan Bouwhuis
e1ea19f9f9
ISO format for timstamp_local and timestamp_utc (#20424) 2021-11-24 19:58:11 +01:00
Jan Bouwhuis
777a78bf6e
Add UNIX timestamp detection to the as_datetime template filter (#20394) 2021-11-24 09:52:13 +01:00
Marcel van der Veldt
4d44e2f987
add integration entities helper (#20371)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-11-20 14:47:22 -08:00
Chris Browet
eab53f8c2c
Allow overriding ensure_ascii in the "to_json" template filter (#20218)
* to_json: add ensure_ascii

* Update source/_docs/configuration/templating.markdown

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* lint

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-11-08 17:27:45 +01:00
Petro31
0495cbf1c4
Add template average filter and function. (#19805) 2021-10-26 22:44:11 +02:00