3 min read

How much power went today? A daily report for the home and for charging the car

Every evening at 23:59 the phone shows how many kilowatt-hours and how much money went for the day and by what percentage it differs from yesterday. A Shelly EM meter collects the data for the home.

Level
Advanced
Active time
60–120 minutes

You open the electricity bill and don’t know which day came out expensive. A daily report on your phone tells you every evening how much has gone, how much it costs and whether it is more than yesterday.

What you will get

A notification at 23:59: “€2.25 · 15.8 kWh · ↑ 12% vs yesterday”. The numbers in the example are an illustration. In a system like Marto’s the amount also includes charging the electric car, but that is optional.

What we need

  • Shelly EM — one meter for the whole home. It measures power and energy through a clamp on the wire;
  • Home Assistant with the Shelly integration and the Energy panel;
  • The Home Assistant mobile app for the notifications;
  • If you also want the car charging separately: a second energy source for it. It is not mandatory.

The clamp and the power supply of the Shelly EM go in the electrical panel.

How it works

  1. The Shelly EM sends the home’s energy to Home Assistant in kWh.
  2. A “Utility meter” helper with a “daily” cycle counts the energy for the day and keeps yesterday’s value in the attribute last_period.
  3. The price is a multiplication of the daily kWh by the price per kilowatt-hour.
  4. At the end of the day an automation composes a message and sends it.

How it is at our place

Marto’s automation starts at 23:59. It collects the daily energy of the home and of the car charging, their daily costs and their yesterday values from last_period. The percentage is the difference from yesterday, and the arrow is up, down or “→” if there is no change. The message is “€… · … kWh · ↑ …% vs yesterday” and goes to two phones with the notification “Power for the day”. If yesterday is zero, the percentage is 0.

Steps

  1. Connect the Shelly EM to Wi-Fi and add it to Home Assistant through the Shelly integration. Place the clamp.
  2. Check that you have an energy sensor in kWh with a growing total number (state_class: total_increasing).
  3. Make a Utility meter with a “daily” cycle on this sensor. In the example below it is sensor.home_energy_daily.
  4. Put the price per kilowatt-hour in a “Number” helper, for example input_number.price_per_kwh. It is yours from the bill.
  5. Create the automation from the example and change the entity names and the notification.
alias: Daily power report (example)
triggers:
  - trigger: time
    at: "23:59:00"
actions:
  - variables:
      kwh: "{{ states('sensor.home_energy_daily') | float(0) }}"
      kwh_yday: "{{ state_attr('sensor.home_energy_daily', 'last_period') | float(0) }}"
      price: "{{ states('input_number.price_per_kwh') | float(0) }}"
      pct: >
        {{ ((kwh - kwh_yday) / kwh_yday * 100) | round(0) | int
           if kwh_yday > 0 else 0 }}
      arrow: "{{ '↑' if pct | int > 0 else ('↓' if pct | int < 0 else '→') }}"
  - action: notify.mobile_app_telefon  # replace with your service
    data:
      title: Power for the day
      message: >
        {{ (kwh * price) | round(2) }} · {{ kwh | round(1) }} kWh
        · {{ arrow }} {{ pct | abs }}% vs yesterday
mode: single

You paste it as a new automation through “Edit in YAML”. The entity names and the price are examples.

Checking the result

  • The day sensor grows through the day and resets at midnight;
  • The notification comes once, around 23:59;
  • On the first day there is no yesterday value: the percentage is 0, that is normal.

If it doesn’t work

  • The amount is zero → there is no last_period or the price is 0 → check the attribute and the price helper;
  • The numbers don’t grow → the sensor doesn’t have total_increasing → choose another sensor from Shelly;
  • No notification comes → the service name is wrong → see Developer tools → Actions.

Limitations

  • The report is a guide to consumption, not a substitute for the bill: tariffs, fees and network fees are not in the price per kilowatt-hour;
  • If Home Assistant is off at 23:59, there is no notification;
  • The Shelly EM is single-phase. For a three-phase connection you need a different meter.

Sources and verification status

Checked against the documentation and Marto’s Home Assistant (read-only), 22.11.2026.

At home

Marto

In Marto’s Home Assistant, an automation at 23:59 collects the energy of the home and of the car charging, compares it with yesterday and sends a notification to two phones.

Need a hand?

We can set up and install everything in this project. In some regions we install it ourselves — ask us.

Contact us

Related projects

Shelly EM single-phase energy meter with 2 channels + clamp (1x transformer 50A)

63,90 €
View parts

What you need

Added to cart

Real Home Automations

Sign in to your account

With a code sent to your email

Continue with Google
or

By continuing, you accept the Terms and Conditions and the Privacy Policy.