kellerza / pysma

Async library for SMA Solar's WebConnect interface
MIT License
60 stars 51 forks source link

SUNNY TRIPOWER 6.0 / Inputs [A] and [B] / Home Assistant #20

Closed Hooch76 closed 5 years ago

Hooch76 commented 5 years ago

Hi,

this is not really an issue but rather a question. Details see https://community.home-assistant.io/t/sma-energy-meter-in-home-assistant/47482/69. Seems as if pysma is only reading the value of input [A] of the inverter, but not [B]. Or is this just a wrong configuration on my end?

kellerza commented 5 years ago

Please share your homeassistant config. Do you have entries ending with _0 and _1?

Hooch76 commented 5 years ago

This is the Home Assistant configuration / sensor setup:

- platform: sma
  host: <my-ip>
  ssl: true
  verify_ssl: false
  group: user
  password: <yes-there-is-one>
  scan_interval: 60
  sensors:
    pv_power:
    pv_cust_leistung:
    pv_cust_spannung:
    pv_cust_strom:
  custom:
    pv_cust_leistung:
      key: "6380_40251E00"
      unit: W
    pv_cust_spannung:
      key: "6380_40451F00"
      unit: V
      factor: 100
    pv_cust_strom:
      key: "6380_40452100"
      unit: A

And this is the result:

grafik

kellerza commented 5 years ago

Try adding the "B" set (default is _0)

    pv_cust_leistungb:
      key: "6380_40251E00_1"
      unit: W
    pv_cust_spannungb:
      key: "6380_40451F00_1"
      unit: V
      factor: 100
    pv_cust_stromb:
      key: "6380_40452100_1"
      unit: A
Hooch76 commented 5 years ago

Excellent. That did the trick. Thanks!