Not much, other than I believe they are used via the same package, so from a HA perspective, it shouldn’t matter. I use MariaDB on my “production” system, and sqlite when testing.
Exactly how are you querying for lat & lon?
Or, wait. Do you mean you use those databases for HA’s recorder? Or are you using them some other way? If so, I don’t know anything about that.
it would appear (in mysql at least) that HA stores the data as is, without trunking floats to 2 decimals.
I don’t track entities that have more than 2 decimals so I don’t know if the issue is HA export, InfluxDB Import or Grafana Import/display…
Silly question: have you tried to change the decimals in Grafana?
So there’s a HA InfluxDB integration that pulls selected data from HA’s recorder database, and Grafana can graph information from the InfluxDB. Is that it? I guess I wonder why Grafana can’t just pull data directly from HA’s recorder database. But there must be a reason that’s escaping me.
InfluxDB is designed to work with time-series data. SQL databases can handle time-series but weren’t created strictly for that purpose. In short, InfluxDB is made to store a large volume of time-series data and perform real-time analysis on those data, quickly.
Sorry if this is a dumb question but i’m really new to HA and Life360.
Is there any way to do a couple of things:
Capture one of the values returned by the Life360 object, such as battery level, and have it defined as an entity that can then be added to a custom dashboard?
Is there any means to capture the same value and graph it over time?
Sorry if these are simple questions but as a new guy in the HA world i’m keen to learn more.
I finally went to DrZzzs youtube and saw what I missed that wasn’t in the instructions. Removing the Life360.conf file in the Config folder. Once I removed that file, it started working.
Well, that’s strange, because with the standard life360 integration in 0.95, it doesn’t use or even try to read that file. It should make absolutely no difference whether or not it’s there.
Or are you still using my custom integration with an older version of HA?
BTW, what DrZzza youtube? The only one I know of was obsolete before it was posted. Nice, but obsolete as far as installation instructions go.
EDIT: I just watched the youtube you were referring to. It was a little all over the place, but I guess that’s what those things are like. Anyway, he didn’t follow the instructions too well, but still got it working. He did some things he didn’t need to, like removing life360.conf, but as I said, that doesn’t matter.
I’ve update the instructions a bit since that youtube was made, and added Hassio specific instructions. I don’t use Hassio, so those are based on feedback from Hassio users. But I think I can simplify a bit more. (I was trying to be overly conservative.)
Anyway, it’s late and I’m rambling. Bottom line, removing life360.conf did not solve your problem. Something else you did must have fixed it. But, as long as it’s working for you now, that’s all that matters.
So I haven’t done this myself yet. But here is something that you can do:
you need to define an attribute in this case life360.batterylevel as a sensor using the template. Once you do that you just add it to your config file under sensors. It will automatically track it for you under % chart in history. Alternatively, you can use inflexdb and grafana and you can just graph the attribute.
Worse is influxdb can’t do data calculations so grafana can plot it for you. For example, I wanted to subtract my indoor and outdoor temperature but it only performs the calculation on one set of data at the time which is a bummer. We need an addon that just does the math.
For anyone that still needs to transition from the custom Life360 integration to the standard one in 0.95+, or is having problems, I just updated the instructions based on recent feedback. Hopefully it helps the transition go a little more smoothly.