에스엠에이 솔라(SMA Solar)


sma 센서는 SMA (US) 태양광 인버터를 폴링하고 그 값을 Home Assistant에서 센서(또는 센서의 속성)로 표시합니다.

이 센서는 웹 인터페이스를 사용하고 이를 사용하려면 자주 사용하는 웹 브라우저에서 태양광 인버터에 연결할 수 있어야합니다.

설정

이 센서를 활성화하려면 configuration.yaml 파일에 다음 줄을 추가하십시오 :

# 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

Configuration Variables

host

(string)(Required)

The IP address of the SMA WebConnect module.

ssl

(boolean)(Optional)

Enables HTTPS if set to true, otherwise with false the platform run with HTTP.

Default value:

false

verify_ssl

(boolean)(Optional)

Whether Home Assistant should verify the SSL certificate from the inverter. Self-signed certificates may require false for this sensor to operate properly.

Default value:

true

password

(string)(Required)

The password of the SMA WebConnect module.

group

(string)(Optional)

The user group, which can be either user or installer.

Default value:

user

sensors

(list)(Optional)

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.

Default value:

All sensors

custom

(map)(Optional)

A dictionary of custom sensor key values and units.

key

(string)(Required)

The SMA sensor key.

unit

(string)(Required)

Unit.

factor

(float)(Optional)

Factor.

Default value:

1

path

(string)(Optional)

A custom JMESpath to extract the sensor value (typically not required, advanced use only).

Sensors

라이브러리에서 사용 가능한 센서 :

name Unit Description
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_power_supplied W Power supplied.
grid_power_absorbed W Power absorbed.
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.
frequency Hz Grid frequency.
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.

SMA WebConnect 모듈은 다양한 센서를 지원하며 모든 센서가 pysma 라이브러리에 매핑된 것은 아닙니다. 사용자 정의 센서는 설정의 custom 섹션을 사용하여 정의할 수 있습니다. sensor name(공백 없음), SMA sensor key 및 unit가 필요합니다.

Example:

   custom:
      yesterday_consumption:
         key: '6400_00543A01'
         unit: kWh
         factor: 1000

시간이 지남에 따라 더 많은 센서가 pysma library에 표준 센서로 추가됩니다. 해당 저장소에 추가 센서를 언제든지 제출해주십시오.