From 52097a9705d09a9e247f89b943ef6fd43f04ab06 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 25 Mar 2018 12:35:32 -0400 Subject: [PATCH] Need to move to MariaDB. --- config/packages/twitter.yaml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/config/packages/twitter.yaml b/config/packages/twitter.yaml index 5ee4adf9..85a4eb2b 100755 --- a/config/packages/twitter.yaml +++ b/config/packages/twitter.yaml @@ -23,22 +23,22 @@ notify: ### Building out some Historical stats for tweeting. ##################### sensor: - - platform: sql - db_url: sqlite:///config/home-assistant_v2.db - queries: - - name: "Solar 24h" - column: 'solar_kwh' - unit_of_measurement: 'kWh' - query: >- - SELECT ROUND(SUM(solar_kwh), 2) AS solar_kwh - FROM ( - SELECT AVG(state) AS solar_kwh - FROM states - WHERE entity_id = 'sensor.solar_now' - AND state != 'unknown' - AND last_updated >= DATE_SUB(UTC_TIMESTAMP(), INTERVAL 24 HOUR) - GROUP BY HOUR(last_updated) - ) AS total_kwh; + # - platform: sql + # db_url: sqlite:///home-assistant_v2.db + # queries: + # - name: "Solar 24h" + # column: 'solar_kwh' + # unit_of_measurement: 'kWh' + # query: >- + # SELECT ROUND(SUM(solar_kwh), 2) AS solar_kwh + # FROM ( + # SELECT AVG(state) AS solar_kwh + # FROM states + # WHERE entity_id = 'sensor.solar_now' + # AND state != 'unknown' + # AND last_updated >= DATE_SUB(UTC_TIMESTAMP(), INTERVAL 24 HOUR) + # GROUP BY HOUR(last_updated) + # ) AS total_kwh; - platform: history_stats name: Doorbell Presses