79 Commits

Author SHA1 Message Date
Anders Melchiorsen
c06dd5ef4b
Time-based templates update automatically now (#15360) 2020-10-28 10:41:07 +01:00
Sean Mooney
157a44a670
Remove all references to unused Developer Tools sidebar icons (#15010) 2020-10-07 21:53:27 +02:00
J. Nick Koston
6a955be048
Remove rate_limit directive from documentation as it is not shipping in 0.116 (#14909) 2020-10-07 17:13:04 +02:00
J. Nick Koston
91de604bab
Add explanation of the new template rate_limit directive. (#14631) 2020-10-07 17:12:57 +02:00
Franck Nijhof
f8b7591f47
Merge branch 'current' into rc 2020-10-07 12:26:34 +02:00
Jenny
131a435c3d
move configuration redirects (#14744)
* move configuration redirects

from source files in source\_docs\configuration into the dedicated source\_redirects file

* ✏️ Tweak

* ✏️ Tweak

Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
2020-10-02 10:58:15 +02:00
Jakob Schlyter
bf29290ba0
add timedelta_seconds() (#14384) 2020-09-12 07:31:59 +02:00
Franck Nijhof
58f7bd7009
Merge branch 'current' into next 2020-09-05 15:14:52 +02:00
J. Nick Koston
2b6869c188
Add support for as_local as a global and a filter (#14387) 2020-09-03 14:35:28 -05:00
tomlut
9c0fb35922
Corrected template example (#14365)
Corrected the example for square bracket notation. Without this change the open and closing quotes would be `'{{ value_json['`
2020-09-01 09:29:26 +02:00
Franck Nijhof
f5eeb86ab6
Templates in data & service parameters (making data_template & service_template obsolete) (#14292) 2020-08-24 17:50:53 +02:00
Jakob Schlyter
b68bd0684e
Template urlencode (#13983) 2020-07-13 18:18:18 +02:00
Sean Mooney
b8f6d29289
Remove reference to old icon on Templating page (#13444) 2020-05-15 01:27:43 +02:00
Kyle Gordon
fdab7fcec5
Clarify ignorecase (#12485)
Clarify the use of ignorecase and the need for Python style True/False
2020-03-22 21:42:59 +01:00
akasma74
fc44b3a2c3
add note on is_state_attr (#12169)
* add note on is_state_attr

Added a note about is_state_attr when attribute's value is None.
Based on https://community.home-assistant.io/t/can-someone-please-explain/128041 and https://community.home-assistant.io/t/is-state-attr-with-none-argument-to-test/173723

* ✏️ Tweak

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-02-27 13:36:43 +01:00
Alok Saboo
aa7a018464
Change i.e. and e.g. to i.e.,, and e.g., (#12162)
* Change i.e. and e.g. to i.e.,, and e.g.,

* Update textlintrc.json

* Update .textlintrc.json

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* added i.e.,

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-02-22 20:50:26 +01:00
akasma74
813f484b9c
time section: tweaks (#12077)
Added empty string before notes and enclosed the example in {%raw%}{%endraw%}
2020-02-14 08:22:06 +01:00
Franck Nijhof
6ead12efbc
Extends textlint Terminology list; part 5 (#12072)
* Extends textlint Terminology list; part 5

* Remove walkthrough from textlint

* Improve Default Configuration page links
2020-02-13 13:39:06 +01:00
Franck Nijhof
6c292ca062
Extends textlint Terminology list (#12065) 2020-02-12 14:56:50 +01:00
akasma74
b7be161bbe
Time section: wording clarified, urls updated (#11979)
* Time section: wording clarified, urls updated

There were some uncetrtanties/errors.
Urls updated to point to the latest python docs

* Update source/_docs/configuration/templating.markdown

Co-Authored-By: Franck Nijhof <frenck@frenck.nl>

* wording changed

* note rephrased/moved

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-02-11 19:57:57 +01:00
Ville Skyttä
4567163c1f Grammar and spelling fixes (#11455) 2019-12-14 18:16:50 +01:00
Tobias Perschon
7ef42bf1fc clarification of round modes (#11257) 2019-11-22 19:45:42 +01:00
mogsub
15b748cbda typo error (#11177) 2019-11-15 16:36:00 +01:00
Bas Nijholt
46aeeb0165 small syntax style fix (#11165) 2019-11-14 14:58:59 +01:00
SteveDinn
eca6eea498 Help for to_json and from_json template filters (#10952) 2019-10-22 22:55:03 -07:00
akasma74
bb642159c1 time: relative_time function - description added (#10847)
It seems like the function itself has been there for a while but no mention of it in HA docs.
2019-10-20 13:29:07 +02:00
Ketil Moland Olsen
e9e904705c Updated Jinja URLs (#10892) 2019-10-20 09:20:10 +02:00
Paul Sinclair
e446bebc63 📚Update URL's with sensor in docs folder (#10559)
* 📚Update URL's with sensor in docs folder

* 🔨Fix typo in link
2019-10-02 21:38:18 +02:00
Franck Nijhof
dcc7c10ce4
Rewrites all URLs in our website from components -> integrations 2019-10-02 00:35:28 +02:00
Dubh Ad
17d7e09f84 Fixing errors (#10267)
There's a couple of examples where `.state` should be appended, but isn't
2019-09-01 18:12:09 +02:00
Tomi Lehto
e21de0f104 Add documentation for arcus trigonometry functions (#9982) 2019-08-13 01:08:15 +02:00
Paulus Schoutsen
9c0308b489 Merge branch 'current' into next 2019-07-31 16:26:37 -07:00
gjbadros
5b67050231 Corrected an example (#10005)
This example is trying to draw a distinction but has two identical lines.  I suspect this came from a search and replace to switch to the newer states('') notation.
2019-07-29 20:10:24 +02:00
aschamberger
5d9270c795 adding docs for ord() template filter (#9962)
* adding docs for https://github.com/home-assistant/home-assistant/pull/25398

* ✏️ Tweak
2019-07-26 14:13:23 +02:00
Franck Nijhof
059d4f3537
Removes absolete code from Markdown files (#9902) 2019-07-19 01:15:19 +02:00
Paulus Schoutsen
fddf4241f2 Merge remote-tracking branch 'origin/current' into rc 2019-07-16 15:28:06 -07:00
Franck Nijhof
c464056402
Making our website faster, cleaner and prettier (#9853)
* 🔥 Removes octopress.js

* 🔥 Removes use of root_url var

* 🔥 Removes Octopress generator reference from feed

* 🔥 Removes delicious support

* 🔥 Removes support for Pinboard

* 🔥 Removes support for Disqus

* 🔥 Removes support for Google Plus

* ↩️ Migrate custom after_footer to default template

* ↩️ Migrate custom footer to default template

* ↩️ Migrate custom header to default template

* 🔥 Removes unused template files

* 🚀 Places time to read directly in post template

* 🚀 Removes unneeded capture from archive_post.html template

* 🔥 🚀 Removes unused, but heaving sorting call in component page

* 🚀 Merged javascripts into a single file

* 🔥 Removes more uses of root_url

* 🚀 Removal of unneeded captures from head

* 🔥 🚀 Removal of expensive liquid HTML compressor

* 🔥 Removes unneeded templates

* 🚀 Replaces kramdown with GitHub's CommonMark 🚀

* 💄 Adds Prism code syntax highlighting

*  Adds support for redirect in Netlify

* ↩️ 🔥 Let Netlify handle all developer doc redirects

* ✏️ Fixes typo in redirects file: Netify -> Netlify

* 🔥 Removes unused .themes folder

* 🔥 Removes unused aside.html template

* 🔥 Removes Disqus config leftover

* 🔥 Removes rouge highlighter config

* 🔥 Removes Octopress 🎉

* 💄 Adjust code block font size and adds soft wraps

* 💄 Adds styling for inline code blocks

* 💄 Improve styling of note/warning/info boxes + div support

* 🔨 Rewrites all note/warning/info boxes
2019-07-15 22:17:54 +02:00
Franck Nijhof
1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00
Franck Nijhof
368c941f7e
Merge branch 'current' into next 2019-07-05 12:31:20 +02:00
Franck Nijhof
ebca3218c7
🔥Removes linkable_title everywhere (#9772)
* Automatically create linkable headers

* Visually improve position of linkable header chain icon

* Do not auto link  headers on homepage

* Remove linkable_title everywhere

* 🚑 Re-instante linkable_title plugin as NOOP
2019-07-04 19:08:27 +02:00
Franck Nijhof
337b210cce Rewrites states.xxx -> states('xxx') (and similar) (#9736)
* Rewrites states.xxx -> states('xxx') (and similar)

* Adds template escaping on some places
2019-06-30 11:45:03 -07:00
Franck Nijhof
af37b002c6
Merge branch 'current' into next 2019-06-30 19:27:35 +02:00
akasma74
04ea9a1ebf notes on using states(xxx) vs states.xxx (#9687)
* notes on using states(xxx) vs states.xxx 

as per this discussion - https://community.home-assistant.io/t/using-better-templates-with-state/122912/14

* ✏️ Moved content to warning message.

* ✏️ Tweak
2019-06-28 22:16:17 +02:00
Penny Wood
4e9d88c40d Documentation for template expand (#9394)
* Documentation for template expand

* ✏️ Tweak
2019-06-22 19:44:03 +02:00
Franck Nijhof
1e46c4fcbe
Component(s) -> Integration(s) (#9656)
Signed-off-by: Franck Nijhof <frenck@addons.community>
2019-06-19 15:12:14 +02:00
akasma74
f6fc30974c Clarification of Templates using now() (#9111)
* Clarification of Templates using now()

The current content of that section is hard to understand and there is no example.
Hope the link to some examples will help.

* Minor changes
2019-04-03 17:15:55 -04:00
Brad Dixon
2085bd6343 Doc: Add as_timestamp as a Jinja filter. (#8905) 2019-03-11 13:21:43 +05:30
Ian Slinger
696831a242 Reorganise and fix some errors in the Templating docs.
There was some confusion about the use of filters in the HA extension,
in fact some of them were wrong.

Also merged the examples for the extensions into sections for each type so
they could be seen in context.
2018-11-04 19:00:39 +11:00
DubhAd
b6d9b8ba5b Clarity updates (#6889)
Added note about testing templates in the template tool

Added section about how `|` has priority over non-bracket operators

Some minor changes to steer people towards `states.('...')` rather than `states...state`.
2018-10-17 23:17:03 +02:00
Caswell1000
3cb46731b5 Update templating.markdown (#6871) 2018-10-16 23:22:52 +02:00