Comments (6)
@eifinger thanks for raising this issue. Can I ask you to be a little more specific?
- I assume you are talking about this configuration option? https://www.home-assistant.io/docs/configuration/packages/
- What do you mean by "not possible"? Do you get any error messages?
from ltss.
Yes the option include_dir_named
.
I get the error equired key not provided @ data['ltss']['db_url']
Here is the failing config check in my repo:
https://github.com/eifinger/homeassistant-config/runs/672115430
from ltss.
Ok, I am not using the package syntax myself and really have no idea why this shouldnt work. Your config looks sound to me.
A suggestion is to try to move the regular recorder component into a package and see if that works: https://github.com/eifinger/homeassistant-config/blob/master/configuration.yaml#L67-L72
LTSS has an almost identical config so if the recorder component work as part of a package and LTSS does not, then something is not quite right...
from ltss.
I think the regular recorder component is also broken. But there the db_url is optional, so no error will be raised there.
The correct config_shema in my opinion should be:
CONFIG_SCHEMA = vol.Schema(
{
DOMAIN: FILTER_SCHEMA.extend(
{
vol.Required(CONF_DB_URL): cv.string,
}
)
},
extra=vol.ALLOW_EXTRA,
)
This works fine and solves the issue above.
from ltss.
@expaso thanks for digging in to this. I tested your suggested schema change in my setup (wo yaml package syntax) and it seems to work fine.
@eifinger do you care to give this (#7) a try to confirm that it solves your problem?
from ltss.
I can confirm that the PR solves the issue.
from ltss.
Related Issues (20)
- operation not supported on hypertables that have compression enabled HOT 17
- More reliable DB reconnection logic HOT 1
- constraint "ltss_pkey" of relation "ltss" does not exist causes migration to fail to v.2.1.0 HOT 3
- Reduce LTSS database size HOT 3
- DB might end up in an undefined state since there is no rollback on errors in the migration code
- psycopg2-binary cannot be installed on Raspi HOT 1
- cannot start (update schema) - duplicate entity HOT 1
- Please add additional examples HOT 3
- Unicode translation to SQL_ASCII encoding fails with tempature, winddirection and cubic-meter-gas unit_of_measurement HOT 1
- ValueError: A string literal cannot contain NUL (0x00) characters. HOT 2
- ltts is missing under integrations in 2024.4.3 (hassio) HOT 1
- Feature Request: commit_interval
- Capturing Switch States HOT 2
- password authentication failed for user "postgres" HOT 1
- sqlalchemy problem: "Requirements for ltss not found" HOT 8
- SQL alchemy error in home assistant v. 2023.2.3 HOT 2
- ltss won't load after update to ha-core 2023.3.2 HOT 5
- psycopg2 error in home assistant v.2023.3.4 HOT 8
- migrate existing recorder Database into ltss HOT 4
- Having trubble finding my data from grafana and pgadmin HOT 2
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 ltss.