From 954b986a526c3eb1b6a495642d79432e7f985668 Mon Sep 17 00:00:00 2001 From: William Bruno Date: Fri, 18 Mar 2022 21:34:12 -0400 Subject: [PATCH] add ledfx --- .gitmodules | 3 +++ addon-ledfx | 1 + coned-fetch/config.json | 2 +- coned-fetch/src/index.ts | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 160000 addon-ledfx diff --git a/.gitmodules b/.gitmodules index cef0264..2761010 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "coned-fetch"] path = coned-fetch url = https://github.com/jpoles1/coned-fetch +[submodule "addon-ledfx"] + path = addon-ledfx + url = https://github.com/hassio-addons/addon-ledfx.git diff --git a/addon-ledfx b/addon-ledfx new file mode 160000 index 0000000..bf3ffb2 --- /dev/null +++ b/addon-ledfx @@ -0,0 +1 @@ +Subproject commit bf3ffb2ae9d0599cd89cdbf12689b76a68433573 diff --git a/coned-fetch/config.json b/coned-fetch/config.json index 8d125e4..fc6a237 100644 --- a/coned-fetch/config.json +++ b/coned-fetch/config.json @@ -1,6 +1,6 @@ { "name": "ConEd Meter to Hass Supervisor API", - "version": "0.1.0c", + "version": "0.1.0d", "slug": "coned", "description": "ConEd Meter Reader to Hass Supervisor API", "url": "https://gitlab.intrepidnet.org/home-assistant-addons/~/tree/master/coned-fetch", diff --git a/coned-fetch/src/index.ts b/coned-fetch/src/index.ts index aa9f072..fedd91e 100644 --- a/coned-fetch/src/index.ts +++ b/coned-fetch/src/index.ts @@ -57,7 +57,7 @@ async function main() { return row.value !== null && row.value !== undefined; }) const latest_read = filtered_data[0]; - update_sensor(latest_read); +// update_sensor(latest_read); for (const row of filtered_data) { await energyModel.updateOrCreate({ startTime: new Date(row.startTime), endTime: new Date(row.endTime) }, { energy: row.value }).catch((e) => { console.log(chalk.red(`Err: ${e}`));