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

Reading kWh from POW #523

Closed
Dagobert1966 opened this issue Feb 4, 2018 · 12 comments
Closed

Reading kWh from POW #523

Dagobert1966 opened this issue Feb 4, 2018 · 12 comments
Assignees
Milestone

Comments

@Dagobert1966
Copy link

I have a POW to register the used power to charge my car.
The POW is comunicating with Domoticz, but I cannot seem to read the proper kW and kWh in Domoticz.
I've setup a virtual meter : Electric, Power and counter.
It seems to register the Energy #0 sensor of the POW.
How can I setup to measure kW and kWh?

@fork04
Copy link

fork04 commented Feb 5, 2018

Energy #0 is energy USED from start of Sonoff-Pow in Joules - https://en.wikipedia.org/wiki/Joule
image
You can map IDX here ^^^

@xoseperez
Copy link
Owner

xoseperez commented Feb 5, 2018

Active power gives you the current power consumption in W and, as @fork04 says, the energy field gives you the total aggregated energy since the device started in Joules (1kWh = 3600000J = 3.6MJ).

@Dagobert1966
Copy link
Author

Thanks all for the replies.
OK, so energy #0 is in Joules.
But how can I convert this in Domoticz in kWh?

@xoseperez
Copy link
Owner

Sorry, I can't help with that, I don't use Domoticz myself. The reason to use Joules is that that's the unit of energy in the IS.

@Dagobert1966
Copy link
Author

Thanks xoseperez.
Maybe someone else can help?

@xoseperez xoseperez added help wanted Extra attention is needed question domoticz labels Feb 5, 2018
@digitalesPL
Copy link

Id like this also for Home Assistant i guess its a simple maths inside the software? And some data output? I think there is suport for this in Tasmota?

@digitalesPL
Copy link

How to get to this information? I saw this on some other page regarding Sonoff POW and Tasmota software.
The presented information has the following meaning:

Message Unit Description
Total kWh Total Energy usage including Today
Yesterday kWh Total Energy usage between 00:00 and 24:00 yesterday
Today kWh Total Energy usage today from 00:00 until now
Period Wh Energy usage between previous message and now
Power W Current power load
Factor The ratio of the real power flowing to the load to
      |      |   the apparent power in the circuit 

Voltage | V | Current line voltage
Current | A | Current line current

https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-Pow

@xoseperez
Copy link
Owner

I have added the option to select between joules and kWh for energy reporting in the web interface. It's in the dev branch.

@xoseperez xoseperez added this to the 1.12.4 milestone Feb 26, 2018
@xoseperez xoseperez self-assigned this Feb 26, 2018
@xoseperez xoseperez added sensors staged for release and removed help wanted Extra attention is needed question labels Feb 26, 2018
@xoseperez
Copy link
Owner

This is staged for release.

@foncubierta
Copy link

Can you get the monthly power consumed?

@xoseperez
Copy link
Owner

No. If you need this kind of info I recommend you to log the minute consumptions to a database like InfluxDB and the use Grafana to graph daily/monthly/... consumptions

@hyteoo
Copy link
Contributor

hyteoo commented Jun 15, 2018

Easy fix for this would be to also associate the energy reset to a MQTT topic.
Currently this only seems to be implemented in the webUI... please correct me if I'm wrong.

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

No branches or pull requests

6 participants