diff --git a/atom.xml b/atom.xml index 1e87d7754f..019740e7e6 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
friendly_name
, it will be possible to group by entities’ friendly names as well, in addition to their ids.Starting with 0.36 the InfluxDB component has a new schema to store values in the InfluxDB databases.
+time
.FIELDNAME_str
, where FIELDNAME
is the state attribute, to avoid type conflicts.state
(former value).value
will always be stored as float.state
will always be stored as string.influxdb_import
db_migrator
(only used for Home Assistant 0.36)If you need to migrate your database, you may require to run the influxdb_migrator
script. Run the script after upgrade to 0.36 but before the first regular start of hass
version 0.36.
These are the steps the script will perform:
-DBNAME__old
) to store old data.DBNAME
database to DBNAME__old
database.DBNAME
database (using drop
then create
). DBNAME
database is now considered as the new database.DBNAME__old
database:DBNAME
database.DBNAME__old
database if needed.Example to run the script:
-$ hass --script influxdb_migrator \
- -H IP_INFLUXDB_HOST -u INFLUXDB_USERNAME -p INFLUXDB_PASSWORD \
- -d INFLUXDB_DB_NAME
-
-Script arguments:
-required arguments:
- -d dbname, --dbname dbname InfluxDB database name
-
-optional arguments:
- -h, --help show this help message and exit
- -H host, --host host InfluxDB host address
- -P port, --port port InfluxDB host port
- -u username, --username username
- InfluxDB username
- -p password, --password password
- InfluxDB password
- -s step, --step step How many points to migrate at the same time
- -o override_measurement, --override-measurement override_measurement
- Store all your points in the same measurement
- -D, --delete Delete old database
-
--h
option, you will get a help printout with a short explanation of the different options.'127.0.0.1'
.8086
.1000
.If you want to import all the recorded data from your recorder database you can use the data import script.
-It will read all your state_change events from the database and add them as data-points to the InfluxDB.
-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
.
-The writing to InfluxDB is done in batches that can be changed with --step
.
You can control, which data is imported by using the command line options --exclude_entities
and --exclude_domains
.
-Both get a comma separated list of either entity-ids or domain names that are excluded from the import.
To test what gets imported you can use the --simulate
option, which disables the actual write to the InfluxDB instance.
-This only writes the statistics how much points would be imported from which entity.
Example to run the script:
-$ hass --script influxdb_import --config CONFIG_DIR \
- -H IP_INFLUXDB_HOST -u INFLUXDB_USERNAME -p INFLUXDB_PASSWORD \
- --dbname INFLUXDB_DB_NAME --exclude_domains automation,configurator
-
-Script arguments:
-required arguments:
- -d dbname, --dbname dbname
- InfluxDB database name
-
-optional arguments:
- -h, --help show this help message and exit
- -c path_to_config_dir, --config path_to_config_dir
- Directory that contains the Home Assistant
- configuration
- --uri URI Connect to URI and import (if other than default
- sqlite) eg: mysql://localhost/homeassistant
-
- -H host, --host host InfluxDB host address
- -P port, --port port InfluxDB host port
- -u username, --username username
- InfluxDB username
- -p password, --password password
- InfluxDB password
- -s step, --step step How many points to import at the same time
- -t tags, --tags tags Comma separated list of tags (key:value) for all
- points
- -D default_measurement, --default-measurement default_measurement
- Store all your points in the same measurement
- -o override_measurement, --override-measurement override_measurement
- Store all your points in the same measurement
- -e exclude_entities, --exclude_entities exclude_entities
- Comma separated list of excluded entities
- -E exclude_domains, --exclude_domains exclude_domains
- Comma separated list of excluded domains
- -S, --simulate Do not write points but simulate preprocessing
- and print statistics
-
-influxdb:
diff --git a/docs/asterisk_mbox/index.html b/docs/asterisk_mbox/index.html
index e3da5d72a4..af01ae6a24 100644
--- a/docs/asterisk_mbox/index.html
+++ b/docs/asterisk_mbox/index.html
@@ -257,7 +257,13 @@ This assumes that your Asterisk PBX server is using () {
- Developer Tools
- hass
- - Scripts
+ - benchmark
+ - check_config
+ - credstash
+ - db_migrator
+ - ensure_config
+ - influxdb_import
+ - keyring
diff --git a/docs/autostart/macos/index.html b/docs/autostart/macos/index.html
index 5d27556811..6e92db6749 100644
--- a/docs/autostart/macos/index.html
+++ b/docs/autostart/macos/index.html
@@ -182,7 +182,13 @@ Home Assistant has been uninstalled.
diff --git a/docs/autostart/synology/index.html b/docs/autostart/synology/index.html
index 1d4b26d19d..ccaaadc9ac 100644
--- a/docs/autostart/synology/index.html
+++ b/docs/autostart/synology/index.html
@@ -197,7 +197,13 @@ stop on runlevel [06]
diff --git a/docs/autostart/systemd/index.html b/docs/autostart/systemd/index.html
index 498327eeb1..051fcf5369 100644
--- a/docs/autostart/systemd/index.html
+++ b/docs/autostart/systemd/index.html
@@ -267,7 +267,13 @@ WantedBy=multi-user.target
diff --git a/docs/autostart/upstart/index.html b/docs/autostart/upstart/index.html
index de2e6642a7..8b8b7d9185 100644
--- a/docs/autostart/upstart/index.html
+++ b/docs/autostart/upstart/index.html
@@ -286,7 +286,13 @@ esac
diff --git a/docs/backend/database/index.html b/docs/backend/database/index.html
index 03b0f5b0de..cf4edcbdc6 100644
--- a/docs/backend/database/index.html
+++ b/docs/backend/database/index.html
@@ -262,7 +262,13 @@ group.all_switches 8018
diff --git a/docs/backend/index.html b/docs/backend/index.html
index ad6027780e..56e0c0af76 100644
--- a/docs/backend/index.html
+++ b/docs/backend/index.html
@@ -171,7 +171,13 @@
diff --git a/docs/backend/updater/index.html b/docs/backend/updater/index.html
index 59eac54fa4..6af59761f5 100644
--- a/docs/backend/updater/index.html
+++ b/docs/backend/updater/index.html
@@ -333,7 +333,13 @@
diff --git a/docs/configuration/basic/index.html b/docs/configuration/basic/index.html
index f715a4f353..ef1b050aba 100644
--- a/docs/configuration/basic/index.html
+++ b/docs/configuration/basic/index.html
@@ -201,7 +201,13 @@ If you decide to expose your Home Assistant instance to the internet and forget
diff --git a/docs/configuration/customizing-devices/index.html b/docs/configuration/customizing-devices/index.html
index 90a9594c20..8393366077 100644
--- a/docs/configuration/customizing-devices/index.html
+++ b/docs/configuration/customizing-devices/index.html
@@ -274,7 +274,13 @@ New customize information will be applied the next time the state of the entity
diff --git a/docs/configuration/devices/index.html b/docs/configuration/devices/index.html
index fa035215ae..4c86c6f555 100644
--- a/docs/configuration/devices/index.html
+++ b/docs/configuration/devices/index.html
@@ -216,7 +216,13 @@ Each group consists of a name and a list of entity IDs. Entity IDs can be retrie
diff --git a/docs/configuration/events/index.html b/docs/configuration/events/index.html
index 0d0c5054e4..085b7f9896 100644
--- a/docs/configuration/events/index.html
+++ b/docs/configuration/events/index.html
@@ -314,7 +314,13 @@
diff --git a/docs/configuration/group_visibility/index.html b/docs/configuration/group_visibility/index.html
index edf2af7404..53fc408544 100644
--- a/docs/configuration/group_visibility/index.html
+++ b/docs/configuration/group_visibility/index.html
@@ -319,7 +319,13 @@ If you are using docker to run Home Assistant then the occasion.py script will b
diff --git a/docs/configuration/index.html b/docs/configuration/index.html
index a087ca606c..094c77ba81 100644
--- a/docs/configuration/index.html
+++ b/docs/configuration/index.html
@@ -201,7 +201,13 @@
diff --git a/docs/configuration/packages/index.html b/docs/configuration/packages/index.html
index de0b772935..0837a5f477 100644
--- a/docs/configuration/packages/index.html
+++ b/docs/configuration/packages/index.html
@@ -233,7 +233,13 @@ See the documentation about
+
+ Redirecting…
+
+
+ Redirecting…
+ Click here if you are not redirected.
+
+