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

Port "Stromprotokollierungs-script" to adapter #138

Closed
DutchmanNL opened this issue Dec 6, 2018 · 12 comments
Closed

Port "Stromprotokollierungs-script" to adapter #138

DutchmanNL opened this issue Dec 6, 2018 · 12 comments
Assignees
Labels

Comments

@DutchmanNL
Copy link
Collaborator

DutchmanNL commented Dec 6, 2018

Based on the great script used already by quite a large amount of user this should be an native adapter for ioBroker :

  • Keep most logic as currenlty available in script
  • Add values / date for final bill
  • Make it adjustable of data should be handled komulative
  • Ensure propper configuration screen to select states which should be logged

etc

based on : https://github.com/hdering/homematic_verbrauchszaehler

@GermanBluefox
Copy link

GermanBluefox commented Dec 7, 2018 via email

@Apollon77
Copy link
Collaborator

And if counter are ot enough it could be etended for other aggregation functions, also would more hope to get it into that then creating a very specialized adapter

@Zefau
Copy link
Collaborator

Zefau commented Dec 7, 2018

I'm working on an adapter which is actually focused on a notifications being sent once a device is started or finishes (based on power usage).
I can add the statistics of the daily, monthly, quarterly, and yearly power usages as well as the resulted costs. With that basis, we can go further to reflect the additional requirements you have stated above.
For the current adapter, please see https://github.com/Zefau/ioBroker.meter-sockets
Please remark, that the statistics are not implemented so far. I will add them shortly.

@Zefau Zefau self-assigned this Dec 7, 2018
@Zefau Zefau added InProgress and removed Requested labels Dec 7, 2018
@DutchmanNL
Copy link
Collaborator Author

DutchmanNL commented Dec 7, 2018

Interesting, i basically already started it ;)

Hmmm

I will just continue with my Development as a big part is already done

Let's see what to do next after that, maybe we can integrate in existing adapter (statistics).

My main idea was to have an additional adapter for power management purpose.
But also as a framework to be used by other adapters

As example, we have several adapters for energy data.
The module I want to create could be used by existing adapters which only have to provide they're data and the logic runs basically behind. super user-friendly and no additional as adapter installation needed in specific cases

@DutchmanNL DutchmanNL self-assigned this Dec 7, 2018
@Zefau
Copy link
Collaborator

Zefau commented Dec 9, 2018

The current version 0.3.0 of ioBroker.meter-sockets includes a history of the power consumption.
Did you already created an adapter? Maybe we can align / join our development?

@DutchmanNL
Copy link
Collaborator Author

Great yes good idea we also discussed internally how to proceed so let's join forces!

Main idea :
We would like to use the statistics adapter for general statistics data and transformation, logging in time should be handle by history adapters (history, SQL, influx etc)

My idea was to create an additional NON module with functions to be used as power measurement.

This would allow us to:

  • have an power monitor adapter to select states to be logged
  • include the logic into others

As several adapters need this kind of logging i personally think that's the best way to do it.
Other adapters can call the function in NPM module and implement own logging within their adapter based on this backend.

I am working on the basics now the code will be on GitHub before next weekend

@OMCastle
Copy link

OMCastle commented Jan 6, 2019

A lot of people asre using the PulseCounter from Stall.biz.

https://www.stall.biz/produkt/pulsecounter-controller

It deliver the Counter and the calculated Power.
Please support the Counter to calculate the costs

@Zefau
Copy link
Collaborator

Zefau commented Jan 6, 2019

@OMCastle Have you tried https://github.com/Zefau/ioBroker.meter-sockets ?
@DutchmanNL How far is your development?

@DutchmanNL
Copy link
Collaborator Author

Alpha will be released this week.

Counting lisle will be part of version 1.0 please have a look at the enhancement request.

I got a script which can transform pulse counts to usage calculations which will be integrated in the code

@foxthefox
Copy link
Collaborator

for the sake of commenting, in my adapter statistics is a function which creates from incoming pulses an analog value and counts it up as consumption, like for gas meters or ferraris electric meters
its called sumCount
https://github.com/foxthefox/ioBroker.statistics/blob/master/doc/howto_de.md

@DutchmanNL
Copy link
Collaborator Author

for the sake of commenting, in my adapter statistics is a function which creates from incoming pulses an analog value and counts it up as consumption, like for gas meters or ferraris electric meters
its called sumCount
https://github.com/foxthefox/ioBroker.statistics/blob/master/doc/howto_de.md

Powermonitor will not be extended to translate pulses to wh/h, this should be handled with statistics monitor.
https://github.com/foxthefox/ioBroker.statistics

Development is in progress and alpha state, beta release will be available this weekend.
https://github.com/DutchmanNL/ioBroker.powermonitor

@DutchmanNL
Copy link
Collaborator Author

beta version released !

https://github.com/DutchmanNL/ioBroker.sourceanalytix

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

No branches or pull requests

6 participants