From 26ad2e256c4b049eb4a26fdc82804d1849ae2c8b Mon Sep 17 00:00:00 2001 From: Bob Anderson Date: Tue, 16 Jan 2018 12:21:59 -0800 Subject: [PATCH] Explain history order config flag (#4426) * add note and example for new history configuration flag to use include order * use better example entities --- source/_components/history.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/_components/history.markdown b/source/_components/history.markdown index 4bddad4fbba..b252d3b205f 100644 --- a/source/_components/history.markdown +++ b/source/_components/history.markdown @@ -87,6 +87,21 @@ history: - sensor.date ``` +If you'd like the order of display of the sensors to follow the way +they are listed in the included entity list, you can set the flag +`use_include_order` to True. + +```yaml +# Example configuration.yaml entry using specified entity display order +history: + use_include_order: True + include: + entities: + - sun.sun + - light.front_porch +``` + + #### {% linkable_title Implementation details %} The history is stored in a SQLite database `home-assistant_v2.db` within your configuration directory if the `recorder` component is not set up differently.