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
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,15 @@ sensor:
38
38
host: 192.168.100.100
39
39
```
40
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
48
+
```
49
+
41
50
## How does it work?
42
51
43
52
The web interface has a javascript file that contains the actual values. This is updated every minute (afaik). Check it out in your browser at `http://<your omnik ip address>/js/status.js`
@@ -58,7 +67,9 @@ This custom component basically requests the URL, looks for the _webData_ part a
58
67
- `sensor.solar_power_today`(kWh)
59
68
- `sensor.solar_power_total`(kWh)
60
69
61
-
> Note: I ran into the problem that my Omnik inverter resets the `solar_power_today` to 0.0 after 21:00. This component therefor caches the value and only resets to 0.0 after midnight.
70
+
### Caching power today.
71
+
72
+
In a few cases the Omnik inverter resets the `solar_power_today` to 0.0 after for example 21:00. By setting the `cache_power_today` config attribute to `true` (default) this component will cache the the value and only resets to 0.0 after midnight. If you do not experience this, then disable the cache by setting the config variable to `false`.
0 commit comments