Giter Site home page Giter Site logo

Comments (11)

bramstroker avatar bramstroker commented on July 18, 2024

This is actually working as expected.
The discovered smart plugs only provide a virtual power sensor for the self usage of the smart plug. They all consume a littlebit of energy, and Powercalc creates a power and energy sensor to get insights in these. These are called "Device power" by convention.
Entities for the actual power used by the connected appliance are already applied by the integration providing the smart plug.

To also include the existing power and energy sensors in your group (not the virtual "device power" ones) you can add the in Additional power sensors and Additional energy sensors options.

Hope this helps and clarifies things up for you.

from homeassistant-powercalc.

ChuckNorris9939 avatar ChuckNorris9939 commented on July 18, 2024

Okay Thanks. then I guess I just use the Additional sensors for the non virtual Plugs..

My thought was, when I enable Utility Meter after adding the Shelly Plug through discovey dont I have Powercalc power sensor then?
image

Does this not work because the Shelly Integration power sensor still exist in Background?

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 18, 2024

When you toggle utility meter for the "discovered" shelly plug profile, it only applies to the virtual power and energy sensor created by powercalc.
As that whole GUI configuration entry is purely for the self usage / device power of the smart plug.

When you also would like to create the utility meters for the existing power and energy sensors provided by the smart plug itself you can use the "Real power" option, see here: https://homeassistant-powercalc.readthedocs.io/en/latest/sensor-types/real-power-sensor.html.
When you've done that you can also add it as a member sensor to the group, and you don't have to use Additional power sensors and Additional energy sensors options in that case.

from homeassistant-powercalc.

ChuckNorris9939 avatar ChuckNorris9939 commented on July 18, 2024

I recreated 2 Sensors in GUI using Energy from real power sensor. One with utility meter enabled and one without.

image image

When i create a group they both dont show up in the list of available members.
I also reloaded hassio

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 18, 2024

By recreated you mean you removed the ones added by powercalc and created manually using "Energy from real power" option?
That means you'll lose the sensors listing the self usage of the plugs, as I can also see in your screenshot. The Device power sensors are not there anymore. I meant to say in my comment to add the "Energy from real power" additionally to the existing sensors from powercalc library.
But if you are not interested in the self consumption of the plugs you can of course remove them.

You mean they are not selectable here?
Screenshot 2024-04-05 at 13 08 50

from homeassistant-powercalc.

ChuckNorris9939 avatar ChuckNorris9939 commented on July 18, 2024

By recreated you mean you removed the ones added by powercalc and created manually using "Energy from real power" option?

Yes. I removed them and used this one:
image

I meant to say in my comment to add the "Energy from real power" additionally to the existing sensors from powercalc library.

Then i got one from library
and one from real power
Then I can select the one from library but this does not change behaivour.
or did I get it wrong?

You mean they are not selectable here?

Correct, the Energy from real power sensor ones from the screenshot dont show up there.

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 18, 2024

Could you share the diagnostics from the two integration entries you added?

Screenshot 2024-04-05 at 15 26 07

And screenshot of what you see in the Member entities dropdown?

That might help finding the issue.

from homeassistant-powercalc.

ChuckNorris9939 avatar ChuckNorris9939 commented on July 18, 2024

Sure
Plug 1: config_entry-powercalc-b911aa47e27e28bf6abee4b0828c60f9.json

Plug 4: config_entry-powercalc-a26ffec2a83a8a9f923ba3ca27a94a2d.json

image

PlusPlugS4 is the discovered one / from library : config_entry-powercalc-310939cde88624e10fadf695cadb5270.json

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 18, 2024

I have looked into the code and only powercalc entries created with "Virtual power (manual or library)" are listed here.
I'll have a look if I can also add the "Energy from real power" to be selected. Will need to do some testing and verification. Will come back on it soon.

from homeassistant-powercalc.

bramstroker avatar bramstroker commented on July 18, 2024

Fixed with #2187.
You can install the master branch with HACS to test.
Or wait until next release, but that will probably be next weekend.

from homeassistant-powercalc.

ChuckNorris9939 avatar ChuckNorris9939 commented on July 18, 2024

Great 👍 I'm gonna test with next release update.

from homeassistant-powercalc.

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.