Salta ai contenuti
ricarica intelligente

Home Assistant

Questa pagina mostra la versione nightly. Passa alla versione release.

Home Assistant instances in your network will be auto-discovered and suitable entities (e.g. sensor.*) will be suggested.

Ambiti di utilizzo

  • Contatore di rete
  • Produzione solare
  • Batteria
  • Contatore del caricabatterie
  • Consumatore intelligente

Parametri

NomeDescrizioneValoreLivello
uriHome Assistant URI
Esempio: http://homeassistant.local:8123
facoltativo
powerPower Entity

Entity ID for instantaneous power measurement in watts. The entity must provide numeric values only (e.g., "1234", not "1234 W").

Esempio: sensor.house_power
facoltativo
capacity [kWh]Battery capacity
Esempio: 50
facoltativo
minsoc [%]Minimum charge

Lower limit as configured on the battery system. Used by optimizer.

Predefinito: 0
Esempio: 25
facoltativo
maxsoc [%]Maximum charge

Upper limit as configured on the battery system. Used by optimizer and, on some devices, for grid charging.

Predefinito: 100
Esempio: 95
facoltativo
energyEnergy Entity

Entity ID for total energy in kWh (e.g. grid import or battery discharging). No daily or interval values.

Esempio: sensor.house_energy
avanzato
returnEnergyReturn Energy Entity

Entity ID for total energy in reverse direction in kWh (e.g. grid export or battery charging). No daily or interval values.

Esempio: sensor.house_return_energy
avanzato
currentL1L1 Current Entity

Entity ID for L1 current measurement in amperes

Esempio: sensor.house_current_l1
avanzato
currentL2L2 Current Entity

Entity ID for L2 current measurement in amperes

Esempio: sensor.house_current_l2
avanzato
currentL3L3 Current Entity

Entity ID for L3 current measurement in amperes

Esempio: sensor.house_current_l3
avanzato
voltageL1L1 Voltage Entity

Entity ID for L1 voltage measurement in volts

Esempio: sensor.house_voltage_l1
avanzato
voltageL2L2 Voltage Entity

Entity ID for L2 voltage measurement in volts

Esempio: sensor.house_voltage_l2
avanzato
voltageL3L3 Voltage Entity

Entity ID for L3 voltage measurement in volts

Esempio: sensor.house_voltage_l3
avanzato
socBattery State of Charge

Entity ID for battery state of charge in percent

Esempio: sensor.battery_soc
avanzato
modeNormalNormal Mode Script

Script to put home battery to normal operation. Required when any other mode script is set. The script is responsible for any necessary state changes on the HA side.

Esempio: script.battery_normal
avanzato
modeHoldHold Mode Script

Optional script to prevent the home battery from discharging.

Esempio: script.battery_hold
avanzato
modeChargeGrid Charge Mode Script

Optional script to grid-charge the home battery.

Esempio: script.battery_grid_charge
avanzato
minSocEntityMinimum SoC Entity

Optional entity ID providing the minimum battery state of charge in percent. Overrides the static minimum SoC value.

Esempio: number.battery_min_soc
avanzato
maxSocEntityMaximum SoC Entity

Optional entity ID providing the maximum battery state of charge in percent. Overrides the static maximum SoC value.

Esempio: number.battery_max_soc
avanzato
modeHoldChargeHold Charge Mode Script

Optional script to prevent the home battery from charging while discharging to cover the house load remains allowed.

Esempio: script.battery_hold_charge
avanzato
modeDischargeGrid Discharge Mode Script

Optional script to force-discharge the home battery to the grid.

Esempio: script.battery_grid_discharge
avanzato
insecureAccept self-signed certificatesavanzato
maxacpower [W]Maximum AC power of the hybrid inverter
Predefinito: 0
Esempio: 5000
avanzato
maxchargepower [W]Maximum charge power

Highest power the battery system can charge with. The optimizer plans with charging up to this power. Some devices also use it as grid charging power.

avanzato
maxdischargepower [W]Maximum discharge power

Highest power the battery system can discharge with. The optimizer plans with discharging up to this power. Smart mode assumes the battery supplies at most this power to vehicle charging.

avanzato
Esempio di configurazione per evcc.yaml

Se preferisci non configurare il dispositivo dall’interfaccia, puoi usare questo blocco YAML.

meters:
- name: my_grid
type: template
template: homeassistant
usage: grid
uri: http://homeassistant.local:8123 # Home Assistant URI
power: sensor.house_power # Power Entity, Entity ID for instantaneous power measurement in watts. The entity must provide numeric values only (e.g., "1234", not "1234 W").
energy: sensor.house_energy # Energy Entity, Entity ID for total energy in kWh (e.g. grid import or battery discharging). No daily or interval values. (optional)
returnEnergy: sensor.house_return_energy # Return Energy Entity, Entity ID for total energy in reverse direction in kWh (e.g. grid export or battery charging). No daily or interval values. (optional)
currentL1: sensor.house_current_l1 # L1 Current Entity, Entity ID for L1 current measurement in amperes (optional)
currentL2: sensor.house_current_l2 # L2 Current Entity, Entity ID for L2 current measurement in amperes (optional)
currentL3: sensor.house_current_l3 # L3 Current Entity, Entity ID for L3 current measurement in amperes (optional)
voltageL1: sensor.house_voltage_l1 # L1 Voltage Entity, Entity ID for L1 voltage measurement in volts (optional)
voltageL2: sensor.house_voltage_l2 # L2 Voltage Entity, Entity ID for L2 voltage measurement in volts (optional)
voltageL3: sensor.house_voltage_l3 # L3 Voltage Entity, Entity ID for L3 voltage measurement in volts (optional)
insecure: # Accept self-signed certificates, optional
meters:
- name: my_pv
type: template
template: homeassistant
usage: pv
uri: http://homeassistant.local:8123 # Home Assistant URI
power: sensor.house_power # Power Entity, Entity ID for instantaneous power measurement in watts. The entity must provide numeric values only (e.g., "1234", not "1234 W").
energy: sensor.house_energy # Energy Entity, Entity ID for total energy in kWh (e.g. grid import or battery discharging). No daily or interval values. (optional)
returnEnergy: sensor.house_return_energy # Return Energy Entity, Entity ID for total energy in reverse direction in kWh (e.g. grid export or battery charging). No daily or interval values. (optional)
currentL1: sensor.house_current_l1 # L1 Current Entity, Entity ID for L1 current measurement in amperes (optional)
currentL2: sensor.house_current_l2 # L2 Current Entity, Entity ID for L2 current measurement in amperes (optional)
currentL3: sensor.house_current_l3 # L3 Current Entity, Entity ID for L3 current measurement in amperes (optional)
voltageL1: sensor.house_voltage_l1 # L1 Voltage Entity, Entity ID for L1 voltage measurement in volts (optional)
voltageL2: sensor.house_voltage_l2 # L2 Voltage Entity, Entity ID for L2 voltage measurement in volts (optional)
voltageL3: sensor.house_voltage_l3 # L3 Voltage Entity, Entity ID for L3 voltage measurement in volts (optional)
insecure: # Accept self-signed certificates, optional
maxacpower: 0 # Maximum AC power of the hybrid inverter (W), optional
meters:
- name: my_battery
type: template
template: homeassistant
usage: battery
uri: http://homeassistant.local:8123 # Home Assistant URI
power: sensor.house_power # Power Entity, Entity ID for instantaneous power measurement in watts. The entity must provide numeric values only (e.g., "1234", not "1234 W").
capacity: 50 # Battery capacity (kWh), optional
minsoc: 0 # Minimum charge (%), Lower limit as configured on the battery system. Used by optimizer. (optional)
maxsoc: 100 # Maximum charge (%), Upper limit as configured on the battery system. Used by optimizer and, on some devices, for grid charging. (optional)
energy: sensor.house_energy # Energy Entity, Entity ID for total energy in kWh (e.g. grid import or battery discharging). No daily or interval values. (optional)
returnEnergy: sensor.house_return_energy # Return Energy Entity, Entity ID for total energy in reverse direction in kWh (e.g. grid export or battery charging). No daily or interval values. (optional)
currentL1: sensor.house_current_l1 # L1 Current Entity, Entity ID for L1 current measurement in amperes (optional)
currentL2: sensor.house_current_l2 # L2 Current Entity, Entity ID for L2 current measurement in amperes (optional)
currentL3: sensor.house_current_l3 # L3 Current Entity, Entity ID for L3 current measurement in amperes (optional)
voltageL1: sensor.house_voltage_l1 # L1 Voltage Entity, Entity ID for L1 voltage measurement in volts (optional)
voltageL2: sensor.house_voltage_l2 # L2 Voltage Entity, Entity ID for L2 voltage measurement in volts (optional)
voltageL3: sensor.house_voltage_l3 # L3 Voltage Entity, Entity ID for L3 voltage measurement in volts (optional)
soc: sensor.battery_soc # Battery State of Charge, Entity ID for battery state of charge in percent (optional)
modeNormal: script.battery_normal # Normal Mode Script, Script to put home battery to normal operation. Required when any other mode script is set. The script is responsible for any necessary state changes on the HA side. (optional)
modeHold: script.battery_hold # Hold Mode Script, Optional script to prevent the home battery from discharging. (optional)
modeCharge: script.battery_grid_charge # Grid Charge Mode Script, Optional script to grid-charge the home battery. (optional)
minSocEntity: number.battery_min_soc # Minimum SoC Entity, Optional entity ID providing the minimum battery state of charge in percent. Overrides the static minimum SoC value. (optional)
maxSocEntity: number.battery_max_soc # Maximum SoC Entity, Optional entity ID providing the maximum battery state of charge in percent. Overrides the static maximum SoC value. (optional)
modeHoldCharge: script.battery_hold_charge # Hold Charge Mode Script, Optional script to prevent the home battery from charging while discharging to cover the house load remains allowed. (optional)
modeDischarge: script.battery_grid_discharge # Grid Discharge Mode Script, Optional script to force-discharge the home battery to the grid. (optional)
insecure: # Accept self-signed certificates, optional
maxchargepower: # Maximum charge power (W), Highest power the battery system can charge with. The optimizer plans with charging up to this power. Some devices also use it as grid charging power. (optional)
maxdischargepower: # Maximum discharge power (W), Highest power the battery system can discharge with. The optimizer plans with discharging up to this power. Smart mode assumes the battery supplies at most this power to vehicle charging. (optional)
meters:
- name: my_aux
type: template
template: homeassistant
usage: aux
uri: http://homeassistant.local:8123 # Home Assistant URI
power: sensor.house_power # Power Entity, Entity ID for instantaneous power measurement in watts. The entity must provide numeric values only (e.g., "1234", not "1234 W").
energy: sensor.house_energy # Energy Entity, Entity ID for total energy in kWh (e.g. grid import or battery discharging). No daily or interval values. (optional)
returnEnergy: sensor.house_return_energy # Return Energy Entity, Entity ID for total energy in reverse direction in kWh (e.g. grid export or battery charging). No daily or interval values. (optional)
currentL1: sensor.house_current_l1 # L1 Current Entity, Entity ID for L1 current measurement in amperes (optional)
currentL2: sensor.house_current_l2 # L2 Current Entity, Entity ID for L2 current measurement in amperes (optional)
currentL3: sensor.house_current_l3 # L3 Current Entity, Entity ID for L3 current measurement in amperes (optional)
voltageL1: sensor.house_voltage_l1 # L1 Voltage Entity, Entity ID for L1 voltage measurement in volts (optional)
voltageL2: sensor.house_voltage_l2 # L2 Voltage Entity, Entity ID for L2 voltage measurement in volts (optional)
voltageL3: sensor.house_voltage_l3 # L3 Voltage Entity, Entity ID for L3 voltage measurement in volts (optional)
insecure: # Accept self-signed certificates, optional
meters:
- name: my_charger
type: template
template: homeassistant
usage: charge
uri: http://homeassistant.local:8123 # Home Assistant URI
power: sensor.house_power # Power Entity, Entity ID for instantaneous power measurement in watts. The entity must provide numeric values only (e.g., "1234", not "1234 W").
energy: sensor.house_energy # Energy Entity, Entity ID for total energy in kWh (e.g. grid import or battery discharging). No daily or interval values. (optional)
returnEnergy: sensor.house_return_energy # Return Energy Entity, Entity ID for total energy in reverse direction in kWh (e.g. grid export or battery charging). No daily or interval values. (optional)
currentL1: sensor.house_current_l1 # L1 Current Entity, Entity ID for L1 current measurement in amperes (optional)
currentL2: sensor.house_current_l2 # L2 Current Entity, Entity ID for L2 current measurement in amperes (optional)
currentL3: sensor.house_current_l3 # L3 Current Entity, Entity ID for L3 current measurement in amperes (optional)
voltageL1: sensor.house_voltage_l1 # L1 Voltage Entity, Entity ID for L1 voltage measurement in volts (optional)
voltageL2: sensor.house_voltage_l2 # L2 Voltage Entity, Entity ID for L2 voltage measurement in volts (optional)
voltageL3: sensor.house_voltage_l3 # L3 Voltage Entity, Entity ID for L3 voltage measurement in volts (optional)
insecure: # Accept self-signed certificates, optional