I have 2 different electricity prices. Night and day

Hello people,

I am pretty new to HA, I have just startet du build up my HA. I have searched on topics, and found some that are like my topic, but I don’t understand how to write the command. What kind of card do i use to make this.
This is how it is: Weekday from 06.00 - 22.00 = 0.90 NOK/kWh, 22.00 - 06.00 = 0.80 NOK/kWh. In weekends from Friday 22.00 to Monday 06.00 I pay 0.80 NOK/kWh.

I hope HA can sum up my monthly costs, and a card that show me the current price. Well, I know, but my family dosent. :slight_smile:

Thank you very much

Hello,

Yes HA will be able track and calculate costs - no need to create a card.
The Energy Dashboard, is there to track and show costs.

As for the 2 rates - there are many ways to to this, you can create an automation that based on time updates an input number helper.
Then you can use that input helper entity, as the cost input into the energy dashboard.

You will need something to track consumption or are you getting that detail from your provider via an API / integration?

Yes, I have something to track my consumption. I have a little tracker in my fuse cabinet. :slight_smile: I tried energy dashboard, but my consumption tracker does not pop up. I need to learn more about energy dashboard.

My plan was to have a cost card in my main dashboard. :slight_smile:

Once you have the consumption data available in HA, you will be able to create a card like that.

This is what I have to show the cost of electricity:

To get to this point, you need a couple of things:

1: Consumption Data - the tracked in the Fuse Cabinet
2: Utility Meter Helper - HA Dashboard → Setting → Devices & Services → Helper → Create helper → Utility meter. You will need to setup 2 Tariffs - for Peak (0.90 NOK/kWh) and Off-Peak (0.80 NOK/kWh)
3: The Utility helper will then provide the sensors that shows the consumption for Peak and Off-Peak that you can use to calculate the costs.

Thank you, I will try this. Sorry for late answer. :slight_smile:

What kind of card did you start with, to make your this card? Just an empty card?

Mine is very basic, it is just tile cards grouped together in the dashboard.

Focus in one of them, this is just a card showing the power - peak period (energy) consumption for the month to date

image

type: tile
entity: sensor.whole_house_monthly_peak
name: Peak Month to Date
vertical: false
hide_state: false
show_entity_picture: false
features_position: bottom

This data comes from the Utility Meter Helper with the two tariffs - Peal and Off-Peak

Perfect, will try. Thank you :slight_smile: