Skip to content
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

Fetching Total Power Consumption #3

Open
polyphia opened this issue Dec 10, 2019 · 1 comment
Open

Fetching Total Power Consumption #3

polyphia opened this issue Dec 10, 2019 · 1 comment

Comments

@polyphia
Copy link

Hey there, came across this repo when reading through other forum on HA community .

Sorry this isn't really an issue but wanted to ask if you came up with something that could fetch the total electrical quantity in KW.h per day or total .

I also would very much like to be able to integrate these stats with my HA without having to go through the route of logging every single update to a separate database .

As of now I am using node-red-contrib-tuya-local for fetching instant readings and it works really well, updating everytime the app does .

Still haven't been able to come up with anything that gets the totals though .

Thanks !

@nalajcie
Copy link
Owner

Hi,
I'm not currently using HA (but may in the future), I did a quick-and-dirty script to push instantaneous data to InfluxDB/grafana.

I prettified it a little and published as a separate npm cli command, perhaps it can be modified to push data directly to HA (I haven't researched that). Other than that, You can look at dev.js as a playgroud about how to use the API).

The repo is here: https://github.com/nalajcie/tuya-cloud-to-influxdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants