This setting calculation_enabled_condition only works for virtual power sensors, not for the daily fixed energy. I will also not add that.
Unfortunately I forgot/ignored to rename of uniq_id, so the new power sensor took on the old _energy id, thereby overwriting the historical kWh. I can crecalulate that, so no harm done there.
However, when I intended to use the service powercalc.increase_daily_energy it is not available in HA development view, only a powercalc.calibrate_utility_meter which is not documented - can I use that to set the intended/re-calculated kWh value of the new enegery sensor, so that I have the accumulated consumption?
I have added my Hue-lights through Zigbee2Mqtt. I can see the unavailable state within that add-on but i do not know how i can use this status for PowerCalc (the lights are never unavailable although they are unavailable in Z2M.
I am not using Zigbee myself so don’t know this addon. Powercalc just looks at the entities in HA. So when you have a light entity light.livingroom and it is unavailable in HA than the powercalc sensor should also be unavailable by default.
First of all the powercalc.increase_daily_energy service was only implemented a few days ago and is not released yet. But this will also only work with the daily energy sensors, not with the “standard” energy sensors.
You can create a feature request on github for that. I’ll see if I can implement something similar for the standard energy sensors.
Or you have to live with the fact you don’t have the historic stats anymore.
@bramski first of all thank you for all the work on this custom integration and everyone adding measuring values. The created sensors are perfect for low cost power measuring.
But I do have a request for the integration from a management perspective. Currently in the integrations dashboard PowerCalc is shown as a tile with directly all the sensors. Since I have a large amount of sensors I was wondering if this cannot be showned like the Shelly or ZHA integrations
It would be much easier to navigate through a devices or entities screen
No I can’t unfortunately, each powercalc entity needs it’s own configuration persisted. This is called a config entry, and these are represented like this in the list. This is how HA presents it and there is no way for me to customize that.
Each config entry provides devices and/or entities. In case of powercalc each config entry has one power, an energy sensor, and maybe utility meters.
It’s definitely a UX issue which can be made a lot better. When you have more than a few it becomes a nightmare to maintain. I have this same issue on my installtion with my shelly’s and ESP homes where I have more than 20 of each. Can’t find what I want and there is no way to search. There was a WTH post which suggested to have the option to display it in a list, same as entities, devices, helpers etc. WTH Can't view integrations as a list instead of cards?
I suggest you all to vote on that or provide feedback if you have a better idea.
Also see FR: Improvement to Integration 0-level UI · Issue #1403 · bramstroker/homeassistant-powercalc · GitHub
Thanks for the reply. Just placed a vote and hopefully this will be fixed in the future. For know I am mostly glad the integration is created and with a standard naming scheme and search management can be optimized.
Can you look into this? I think the 'showing group-data is a powerfull feature to your solution, so it should work with all type of sensors included in a group.
Possible workarounds (have not tried them yet)
to create the sensor outside of the group? - would that make a difference??
One of the objectives is to filter anything that has 0
However that addition of state under include does not yield any results. Tried variations but it either shows nothing or all sensors (incl 0). Also tried >1 in case there was some small value.
Any suggestions? It might be caused by how the entities are pulled from the ‘grouped’ sensor? Can it somehow be included in the template under filter?
I don’t know, I don’t see why this wouldn’t work.
When you evaluate this in developer tools {{state_attr("sensor.pwrctrl_use_heating_power", "entities") }} is it also returning the sensor.icehouse_heater_power entity_id?
I suggest you are better of asking this on auto entities topic or issue tracker, as this is not really specifically powercalc related.
Looking at auto entities documentation. It includes both filter.template and include entities, and than excludes any entities indicated with exclude.
So you should probably use exclude.
Unfortunately that does work. I have now tried many things and I can get it to work with non powercalc ‘groups’. Are you sure it’s not related to @Mariusthvdb his post here? Concerning entity_id
I agree, it is not a powercalc-bug, but I got this idea from you, and I think it will be brilliant for everyone using powercalc-groups, so I took a shot and hoped you had a solution
(Hoping it was something basic I’d missed)
I’ll do some more testing, and report to Auto Entities topic if I can’t figure it out
That should be unrelated, it’s only a suggested other way to include entities in the auto entities list, but you don’t have any issues with that. I did have a look into that 2 weeks ago but I cannot change that in powercalc btw because things are hardcoded in HA core.
Anyway back to the topic of excluding 0 watt entities.
I tested this on my installation and it’s working fine. Previously I had 8 entities having 0 watt, after changing the configuration all the 0 watt entities disappeared.
Not sure why this is not working on your installation. I suggest to create an issue on auto entities github when you can’t get the exclude to work properly.
I have several sensors configured exactly the same way and all of them work as expected.
Recently shelly unit controlling garden lights failed and I replaced it with the new one. After some initial issues to restore device’s and entities’ names to original state everything works fine, but this particular Powercalc sensor.
Related entity (light.shelly_garden_lights) exists and properly changes its state. I do not see any errors from Powercalc in log. What could be wrong here?
Thanks but the issue seems to be that if you define the filter as ‘template’ you cannot use the options within that. You can only use the options under ‘include’ (like in your example).
So trying to re-create an include that gives me the same result as the template. Not easy…
So below is already better but the combination of attribute filter ‘power’ combines with integration ‘powercalc’ does only show a small set of the power sensors. Further testing shows it’s the integration: powercalc filter that does not return all powercalc sensors (if I remove other filters).
It seems that sensors created lik below do not get tagged with integration ‘powercalc’ only the ones that are created virtually.
Another drawback is that the powercalc groups do not play nice in auto-entities. You would expect group: sensor.all_powercalc_power to work as a group filter (like it does for instance for lights or media players, but auto-entities does not play nice. @bramski Is there anything you can do about this or is this 100% on auto-entity side?