Student Techlife Student Techlife
  • Categories
    • Student Life
    • Technology
    • Home Assistant
    • 3D Printing
    • DIY
  • My House
  • My Projects
    • Home Assistant Glow
    • NIPKaart
    • Teddy Bear Hunting
    • NFC Scanner
  • Who am I?
  • Contact
0
842 Followers
165 Followers
Student Techlife Student Techlife Student Techlife
  • Categories
    • Student Life
    • Technology
    • Home Assistant
    • 3D Printing
    • DIY
  • My House
  • My Projects
    • Home Assistant Glow
    • NIPKaart
    • Teddy Bear Hunting
    • NFC Scanner
  • Who am I?
  • Contact
  • Home Assistant
  • Integration

easyEnergy market prices with new integration in Home Assistant

  • February 26, 2023
  • Klaas Schoute

Last month I wrote a blog about the EnergyZero integration, but this month we are going to talk about a new integration for easyEnergy! In this blog more information about the new integration, which will be available from the Home Assistant 2023.3 (March) release.

Company logo

easyEnergy is a company with dynamic energy contracts where you can buy/sell electricity/gas according to day-ahead market prices, since 2018 the company has been taken over by energy supplier NieuweStroom.

Why then does the integration still carry the name easyEnergy?
Currently, both companies display energy prices on their websites that come from the easyEnergy API. Should this ever change in the future, I will reconsider whether everything should be renamed to the name of the new API source.

The integration

The integration consists of 3 services, one for gas and two for electricity. This is partly because the API returns separate prices for what you use (buy) or what you return (sell). At the moment there is no service for gas that you return (sell), because I don’t know of any case where this applies.

Electricity market prices (usage / return)

Screenshot of all the energy usage entities

The price can be different every hour and the new prices for the next day are published every afternoon around 14:00 UTC time. The following different types of entities are created:

  • The current and next hour electricity market price
  • Average electricity price of the day
  • Lowest energy price
  • Highest energy price
  • Time of day when the price is highest
  • Time of day when the price is at its lowest
  • Percentage of the current price compared to the maximum price of the day

Gas market prices

For gas service, only the current and next hour entity are created, because the prices only change once every 24 hours. So it would not really be necessary to show the min and max, for example. The new price for the day will take effect in the morning around 05:00 UTC time.

More concrete information about this new integration can also be found in the documentation.

Please note that the integration does not support the mapping of every hour in Apexcharts via the attributes! This method is a workaround, that creates a bulk load of data in the state machine and is not accepted in core.

Who knows, maybe there will be better support for this in the future.

All-in price sensor template

The prices shown in the entities are raw prices that only include the 21% VAT. To determine the current all-in price you can use the template sensor below, which add the energy tax and storage costs. The templates below are based on added prices that easyEnergy communicates, you may still have to adjust them for your own situation.

Templates were last updated on: 6-2-2023

- sensor:
    - name: easyEnergy all-in current energy price
      unique_id: allin_energy_current_price
      icon: mdi:cash
      unit_of_measurement: "€/kWh"
      state_class: measurement
      state: >
        {% set energy_tax = 0.15245 %}
        {% set storage = 0.02178 %}
        {% set gvo = 0.00908 %}
        {% set current_price = states('sensor.easyenergy_today_energy_usage_current_hour_price') | float %}
        {{ (current_price + energy_tax + storage + gvo) | round(4) }}

You can make a similar template sensor for gas, but the added costs will be slightly different:

- sensor:
    - name: easyEnergy all-in current gas price
      unique_id: allin_gas_current_price
      icon: mdi:cash
      unit_of_measurement: "€/m³"
      state_class: measurement
      state: >
        {% set energy_tax = 0.59266 %}
        {% set storage = 0.1089 %}
        {% set region = 0.01903 %}
        {% set current_price = states('sensor.easyenergy_today_gas_current_hour_price') | float %}
        {{ (current_price + energy_tax + storage + region) | round(4) }}

Package on PyPi

Do you want to collect the easyEnergy data in your own way and process it in another project? Then take a look at the repository of the python package, that is also on PyPi. The integration in Home Assistant also uses this package.

Share
Tweet
Share
Klaas Schoute

Interaction technology (UX/UI) student who loves home automation, drones, open source projects and likes to take you on his adventure to the perfect smart student house.

Related Topics
  • energy
  • integration
  • market prices
Previous Article
  • Home Assistant
  • Integration

EnergyZero market prices with new integration in Home Assistant

  • January 11, 2023
  • Klaas Schoute
View Post
You May Also Like
View Post
  • Home Assistant
  • Integration

EnergyZero market prices with new integration in Home Assistant

  • Klaas Schoute
  • January 11, 2023
View Post
  • College
  • Home Assistant
  • Student Life

It’s a long time ago

  • Klaas Schoute
  • June 3, 2022
View Post
  • Home Assistant

First integration in Home Assistant!

  • Klaas Schoute
  • June 2, 2021
View Post
  • DIY
  • Home Assistant

Blitzwolf LT11 with ESPHome

  • Klaas Schoute
  • March 11, 2021
Green light in the bathroom
View Post
  • Home Assistant
  • Student Life

How I save water while showering🚿

  • Klaas Schoute
  • December 25, 2020
View Post
  • Home Assistant
  • Student Life
  • Technology

Is this going to be the future?

  • Klaas Schoute
  • November 4, 2020
View Post
  • Home Assistant
  • Student Life
  • Technology

Hello? What is your emergency? 🆘

  • Klaas Schoute
  • February 12, 2020
View Post
  • College
  • Home Assistant
  • Student Life
  • Technology

My cookingplate died 🍳

  • Klaas Schoute
  • December 30, 2019

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Author
Klaas Schoute
Interaction technology (UX/UI) student who loves home automation, drones, open source projects and likes to take you on his adventure to the perfect smart student house.
Recent Posts
  • easyEnergy market prices with new integration in Home Assistant February 26, 2023
  • EnergyZero market prices with new integration in Home Assistant January 11, 2023
  • Let’s contribute! Hacktoberfest 2022 October 2, 2022
  • 🅿️ NIPKaart project update August 22, 2022
  • It’s a long time ago June 3, 2022
Instagram
klaasnicolaas
When the weekend is almost over 😥
Iedereen een gelukkig nieuwjaar! 🥂
Finally received my @chonkerkeys last week, now online meetings are even more fun! 😁
Wauw wat een mooie show! Als je nog niet geweest moet je zeker gaan, kan nog t/m december 2022 (is alweer verlengd). #soldaatvanoranje #valkenburg #theaterhangaar
Follow


Student Techlife Student Techlife
  • Categories
  • My House
  • My Projects
  • Who am I?
  • Contact
Make a student life smarter

Input your search keywords and press Enter.