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

Implement counts to calculate counts ==> watt #74

Open
DutchmanNL opened this issue Jun 27, 2019 · 4 comments
Open

Implement counts to calculate counts ==> watt #74

DutchmanNL opened this issue Jun 27, 2019 · 4 comments

Comments

@DutchmanNL
Copy link
Collaborator

as prototyped too be implemented after watt calculation fix

var VerbrauchImp;


VerbrauchImp = (new Date().getMilliseconds());
on({id: 'mqtt.0.ESP_Keller.Strom.Count', change: "ne"}, function (obj) {
  var value = obj.state.val;
  var oldValue = obj.oldState.val;
  if (getState("mqtt.0.ESP_Keller.Strom.Count").val == 1) {
    console.log('test');
    setState("mqtt.0.ESP_Keller.Strom.test2"/*Watt*/, (Math.floor(1440000 / ((obj.state ? obj.state.ts : "") - VerbrauchImp))), true);
    console.log((obj.state ? obj.state.ts : ""));
    console.log(VerbrauchImp);
    VerbrauchImp = (obj.state ? obj.state.ts : "");
  }
});

Schermafbeelding 2019-06-27 om 20 26 23

@DutchmanNL
Copy link
Collaborator Author

  • ensure counts per kWh are configurable

@Bastelritius
Copy link

Hi, as described in iobroker forum. I have implemented my Ferraris counter with an adruino to my GPIO port on my Raspberry. I have a 1 signal at my GPIO, when the red area is passing the Arduino sensor the signal will switch to 0 and back to 1 again. Means, I have an 0 impulse on my GPIO every round from the Ferraris counter.

@DutchmanNL
Copy link
Collaborator Author

implemented

First stable public release with basic functionality automation moved this from Needs triage to Closed Sep 30, 2020
@DutchmanNL DutchmanNL reopened this Jan 20, 2021
First stable public release with basic functionality automation moved this from Closed to Needs triage Jan 20, 2021
@DutchmanNL
Copy link
Collaborator Author

not sure why I closed this, not implemented yet sorry

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

No branches or pull requests

2 participants