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/_components/influxdb.markdown
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,62 @@ optional arguments:
98
98
- The step option defaults to `1000`.
99
99
100
100
101
+
## {% linkable_title Data import script %}
102
+
103
+
If you want to import all the recorded data from your recorder database you can use the data import script.
104
+
It will read all your state_change events from the database and add them as data-points to the InfluxDB.
105
+
You can specify the source database either by pointing the `--config` option to the config directory which includes the default sqlite database or by giving a sqlalchemy connection URI with `--uri`.
106
+
The writing to InfluxDB is done in batches that can be changed with `--step`.
107
+
108
+
You can control, which data is imported by using the commandline options `--exclude-entities` and `--exclude-domain`.
109
+
Both get a comma separated list of either entity-ids or domain names that are excluded from the import.
110
+
111
+
To test what gets imported you can use the `--simulate` option, which disables the actual write to the InfluxDB instance.
112
+
This only writes the statistics how much points would be imported from which entity.
0 commit comments