You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Omnik Inverter Sensor Component for Home Assistant
4
-
The Omnik Inverter Sensor component will retrieve data from an Omnik inverter connected to your local network.
5
-
It has been tested and developed on an Omnik 4k TL2, 2k TL2 and it might work for other inverters as well.
3
+
# Omnik Inverter Sensor for Home Assistant
4
+
The Omnik Inverter Sensor component will scrape data from an Omnik inverter connected to your local network.
5
+
It has been tested and developed on the following inverters:
6
6
7
-
The values will be presented as sensors in [Home Assistant](https://home-assistant.io/).
7
+
## Supported models
8
+
- Omnik1000TL
9
+
- Omnik1500TL
10
+
- Omnik2000TL
11
+
- Omnik2000TL2
12
+
- Omnik4000TL2
13
+
- Ginlong stick (JSON)
14
+
15
+
After installation you can add the sensors through the integration page. The values will be presented as sensors in [Home Assistant](https://home-assistant.io/).
8
16
9
17
## Requirements
10
18
@@ -23,40 +31,17 @@ This is how your custom_components directory should be:
23
31
```bash
24
32
custom_components
25
33
├── omnik_inverter
34
+
│ ├── translations
35
+
│ │ ├── en.json
36
+
│ │ └── nl.json
26
37
│ ├── __init__.py
38
+
│ ├── config_flow.py
39
+
│ ├── const.py
27
40
│ ├── manifest.json
28
-
│ └── sensor.py
29
-
```
30
-
31
-
## Configuration example
32
-
33
-
To enable this sensor, add the following lines to your configuration.yaml file:
34
-
35
-
```YAML
36
-
sensor:
37
-
- platform: omnik_inverter
38
-
host: 192.168.100.100
39
-
```
40
-
41
-
By default caching the power today value is enabled, you can disable it using the `cache_power_today` configuration attribute. Check "How does it work?" when/why you might need to disable it.
42
-
43
-
``` YAML
44
-
sensor:
45
-
- platform: omnik_inverter
46
-
host: 192.168.100.100
47
-
cache_power_today: false
41
+
│ ├── sensor.py
42
+
│ └── strings.json
48
43
```
49
44
50
-
Most inverters update the JS or JSON every 5 minutes. You increase or decrease this scan interval by setting the `scan_interval` config variable to the number of seconds you want.
51
-
The default is set to 300 seconds (5 minutes).
52
-
53
-
``` YAML
54
-
sensor:
55
-
- platform: omnik_inverter
56
-
host: 192.168.100.100
57
-
scan_interval: 900
58
-
59
-
```
60
45
61
46
## How does it work?
62
47
@@ -72,14 +57,11 @@ var myDeviceArray=new Array(); myDeviceArray[0]="AANN3020,V5.04Build230,V4.13Bui
72
57
// ... Even more data
73
58
```
74
59
75
-
This output contains your serial number, firmware versions, hardware information, the
76
-
current power output: 1920, the energy generated today: 429 and the total energy generated: 87419.
60
+
This output contains your serial number, firmware versions, hardware information, the
61
+
current power output: 1920, the energy (kWh) generated today: 429 and the total energy (kWh) generated: 87419.
77
62
78
-
The custom component basically requests the URL, looks for the _webData_ part and extracts the
79
-
values as the following sensors:
80
-
- `sensor.solar_power_current`(Watt)
81
-
- `sensor.solar_power_today`(kWh)
82
-
- `sensor.solar_power_total`(kWh)
63
+
The component basically requests the URL, looks for the _webData_ part and extracts the
64
+
values as sensors.
83
65
84
66
### My inverter doesn't show any output when I go to the URL.
85
67
@@ -90,29 +72,12 @@ inverter outputs JSON data by navigating to: `http://<your omnik ip address>/sta
90
72
91
73
If so, then use the `use_json` config boolean to make the component use the URL above.
92
74
93
-
``` YAML
94
-
sensor:
95
-
- platform: omnik_inverter
96
-
host: 192.168.100.100
97
-
use_json: true
98
-
```
99
-
100
-
### Caching "power today".
101
-
102
-
In a few cases the Omnik inverter resets the `solar_power_today` to 0.0 after for example 21:00. By
103
-
setting the `cache_power_today` config attribute to `true` (default) this component will cache the
104
-
value and only resets to 0.0 after midnight. If you do not experience this, then disable the
105
-
cache by setting the config variable to `false`.
106
-
107
-
``` YAML
108
-
sensor:
109
-
- platform: omnik_inverter
110
-
host: 192.168.100.100
111
-
cache_power_today: false
112
-
```
75
+
### Thanks
76
+
Special thank you to [@klaasnicolaas](https://github.com/klaasnicolaas) for taking this component to the next level 🚀 and [@relout](https://github.com/relout) for testing :-)
0 commit comments