Green Planet Energy

The Green Planet Energy integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides real-time electricity pricing data from Green Planet Energy, a German renewable energy provider. It fetches hourly electricity prices and provides various sensors for energy optimization and monitoring. It visualizes the prices so that you can adapt your power consumption and shift it to cheaper hours.

Prerequisites

You don’t need to have an account with Green Planet Energy for this integration to work. However, the integration will probably only make sense if you are their customer with a dynamic energy tariff. For the setup, no additional information is required.

Configuration

To add the Green Planet Energy service to your Home Assistant instance, use this My button:

Manual configuration steps

If the above My button doesn’t work, you can also perform the following steps manually:

  • Browse to your Home Assistant instance.

  • Go to Settings > Devices & services.

  • In the bottom right corner, select the Add Integration button.

  • From the list, select Green Planet Energy.

  • Follow the instructions on screen to complete the setup.

Sensors

The Green Planet Energy integration provides the following sensors.

Current price

  • Current price: The current electricity price in EUR/kWh

Statistics

  • Highest price today: The highest electricity price for the current day
  • Lowest price day: The lowest electricity price during day hours (6:00-18:00)
  • Lowest price night: The lowest electricity price during night hours (18:00-6:00)

List of actions

The Green Planet Energy integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.

  • Get cheapest duration (green_planet_energy.get_cheapest_duration) Find the cheapest time window for a given duration in the selected time range.

For an overview of every action across all integrations, see the actions reference.

Examples

Find the cheapest time for your dishwasher

Your dishwasher needs 3.5 hours to run. This example shows how to create sensors that display when the cheapest 3.5-hour window occurs during the night.

Add the following to your configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file: After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file, restart Home Assistant to apply the changes. The integration is now shown on the integrations page under Settings > Devices & services. Its entities are listed on the integration card itself and on the Entities tab.

template:
  - triggers:
      - trigger: time_pattern
        hours: "*"
    actions:
      - action: green_planet_energy.get_cheapest_duration
        data:
          entity_id: sensor.green_planet_energy_current_price
          duration: 3.5
          time_range: night
        response_variable: cheapest
    sensor:
      - name: "Cheapest 3.5-hour start time"
        state: "{{ cheapest.start_time }}"
        device_class: timestamp
        attributes:
          average_price: "{{ cheapest.average_price }}"
          hours_until_start: "{{ cheapest.hours_until_start }}"
          duration: "{{ cheapest.duration }}"
          time_range: "{{ cheapest.time_range }}"

      - name: "Cheapest 3.5-hour time until start"
        state: "{{ cheapest.hours_until_start }}"
        unit_of_measurement: "h"
        state_class: measurement

      - name: "Cheapest 3.5-hour average price"
        state: "{{ cheapest.average_price }}"
        unit_of_measurement: "€/kWh"
        state_class: measurement

This creates three sensors:

  • sensor.cheapest_3_5h_start_time: Shows when to start your dishwasher.
  • sensor.cheapest_3_5h_hours_until: Shows how many hours until the optimal time.
  • sensor.cheapest_3_5h_average_price: Shows the average price during that period.

Removing the integration

This integration follows standard integration removal.

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. From the list of devices, select the integration instance you want to remove.
  3. Next to the entry, select the three dots menu. Then, select Delete.

Disclaimer

This plugin is third-party and not offered by Green Planet Energy eG.