v1.2.0 - PUN mode support (calculated/manual)
⚙️ What changed — PUN mode support
New behavior
The integration supports a PUN mode option (selected during config flow or from the integration Options):
- Calculated (default) — PUN is retrieved/averaged by the integration from hourly GSE zonal prices and used to compute the bill (this is the original behavior).
- Fixed — PUN is taken from a fixed numeric value entered by the user (option
fixed_pun_value, expressed in€/kWh). When set, the integration uses that fixed value for all PUN-dependent calculations.
UI / Config flow
During configuration (or in the Options flow) you will find a new dropdown labeled "Modalità di utilizzo del PUN" (PUN Mode) with choices:
Calcolato da GSE(calculated)Fisso(fixed)
If you choose Fisso, an additional numeric field appears: Valore del PUN fisso (fixed_pun_value in €/kWh).
If you choose Calcolato da GSE, no fixed value is required and the integration computes PUN sensors internally:
sensor.pun_mono_orario,sensor.pun_fascia_*, etc.
Both modes are available at setup time and later through Settings → Devices & Services → Your integration → Options.