This sensor uses the web interface and to use it, you have to be able to connect to the solar inverter from your favorite web browser.
To enable this sensor, add the following lines to your
# Example configuration.yaml entry (http) sensor: - platform: sma host: IP_ADDRESS_OF_DEVICE password: YOUR_SMA_PASSWORD sensors: - current_consumption - total_consumption - pv_power - total_yield # Example configuration.yaml entry (https) sensor: - platform: sma host: IP_ADDRESS_OF_DEVICE ssl: true verify_ssl: false password: YOUR_SMA_PASSWORD sensors: - current_consumption - total_consumption - pv_power - total_yield
The IP address of the SMA WebConnect module.
Enables HTTPS if set to
true, otherwise with
falsethe platform run with HTTP.
Whether Home Assistant should verify the SSL certificate from the inverter. Self-signed certificates may require
falsefor this sensor to operate properly.
The password of the SMA WebConnect module.
The user group, which can be either
A list of sensors that will be added. Refer to the table in the Sensors section below. If not specified all the sensors in the library will be added.
A dictionary of custom sensor key values and units.
Sensors available in the library:
|pv_power||W||Current power generated by the inverter.|
|pv_gen_meter||kWh||Total kWh generated to date.|
|total_yield||kWh||Total power yield from a solar installation.|
|daily_yield||Wh||The solar plant’s yield for today. !|
|current_consumption||W||Power that you are currently drawing, depending on your installation it can be a combination of the inverter and the grid.|
|total_consumption||kWh||Total power consumption.|
|grid_total_yield||kWh||Total power from the grid.|
|grid_total_absorbed||Wh||Total power supplied to the grid|
|grid_power||W||Power supplied by the grid.|
|voltage_l1||V||Voltage for phase 1.|
|voltage_l2||V||Voltage for phase 2.|
|voltage_l2||V||Voltage for phase 3.|
|status||Status of the solar plant.|
The SMA WebConnect module supports a wide variety of sensors, and not all these have been mapped in the
pysma library. Custom sensors can be defined by using the
custom section of the configuration. You will need: A sensor name (no spaces), the SMA sensor key and the unit.
custom: yesterday_consumption: key: '6400_00543A01' unit: kWh factor: 1000
Over time more sensors will be added as standard sensors to the pysma library. Feel free to submit additional sensors on that repository.