Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

How To Save Sensor Data To MySQL Database?

$
0
0

@AaronCake wrote:

I have several sensors receiving data from an energy monitor that I would like to record in a more efficient and permanent format than the HA database. Primarily because the HA database saves everything as JSON strings instead of the native DB data types which bloats the database by a factor of 100 or so and makes it inefficient to run queries.

First thought was to just use the SQL Sensor and put the states into the QUERY variable. Doesn’t work as it looks like templates are not accepted in the QUERY variable.

Searched around a bit and couldn’t find a solution. Anyone have an idea?

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>