Skip to content

Commit 868fb1f

Browse files
Merge pull request #43 from robbinjanssen/robbinjanssen/update-docs
2 parents 0b69e20 + a6147a3 commit 868fb1f

4 files changed

Lines changed: 28 additions & 78 deletions

File tree

README.md

Lines changed: 26 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs)
22

3-
# 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:
66

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/).
816

917
## Requirements
1018

@@ -23,40 +31,17 @@ This is how your custom_components directory should be:
2331
```bash
2432
custom_components
2533
├── omnik_inverter
34+
│ ├── translations
35+
│ │ ├── en.json
36+
│ │ └── nl.json
2637
│ ├── __init__.py
38+
│ ├── config_flow.py
39+
│ ├── const.py
2740
│ ├── 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
4843
```
4944

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-
```
6045

6146
## How does it work?
6247

@@ -72,14 +57,11 @@ var myDeviceArray=new Array(); myDeviceArray[0]="AANN3020,V5.04Build230,V4.13Bui
7257
// ... Even more data
7358
```
7459

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.
7762

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.
8365

8466
### My inverter doesn't show any output when I go to the URL.
8567

@@ -90,29 +72,12 @@ inverter outputs JSON data by navigating to: `http://<your omnik ip address>/sta
9072

9173
If so, then use the `use_json` config boolean to make the component use the URL above.
9274

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 :-)
11377

11478
## References
11579

11680
- https://community.home-assistant.io/t/omink-inverter-in-home-assistant/102455/36
11781
- https://github.com/heinoldenhuis/home_assistant_omnik_solar (This uses omnikportal.com to get data for your inverter, check it out!)
11882
- https://github.com/sincze/Domoticz-Omnik-Local-Web-Plugin
83+
- https://github.com/klaasnicolaas/python-omnikinverter

images/all_entities.png

57.4 KB
Loading

images/entities.png

-47.3 KB
Binary file not shown.

info.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,9 @@
33
The Omnik solar sensor component will retrieve data from an Omnik solar inverter.
44
The values will be presented as sensors (or attributes of sensors) in Home Assistant.
55

6-
## Configuration
7-
8-
``` YAML
9-
sensor:
10-
- platform: omnik_inverter
11-
host: 192.168.100.100
12-
```
13-
14-
### Entities
15-
16-
- `sensor.solar_power_current` (Watt)
17-
- `sensor.solar_power_today` (kWh)
18-
- `sensor.solar_power_total` (kWh)
6+
Find the full documentation [here](https://github.com/robbinjanssen/home-assistant-omnik-inverter).
197

208
### Example
219

22-
![Omnik Inverter Sensor Entities](https://github.com/robbinjanssen/home-assistant-omnik-inverter/blob/master/images/entities.png)
23-
24-
### Documentation
10+
![Omnik Inverter Sensor Entities](https://github.com/robbinjanssen/home-assistant-omnik-inverter/blob/master/images/all_entities.png)
2511

26-
Find the full documentation [here](https://github.com/robbinjanssen/home-assistant-omnik-inverter).

0 commit comments

Comments
 (0)