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
Hi, I'm trying to use the script to recover a hole of missing data in InfluxDB.
As I was using the SQLite DB created by HA 2022.8.1, I thought I should install the dependencies like so:
(.venv) user@debian:~/mig/migrate2influxdb$ python homeassistant2influxdb.py --type SQLite --database /mnt/hgfs/influxdb/image/home-assistant_v2.db --dry-run
option --dry-run was given, nothing will be writen on InfluxDB
Migrating home assistant database statistics, states to Influx database /mnt/hgfs/influxdb/image/home-assistant_v2.db and bucket homeassistant_missing
Traceback (most recent call last):
File "/home/user/mig/migrate2influxdb/homeassistant2influxdb.py", line 358, in <module>
main()
File "/home/user/mig/migrate2influxdb/homeassistant2influxdb.py", line 151, in main
cursor.execute(tmp_table_query)
sqlite3.OperationalError: near "SELECT": syntax error
Can you please suggest what I'm doing wrong?
I also tried downloading the same HA version listed in the README, but I get the same error.
Hi, I'm trying to use the script to recover a hole of missing data in InfluxDB.
As I was using the SQLite DB created by HA 2022.8.1, I thought I should install the dependencies like so:
When typing the last command I get this error:
Can you please suggest what I'm doing wrong?
I also tried downloading the same HA version listed in the README, but I get the same error.
Looking at the sources, it seems to fail on:
homeassistant2influxdb/homeassistant2influxdb.py
Lines 345 to 350 in c25dc11
but if I run the SELECT statement using SQLite on the same database, it seems to be working...
The text was updated successfully, but these errors were encountered: