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

Power is in W not A #70

Open
sanderlv opened this issue Dec 8, 2023 · 4 comments
Open

Power is in W not A #70

sanderlv opened this issue Dec 8, 2023 · 4 comments

Comments

@sanderlv
Copy link

sanderlv commented Dec 8, 2023

I updated to the latest code and I get now Amps instead of Watt for:

      - name: ${devicename} current power
        id: ampere

But:
Power is in W
Current is in A

I noticed because I had in my old cofig:

  - platform: template
    name: ${devicename} - Current Power
    id: "power"
    unit_of_measurement: W
    lambda: return id(ampere).state * 230;

To get an idea of the consumed power, by calculating the power=current+voltage (P=UxI).

For the sake of completeness, I have this also:

  - platform: total_daily_energy
    name: "${devicename} - Day Consumption"
    power_id: "power"
    filters:
        # Multiplication factor from W to kW is 0.001
        - multiply: 0.001
        - throttle: 300s
    unit_of_measurement: kWh
    icon: mdi:clock-alert
@ervee
Copy link

ervee commented Dec 8, 2023

I read somewhere that the wording "current power" was a bit poorly chosen. I just changed the yaml to:

...

  • name: ${devicename} current Amperage
    id: ampere
    ...

Then add:

  • platform: template
    name: ${devicename} - Current Power
    id: "power"
    unit_of_measurement: W
    lambda: return id(ampere).state * 230;

  • platform: total_daily_energy
    name: "${devicename} - Daily Energy"
    power_id: "power"
    filters:
    # Multiplication factor from W to kW is 0.001

    • multiply: 0.001
    • throttle: 300s
      unit_of_measurement: kWh
      icon: mdi:clock-alert

And this works fine and is pretty much what you have.

Perhaps the "current power" in the default yaml example should be changed to "current draw" ?

@sanderlv
Copy link
Author

sanderlv commented Dec 8, 2023

Power is in W
Current is in A

Current Power means "current W" not A

...

@ervee
Copy link

ervee commented Dec 8, 2023

Or A power.

Now I'm just joking but Current Power doesn't mean anything IMHO. It is just a mistake the original author made. Perhaps @ginkage is willing to change it or just create a pull request incorporating the other usefull code.
I'm not the maintainer or this repo :)

@henrykuijpers
Copy link

@ervee Current power means "Power currently" or "Power right now", expressed in watts :p

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

3 participants