-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Article needs 'clarity' - specifically "Configuration Variables" #32666
Comments
Hey there @gjohansson-ST, @dougiteixeira, mind taking a look at this feedback as it has been labeled with an integration ( Code owner commandsCode owners of
|
I think on point 2 I think we can make that clearer that if you haven't done anything it uses the recorder db. So I think that's good feedback. On point 1 I'm not sure I get it. It gives a user an opportuniy to collect whatever info they want directly from the DB. Then the user needs to know what he's collecting and thereby setting the right UoM. It is a bit of an advanced integration so one needs to know what he's doing to use it. |
I agree that UoM (should make sense) but as I stated I have put in B, KB, MB and GB - and the value never seems to change. Always shows 126.## (even after setting to 3 decimal points). Once place it shows 2 places, the other it shows 3. Notice I have it set to B (bytes) and the DB is way larger than 126.84 bytes. |
I currently have 2 HA instances. The one which is shown above is my working one that has been up for 2+ years. I am building out a new one - which is currently using the 'pre-built-in' DB. |
But as that query returns You need to set the UoM that the query returns. Not what you maybe want to see in the UI. |
I am looking at that query - how/where does it 'specify' MB as the value? I am not tying to 'thick'. But also looking at the other one on my new HA (which uses the SQLite built-in DB - which in the documentation also does not "State" it is MB (one could deduce that perhaps looking at the formula used). My quandary which lead to the query is....on my brand new HA installation which has been up about a month. Has had 1.000 as the DB Size value since day 3 when I added the SQL Integration. It has never changed at all (no matter if it is B, KB, MB, GB) it just shows 1.000 (and the measurement after that changes to what I have put in, B, KB, MB, GB). |
Feedback
I am trying to use this to keep an eye on the DB size. Your variable unit_of_measurement does not indicate what choices are available B, KB, MB, GB, etc. (and if they are case sensitive). I have put in B, KB, MB and GB as choices - saved and restarted. I get the same value for each (I have it set to show 3 decimal places) and it never changes.
Also, I am using the DB which installs with HomeAssistant (I am going to assume that it is SQLite) - but might be helpful if this was specifically called out (rather than this):
SQLite
If you are using the
recorder
integration then you don’t need to specify the location of the database. For all other cases, addsqlite:////path/to/database.db
as Database URL.Just think it makes it a little easier, as not everyone is HA 'genius' level.
URL
https://www.home-assistant.io/integrations/sql/
Version
2024.5.2
Additional information
No response
The text was updated successfully, but these errors were encountered: