With ReduceCO2Today.org, you can connect real-time green energy forecasts to Home Assistant and build smart automations that save energy costs and reduce CO₂ emissions.
Home Assistant running (Docker, Raspberry Pi, or any supported platform)
Access to your configuration.yaml file
Obtain your API key from reduceCO2today.org
Find your (Country Code) and keep it handy
We’ll create REST sensors that pull green band forecasts from the ReduceCO2Today API.
📂 Steps:
configuration.yaml in an editor.🔍 After restart, check in Developer Tools → States for:
sensor.green_band_1_start → Start time of first green periodsensor.green_band_1_end → End time of first green periodsensor.green_band_2_start / _end → Second green periodsensor.green_band_3_start / _end → Third green periodIf you don’t have a smart plug yet, you can simulate your washing machine with a template switch.
📂 Add the dummy switch configuration (download: dummy_washing_machine.yaml) to your configuration.yaml, then restart.
You should now see switch.washing_machine in Developer Tools → States.
Now we’ll create an automation that turns on the washing machine at the start of the green period.
📂 Download the automation file: automation_green_washing_machine.yaml and add it via:
automations.yamlautomation: key).To control and monitor your automation:
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: