---
title: "How much power went today? A daily report for the home and for charging the car"
description: "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."
canonical: "https://realhomeautomations.com/en/projects/daily-energy-report-home-and-car-charging/"
language: en-US
updated: 2026-11-23T16:24:03+00:00
---

# 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.

> Canonical HTML page: https://realhomeautomations.com/en/projects/daily-energy-report-home-and-car-charging/

- **Difficulty:** Advanced
- **Build time:** 60–120 minutes
- **Reading time:** 3 minutes

## Tools required

- Shelly EM (a single-phase meter with 2 channels and a clamp; one for the home)
- Home Assistant (with an energy sensor in kWh)
- The Home Assistant mobile app (for the notification)


## What readers will learn

- Get daily energy in kWh
- Turn the energy into an amount at your price
- Compare the day with yesterday and send a notification


## Skill requirements

- Create sensors and helpers in Home Assistant
- Edit an automation in YAML

## Project kit

- [Shelly EM single-phase energy meter with 2 channels + clamp (1x transformer 50A)](https://realhomeautomations.com/en/product/shelly-em-single-phase-energy-meter-with-2-channels-clamp-1x-transformer-50a/index.md)

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](https://realhomeautomations.com/bg/produkt/shelly-em-single-phase-energy-meter-with-2-channels-clamp-1x-transformer-50a/) — 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

- The Shelly EM sends the home's energy to Home Assistant in kWh.
- A "Utility meter" helper with a "daily" cycle counts the energy for the day and keeps yesterday's value in the attribute `last_period`.
- The price is a multiplication of the daily kWh by the price per kilowatt-hour.
- 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

- Connect the Shelly EM to Wi-Fi and add it to Home Assistant through the Shelly integration. Place the clamp.
- Check that you have an energy sensor in kWh with a growing total number (`state_class: total_increasing`).
- Make a Utility meter with a "daily" cycle on this sensor. In the example below it is `sensor.home_energy_daily`.
- Put the price per kilowatt-hour in a "Number" helper, for example `input_number.price_per_kwh`. It is yours from the bill.
- 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.

- [Shelly: Shelly EM](https://www.shelly.com/products/shelly-em-1-channel)
- [Home Assistant: Shelly](https://www.home-assistant.io/integrations/shelly/)
- [Home Assistant: Utility Meter](https://www.home-assistant.io/integrations/utility_meter/)
- [Home Assistant: Energy](https://www.home-assistant.io/docs/energy/)