Skip to content

Commit de9907b

Browse files
Update README.md by adjusting sqllite table name (#112)
* Update README.md by adjusting sqllite table name corrected 'short_term_statistics' to 'statistics_short_term' * Also updated README for MariaDB --------- Co-authored-by: Patrick Vorgers <[email protected]>
1 parent 2e7a8ba commit de9907b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Database/MariaDB/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ Importing historical energy data into Home Assistant is not simple and requires
8383
#### Load import script
8484
- Load SQL file `Import Energy data into Home Assistant.sql` from the MariaDB directory (File -> Load SQL file - Yes on auto-detect file encoding)
8585
- Validate the schema version of the database (Select table: schema_changes and select the data tab on the right and scroll down to the bottom)
86-
- The script has been tested with schema version 48. With higher versions you should validate if the structure of the `statistics` and `short_term_statistics` tables have changed.
86+
- The script has been tested with schema version 50. With higher versions you should validate if the structure of the `statistics` and `statistics_short_term` tables have changed.
8787
- Used fields in table `statistics`: `metadata_id`, `state`, `sum`, `start_ts`, `created_ts`
88-
- Used fields in table `short_term_statistics`: `sum`
88+
- Used fields in table `statistics_short_term`: `sum`
8989

9090
#### Determine the sensor configuration
9191
##### Option 1: Use the `Sensors.py` script (GUI)

Database/SQLite/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Importing historical energy data into Home Assistant is not simple and requires
6161

6262
#### Load import script
6363
- Validate the schema version of the database (Browse Data -> Table: schema_changes)
64-
- The script has been tested with schema version 48. With higher versions you should validate if the structure of the `statistics` and `short_term_statistics` tables have changed.
64+
- The script has been tested with schema version 50. With higher versions you should validate if the structure of the `statistics` and `statistics_short_term` tables have changed.
6565
- Used fields in table `statistics`: `metadata_id`, `state`, `sum`, `start_ts`, `created_ts`
66-
- Used fields in table `short_term_statistics`: `sum`
66+
- Used fields in table `statistics_short_term`: `sum`
6767

6868
#### Determine the sensor configuration
6969
##### Option 1: Use the `Sensors.py` script (GUI)

0 commit comments

Comments
 (0)