PVPC Spain Electricity Optimizer for Openclaw

A specialized tool for tracking and optimizing Spanish PVPC electricity prices to minimize domestic energy costs.

didelco
v1.0.0
Jan 29, 2026
1
2.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pvpc-spain

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pvpc-spain using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PVPC Spain Electricity Optimizer?

The PVPC Spain skill provides developers and home automation enthusiasts with a programmatic way to access Spanish electricity prices for the 2.0TD tariff. By leveraging the public ESIOS API from Red Eléctrica de España, this tool classifies current prices into intuitive categories like High, Medium, or Low relative to the day's average. It is a powerful addition to the library of Openclaw Skills, enabling users to make data-driven decisions about their energy usage.

This skill is particularly useful for those looking to automate household tasks or monitor market trends without manual searching. Whether you are building a smart home dashboard or just want to save on your monthly bill, this utility streamlines the process of fetching and interpreting complex energy data. It offers a bridge between raw utility data and actionable insights for domestic users.

PVPC Spain Electricity Optimizer Use Cases

  • Determining the current electricity price and its relative cost level (High/Medium/Low) for immediate usage decisions.
  • Identifying the best time windows to run high-consumption appliances like washing machines or dishwashers to minimize expenses.
  • Automating energy-saving routines based on the 2.0TD tariff periods including Valle, Llano, and Punta blocks.
  • Finding the cheapest consecutive hours in a day to schedule electric vehicle charging or heavy industrial heating tasks.

How PVPC Spain Electricity Optimizer Works

  1. The skill queries the public ESIOS API to fetch the latest PVPC data for the 2.0TD domestic tariff.
  2. It processes the raw hourly data to calculate daily statistics, including percentiles and price averages for context.
  3. Users call specific Python scripts like get_pvpc.py or optimize_appliance.py to filter and analyze the data based on their specific needs.
  4. The skill outputs formatted text for human readability or raw JSON for programmatic integration into other Openclaw Skills workflows.

PVPC Spain Electricity Optimizer Setup

To get started, ensure you have Python installed on your system. No API tokens are required as the skill uses the public endpoint.

# Clone the repository and navigate to the directory
git clone <repository-url>
cd pvpc-spain

# Check the current electricity price
python scripts/get_pvpc.py --now

PVPC Spain Electricity Optimizer Data Schema & Taxonomy

The skill processes data provided by ESIOS and structures it for easy consumption. Below is the primary data mapping:

Field Description
price Electricity cost expressed in €/kWh.
classification Relative cost level: BAJO (<30th percentile), MEDIO, or ALTO (>70th percentile).
period Tariff category based on time: VALLE, LLANO, or PUNTA.
savings Calculated percentage saved compared to the daily average price.
duration Time window in hours for appliance optimization.

PVPC Spain Electricity Optimizer Advanced Features

  • Full JSON output support for all scripts using the --json flag to facilitate seamless multi-agent communication.
  • Custom percentile adjustment for finding cheap ranges via the --percentile parameter, allowing for flexible budget management.
  • Multi-hour appliance optimization that identifies the cheapest consecutive window for tasks requiring specific durations.
  • Integration-ready architecture that works with other Openclaw Skills to trigger smart home actions based on real-time price thresholds.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*