Closed DirkStorck closed 2 years ago
on the energy-sensor screenshot I can see the entities on the screenshot of the power-sensor not.
That is not the case if I look at a power-sensor of my light group for example.
Then provide a screenshot for light group power sensor and not for energy sensor. How should this be compared otherwise?
I have groups of plugs witch have energy- and power-sensors created but only the energy-sensor shows a value
Why do you think that 0 W is not a value - e.g. when everything is off? What are the values for the entities inside the group?
float
It is a surprise that this is working at all, if you are not starting to use default for the floats, Search HA documentation for this.
Why are you creating all these template kW power sensors? Powercalc is expecting all the sensors in the power group to be the same unit of measurement, all in W. Otherwise it will remove the non compatible power sensor from the group. That would be the reason you see 0.
Probably you see the following error in the logs:
Group member 'sensor.steckdose_kuche_power_consumption_kw' has another unit of measurement 'kW' than the group 'sensor.gruppe_kuche_plugs_gesamt' which has 'W', this is not supported yet. Removing this entity from the total sum.
Maybe I will have a look to convert units in the future, so a group can consist of power sensors from units W, kW, mW etc.
So long story short.
You should just add sensor.steckdose_tv_hd_power_consumption
to the group and get rid of the template sensors.
Hi, thank you! I think I did this because I had to high values in the sensor.
I will try that out...
on the energy-sensor screenshot I can see the entities on the screenshot of the power-sensor not. That is not the case if I look at a power-sensor of my light group for example.> Then provide a screenshot for light group power sensor and not for energy sensor. How should this be compared otherwise?> I have groups of plugs witch have energy- and power-sensors created but only the energy-sensor shows a value
My bad, wrong screenshot but the light group power sensor had entries....
Why do you think that 0 W is not a value - e.g. when everything is off? What are the values for the entities inside the group?
float
Because the plugs have been switched on all the time
It is a surprise that this is working at all, if you are not starting to use default for the floats, Search HA documentation for this.
Thanks for the hint
@DirkStorck Just focus on the group power sensors first and make sure all the power sensors added to there are W sensors, either the ones you create with powercalc or the existing ones you include using power_sensor_id
.
Than check under the power group attributes if all entities are listed correctly. And also check if the sum is correct.
So when you have 2 individual power sensors whith are 200 W and 300 W, the group sensor should show 500 W.
Next check if the group energy sensor is correct.
By default the energy sensor should show kWh
, When you use energy_sensor_unit_prefix: None
than the energy sensor will show wH
I have changed my configuration and have removed all template sensors and use the ones from the entity. But somehow the value for group
These are the plugs in the group witch are currently on
This is what I get for the daily group
And this is are the daily power sensor values
So if I could reset the daily power or energy sensor for any group would be great... UTILITY_METER.CALIBRATE didn't do anything
Thank you
You can reset the group energy and daily energy sensor using a service which powercalc provides. It's in the readme here. https://github.com/bramstroker/homeassistant-powercalc#resetting-energy-sensor
For the utility meters (daily, monthly etc) you have to use UTILITY_METER.CALIBRATE
, not sure why that is not working for you.
OK, thank you. Will try again.
@DirkStorck did you manage to get it to work? Can we close this issue?
Hi,
didn't had the time to look further into it till now, but yes issue can be closed. Working now. Thank you!
I even found a way to reset all sensors at one time reset-values-of-utility-meter
1 - remove powercal and sensors/groups from configuration.yaml. 2 - Restarting HA 3 - Remove the sensor from HA 4 - Restarting HA 5 - Deleting that device out of the ../homeassistant/.storage/core.restore_state file and then restarting HA. 6 - Once restarted, recreate the sensor with the same name and it was reset. I had to wait a minute or two for the energy meter to increase in value so the sensor would initialize. 7 - ADD powercal and sensors/groups from configuration.yaml.
hint to 3: To delete the senors I have used this page
thanks for posting the information. Can help others searching in the future. Closing this issue.
Hi, i have updated to v0.24.2. Everything is working fine so fare except one thing. I have groups of plugs witch have energy- and power-sensors created but only the energy-sensor shows a value
here the energy-sensor
and here the power-sensor
on the energy-sensor screenshot I can see the entities on the screenshot of the power-sensor not.
That is not the case if I look at a power-sensor of my light group for example.
Here are entities in the attribute section.
Here is my config:
Thank you!