homeassistant-powercalc icon indicating copy to clipboard operation
homeassistant-powercalc copied to clipboard

Add tariffs by powercalc GUI

Open miwa4711 opened this issue 1 year ago • 1 comments
trafficstars

Checklist

  • [X] I have filled out the template to the best of my ability.
  • [X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • [X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

If I am right there is currently no feature in the GUI to add tariffs.

Describe the solution you'd like

Please extend GUI to add tariffs.

Describe alternatives you've considered

I have to use YAML instead for powercalc or use helper of HA.

Additional context

No necessary

miwa4711 avatar Feb 15 '24 07:02 miwa4711

Added with #2059. Will be in next release. You can select that in the last step of the GUI flow.

Screenshot 2024-02-18 at 10 13 15

bramstroker avatar Feb 18 '24 09:02 bramstroker

Hi bramstroker,

#2059 was part of v1.10.5., right? Currently I use v1.10.8. Today I tried to create a tariff but did not find it in the dialog of creating a real power sensor. Where can I find the dialog you show in your comment above?

miwa4711 avatar Feb 29 '24 16:02 miwa4711

It's only added on creating virtual power sensor. I'll consider to also add to real power dialog.

bramstroker avatar Mar 01 '24 20:03 bramstroker

I have implemented this with #2100 and #2099 To not polute the dialog with utillity meter options I have made this a separate step. This step is only presented when you toggle create utility meters to on. cycles and tariffs are selectable now.

I have implemented this separate step for "Daily fixed energy", "Real power sensor" and "Group" flows.

Will be part of next release. When you want to test you can install the master branch with HACS. Click reinstall and toggle "beta versions" checkbox.

bramstroker avatar Mar 03 '24 09:03 bramstroker

Where do we need to add the tariffs for them to show up? My existing tariffs are not coming up in the drop down because I have them defined in the YAML for my specific grid import and export sensors.

motoridersd avatar Mar 10 '24 15:03 motoridersd

After add tariffy my meters is Unavailable.

Edit: However, I checked it a couple of times - up to version 1.10.8 everything works, checking the utility metters option adds 4 counters. However, since version 1.11.0 I cannot in any way add a new sensor or edit the old one to have utility metters. It doesn't matter whether I enter tariffs or select the second option for time, utility metters never add themselves.

WMP avatar Mar 10 '24 21:03 WMP

To track the energy usage of my heat pump I entered 3 utility meters (daily, monthly yearly) and 4 tariffs for operating states ('Heating', Hotwater', 'Defrost', 'Others') into the GUI. PowerCalc generated 12 sensors, like " ...daily_heating" etc. Great!

What about the function descripted in the docu "overall utility meter you can add general to the list of tariffs"? Today I added the tariff "general" and PowerCalc generates just one sensor "... energy_daily", no sensor for monthly or yearly. And the value of sensor "... energy_daily" is wrong. Is "general" a reasonable option using the GUI?

miwa4711 avatar Mar 14 '24 09:03 miwa4711

After add tariffy my meters is Unavailable.

Edit: However, I checked it a couple of times - up to version 1.10.8 everything works, checking the utility metters option adds 4 counters. However, since version 1.11.0 I cannot in any way add a new sensor or edit the old one to have utility metters. It doesn't matter whether I enter tariffs or select the second option for time, utility metters never add themselves.

@WMP Please create a new issue and include relevant logs.

bramstroker avatar Mar 14 '24 16:03 bramstroker

To track the energy usage of my heat pump I entered 3 utility meters (daily, monthly yearly) and 4 tariffs for operating states ('Heating', Hotwater', 'Defrost', 'Others') into the GUI. PowerCalc generated 12 sensors, like " ...daily_heating" etc. Great!

What about the function descripted in the docu "overall utility meter you can add general to the list of tariffs"? Today I added the tariff "general" and PowerCalc generates just one sensor "... energy_daily", no sensor for monthly or yearly. And the value of sensor "... energy_daily" is wrong. Is "general" a reasonable option using the GUI?

@miwa4711 Could be a bug. Would be nice if this also works for GUI. I'll have a look at it, not sure when. Rather busy this week.

bramstroker avatar Mar 14 '24 16:03 bramstroker

@miwa4711 Should be fixed with #2128. Will be in next release. At least it will create the general sensor for all configured cycles. You are also saying it is "wrong". Please provide more information about that, what do you see and what do you expect.

bramstroker avatar Mar 16 '24 08:03 bramstroker

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Apr 16 '24 01:04 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Apr 21 '24 01:04 github-actions[bot]