Giter Site home page Giter Site logo

Comments (17)

klaasnicolaas avatar klaasnicolaas commented on June 14, 2024 1

The calculation: https://github.com/klaasnicolaas/home-assistant-glow/blob/master/home_assistant_glow.yaml#L111

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024 1

Great, many thanks. Now my values are correct.
I have to buy a coffee/beer for you man :D

from home-assistant-glow.

klaasnicolaas avatar klaasnicolaas commented on June 14, 2024 1

@Snobs76 Maybe I should setup the sponsorship option in Github ๐Ÿ˜… Beer and coffee is not my taste, that's why I have a buy me a fanta button on my HA config page ๐Ÿคฃ

@miv777 for 3200 imp/kWh it would be: 18.75 and 0.0003125.

from home-assistant-glow.

klaasnicolaas avatar klaasnicolaas commented on June 14, 2024

This question is difficult to answer, as in I don't know your situation and therefore cannot say whether the sensor is right/wrong ๐Ÿ˜…

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024

Some example:
If i have a power consumption 250W, then i need 4 hours to get 1kwh, right ?
But the energy total sensor calculates 1.5kwh in one hour with this 250W that I use at night.
There is anywhere a calculation error inside the sensor. Actually he said I have used 60kwh at 24h and this is to much, or for today until now 32.6kwh. Iยดm not the energy saver and i have 12-15kwh at a day (Home Office etc.).

But where is my error, I have 5000 Imp per Kwh, this is is in yaml factor 12 and looks good, but not the energy total.

from home-assistant-glow.

klaasnicolaas avatar klaasnicolaas commented on June 14, 2024

What if you change the multiply filter at total to: 0.0002?

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024

I will try it. 450W actually, set timer for 30min then will have some more information

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024

Wrong direction now it counts 0.450Kwh in ~5 Minutes at 450W consumption

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024

Damn idea.... do you have 10000 Imp per Kwh ?
If yes then I need instad of 0.0001 0.00005 for my 5000 Imp per Kwh
Is this possible ?

from home-assistant-glow.

klaasnicolaas avatar klaasnicolaas commented on June 14, 2024

The YAML file is based on 1000 imp/kWh. Based on the note from @stevetz I was thinking the value for you should be 0.0002 ๐Ÿค”

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024

I will give your number another try :D

from home-assistant-glow.

klaasnicolaas avatar klaasnicolaas commented on June 14, 2024

We have been (re)calculating again and the values 12 and 0.0002 must be correct. If the values are still not correct, it may be due to the hardware. A sensor that is too sensitive, causing it to count 1 pulse twice or missing a pulse.

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024

The 0.0002 looks good, Iยดm testing right know with the values. But how do I calculate the 0.0002.

from home-assistant-glow.

miv777 avatar miv777 commented on June 14, 2024

Please, tell me also what the settings will be when the value is 3200 imp/kWh
Thx ๐Ÿ˜

from home-assistant-glow.

Snobs76 avatar Snobs76 commented on June 14, 2024

Look at post from @klaasnicolaas there all the math that you need.

from home-assistant-glow.

stevetz avatar stevetz commented on June 14, 2024

Klaas I wonder if there is something further you could add to clarify the sums - I thought the comment i put in the PR would be enough - but seems a few issues with the multiply figures...

Maybe an addition to the readme, something like:

You will need to know the impulses per kWh, or imp/kWh of your meter. Most meters flash at 1000 imp/kWh.
Use this figure in the multiply variables for both the main sensor and the total.

e.g. for a meter with 3200 imp/kWh (ie for 'SMART' branded meters in the UK)
the multiply values will be:

sensor:
  - platform: pulse_meter
    ...
    filters:
      - multiply: 18.75 # calculated  = (60 / 3200) * 1000
    total:
      ...
      filters:
        - multiply: 0.0003125 # calculated = 1 / 3200

For more information see: https://esphome.io/components/sensor/pulse_meter.html#converting-units

(not sure if the e.g. is necessary?)

To be sure, I don't know whether its worth the additional language - or whether once I've submitted the PR to the esphome doc (plan to do this weekend) that might be enough?

As I'm here - I also wanted to ask if you thought of adding this to the 'cookbook' on esphome?

from home-assistant-glow.

klaasnicolaas avatar klaasnicolaas commented on June 14, 2024

I think it's wise to put some information in the readme, even if this information will soon also be on the esphome website.
As for the entry in cookbook, I'll come back to that later.

from home-assistant-glow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.