grid-aware-energy-load-shifter
oleh mrbese
Coding Agents & IDEsRingkasan
Grid-aware energy load shifter for Home Assistant.
Deskripsi
Apa yang Dilakukan Skill Ini
Reads electricity prices, solar production forecasts, battery state of charge, and consumption data from Home Assistant to schedule deferrable household loads during cheapest rate windows. Supports EV charging, HVAC pre-conditioning, pool pumps, dishwashers, laundry, and water heaters. Also handles battery arbitrage and virtual power plant demand response signals.
Works with all major dynamic pricing providers (Nordpool, Tibber, Octopus Energy, Amber Electric, ENTSO-e) and controls multiple device types through a single Home Assistant interface, eliminating the need for separate per-device automations.
Kapan Menggunakannya
- Scheduling EV charging to overnight off-peak rate hours
- Pre-cooling home during cheap solar hours before afternoon peak pricing
- Deferring water heater to lowest-price window each day
- Charging home battery from grid at valley prices and discharging during peak
- Participating in utility demand response events to shed loads and earn payments
Contoh Alur Kerja
User asks: When is the cheapest time to run my EV charger tonight?
- 1
Run energy-summary to retrieve current electricity prices, solar forecast, and battery state
- 2
Read the hourly price array from the pricing entity's today/tomorrow attributes
- 3
Find the contiguous window matching the EV's estimated charge duration with the lowest total cost
- 4
Calculate estimated savings compared to charging at the current rate
- 5
Call switch/turn_on on the EV charger entity at the optimal start time
EV charger scheduled for 02:00-05:00 at $0.08/kWh, saving $1.84 vs charging now at $0.31/kWh
Persyaratan
- HA_URL environment variable (Home Assistant base URL, e.g. http://homeassistant.local:8123)
- HA_TOKEN environment variable (Home Assistant Long-Lived Access Token)
- Home Assistant instance with energy integrations configured
Instalasi
clawhub install mrbese/grid-aware-energy-load-shifterJalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.