Comments (5)
I have the same problem. Also the fetch_all_sensor_data
function returns None
for every sensor in the last_updated
field. I think both of these errors come from a recent change in database schema. last_updated
for example was replaced by last_updated_ts
.
from hass-data-detective.
Hmm to debug need to understand what is wrong with the data you are trying to access. You can see the queries being run in https://github.com/robmarkcole/HASS-data-detective/blob/master/detective/core.py so try and debug where this error is coming from
from hass-data-detective.
Hi, I started the core.py in jupyter lab (right?) and get this:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In [1], line 10
7 import pandas as pd
8 from sqlalchemy import create_engine, text
---> 10 from . import config, functions
13 def db_from_hass_config(path=None, **kwargs):
14 """Initialize a database from HASS config."""
ImportError: attempted relative import with no known parent package
from hass-data-detective.
I am having the exact same issue.
Did anyone get this solved? Thanks!
from hass-data-detective.
I have the same problem. Also the
fetch_all_sensor_data
function returnsNone
for every sensor in thelast_updated
field. I think both of these errors come from a recent change in database schema.last_updated
for example was replaced bylast_updated_ts
.
@bernikr
Wow, thanks! I just substituted all the occurrences of last_updated
into last_updated_ts
in all code and reinstalled the detective and it worked! Now, Instead of getting None for the the field you get timestamp numbers.
Conversion can be easily done by:
df['last_updated_ts'] = pd.to_datetime(df['last_updated_ts'], unit='s')
from hass-data-detective.
Related Issues (20)
- Query event table
- checkout traces
- Problem with View States section in Getting Started : 'HassDatabase' object has no attribute 'fetch_all_data' HOT 6
- Add streamlit UI to allow viewing historical data and make predictions HOT 3
- Add support for !include_dir_* HOT 10
- Tryout plotly time series
- Checkout jupyterlite HOT 3
- Column "domain" does not exist HOT 12
- OperationalError: no such column: domain HOT 1
- Add query on statistics tables
- CI action failing to to flake8
- Raspbian failed HOT 1
- Fix sql api HOT 3
- Add test.db for functional tests
- AttributeError: 'Engine' object has no attribute 'execute' when excuting detective.HassDatabase(db_url) HOT 3
- Updates to schema
- Wrong time format in functions.format_dataframe() output? HOT 2
- Error using Windows: expected str, bytes or os.PathLike object, not HassDatabase HOT 1
- AttributeError: 'str' object has no attribute '_execute_on_connection' HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-data-detective.