github rnovacek/homeassistant_cz_energy_spot_prices 0.9.0b1

pre-release4 hours ago

What's Changed

This beta introduces configurable price block searches. Each search finds a consecutive block of electricity prices and exposes it as a binary sensor for use in automations.

Price block searches

Price block searches are managed as individual entries under an electricity configuration. A search can:

  • find the lowest or highest-priced consecutive block
  • search today, plan for tomorrow, or use a fixed time window
  • use spot prices or prices calculated by the configured buy or sell template
  • use durations compatible with hourly and 15-minute electricity data
  • span midnight when using a fixed time window, such as 22:00–06:00

Each binary sensor turns on while its selected block is active. Its attributes include the start, end, minimum, maximum, and mean price together with the search configuration.

Upgrading from 0.8.3

Existing cheapest-block settings from 0.8.3 are migrated automatically into Today and Tomorrow price block searches. The released N-hour sensor identities are preserved so existing automations continue to work. No manual migration is required.

This release requires Home Assistant 2026.5.2 or newer.

Other improvements

  • Fixed cross-midnight searches retain the latest fully evaluated window until the next complete window is available, avoiding results based on partial data.
  • Adding, editing, renaming, or deleting a search no longer refetches OTE and CNB data.
  • Rapid consecutive search changes are serialized to avoid reload errors.
  • Buy or sell templates cannot be removed while a price block search depends on them.
  • Invalid legacy block definitions are skipped safely during migration.
  • Unpublished zero-value gas placeholders are ignored, including values restored from persisted data.
  • Search configuration details are visible directly on the integration page.

Beta feedback

Please pay particular attention to migrated automations, fixed windows that cross midnight, buy/sell template searches, and adding or reconfiguring multiple searches. Report unexpected behavior through GitHub Issues.

Full Changelog: 0.8.3...0.9.0b1

Don't miss a new homeassistant_cz_energy_spot_prices release

NewReleases is sending notifications on new releases.