Skip to content

Commit 140a216

Browse files
authored
[sensor/sma] New SMA Solar Webconnect censor
1 parent 2295401 commit 140a216

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
layout: page
3+
title: "SMA Solar WebConnect"
4+
description: "Instructions on how to connect your SMA Inverter to Home Assistant."
5+
date: 2015-12-28 21:45
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
ha_category:
11+
logo: sma.png
12+
ha_iot_class: "Cloud Polling"
13+
ha_release: 0.36
14+
---
15+
16+
17+
The `sma` sensor will poll a SMA solar inverter and present the values as sensors (or attributes of sensors) in Home Assistant.
18+
19+
To enable this sensor, add the following lines to your `configuration.yaml` file:
20+
21+
```yaml
22+
# Example configuration.yaml entry
23+
sensor:
24+
- platform: sma
25+
ip:
26+
password: !secret sma_password
27+
sensors:
28+
- CURRENT_POWER:
29+
- CURRENT_CONSUMPTION: [TOTAL_CONSUMPTION]
30+
keys:
31+
-
32+
```
33+
34+
Configuration variables:
35+
36+
- **ip** (*Required*): The IP address of the SMA WebConnect module.
37+
- **password** (*Required*): The password of the SMA WebConnect module.
38+
- **group** (*Optional*): The user group, which can be either `user` (the default) or `installer`.
39+
- **sensors** (*Required*): A list of sensors that will be added.
40+
- **keys** (*Optional*): A dictionary of `SENSOR_NAME: SENSOR_KEY` values (e.g. `YESTERDAY_CONSUMPTION_KWH: "6400_00543A01"`). These sesnors will be added to the standard ones in the [pysma library](https://github.com/kellerza/pysma/blob/master/pysma/__init__.py#L18)
41+
42+
Sensor configuration:
43+
44+
The sensors can be any one of the following:
45+
- current_power
46+
- current_consumption
47+
- total_power
48+
- total_consumption
49+
50+
You can also create composite sensors, where the sub-sensors will be attributes of the main sensor, e.g.
51+
52+
```yaml
53+
sensors:
54+
- current_power: [total_power, total_consumption]
55+
```

0 commit comments

Comments
 (0)