With reduceCO2today.org, you can easily connect real-time green energy forecasts to Home Assistant and build smart automations that secure our planet's future by reducing CO₂ emissions.
Home Assistant running (e.g., on Docker, Raspberry Pi, or any supported platform)
Access to your configuration.yaml file
Obtain your API key from reduceCO2today.org
Know your TSO Region in Germany (Amprion, TennT, TransnetBW, or 50Hertz)
First, we create a RESTful sensor that will fetch the green time recommendation from the API.
📂 Steps:
configuration.yaml file in an editor.🔍 After restart, check in Developer Tools → States for:
sensor.green_time_forecast (raw text)sensor.green_time_start (start time of the green period)sensor.green_time_end (end time of the green period)If you don’t have a real smart plug or washing machine entity, create a dummy switch.
📂 Add the configuration (download file: dummy_washing_machine.yaml) to your configuration.yaml, then restart.
You should now see switch.washing_machine in Developer Tools → States.
Now we create an automation that turns on the washing machine at the start of the green period.
📂 Download file: automation_green_washing_machine.yaml and add it via:
automations.yamlautomation: key).To make it visible:
automation.green_energy_automationIf the current time matches the forecasted green start time, the washing machine will automatically turn on. You’ll also see a notification confirming that the automation ran.
You’ve successfully connected reduceCO2today.org with Home Assistant and built your first green automation.
From here, you can: