v0.1.41
What's New
New sensor: cheapest_charging_window_today
A timestamp sensor that surfaces the start of the cheapest contiguous 60-minute price window that still ends today (Home Assistant local time). Wire it straight into a Time trigger — no more onekommafive.get_cheapest_window service call for the common "charge the EV at the cheapest hour" automation.
- State: start of the window (
device_class: timestamp) - Attributes:
start,end,average_price(€/kWh),duration_minutes(60),slot_count(4) - Update cadence: re-evaluated at every quarter-hour boundary (
:00,:15,:30,:45) — as the day shrinks so does the eligible window set - State =
unknownonce less than 60 min remain today
Example automation:
trigger:
- platform: time
at: sensor.<system>_cheapest_charging_window_today
action:
- service: switch.turn_on
target:
entity_id: switch.your_ev_chargerDocs
README installation section simplified — the integration is listed in the HACS default store, so the custom-repository workaround is gone. Just search for "1KOMMA5°" in HACS and click Download.
Under the hood
Internal refactor only, no user-visible change. Collapsed mechanical boilerplate across entity.py, coordinator.py, binary_sensor.py and the diagnostic-sensor wiring (-121 LOC across four commits):
- Five identical entity base classes are now one typed generic
- Four asset-connectivity binary sensors collapse to one parameterised class
- Coordinator subclasses configure themselves via class vars instead of duplicated
__init__calls
All 117 tests stay green.
Full changelog
See CHANGELOG.md.