A python library to retrieve statistics from your Oekofen Pelletronic
Project description
Oekofen API
Usage
- change
192.168.178.222
to your Oekofen IP - change
eMlG
to your JSON Password (see Touchpad of your Oekofen)
import oekofen_api
import time
client = oekofen_api.Oekofen("192.168.178.222", "eMlG")
#client.update_csv_data()
client.get_version()
client.update_data()
client.get_status()
client.get_weather_temp()
client.get_heating_circuit_temp()
old_value = client.get_attribute('pu', 'L_tpo_act').get_value()
print(old_value)
while True:
try:
client.update_data()
except Exception:
time.sleep(5)
continue
new_value = client.get_attribute('pu', 'L_tpo_act').get_value()
time.sleep(10)
if new_value != old_value:
print(old_value, new_value)
old_value = new_value
#client.set_heating_circuit_temp(celsius=23)
Todo
dont usedomains
andattributes
- make it less complicate and pass dict to homeassistant, then use data scheme like netgear integration- add historical data via csv api and HASS
async_external_statistics
- https://github.com/home-assistant/core/blob/74e2d5c5c312cf3ba154b5206ceb19ba884c6fb4/homeassistant/components/tibber/sensor.py#L642
- https://github.com/home-assistant/core/blob/74e2d5c5c312cf3ba154b5206ceb19ba884c6fb4/homeassistant/components/demo/__init__.py#L236
- https://github.com/home-assistant/core/blob/74e2d5c5c312cf3ba154b5206ceb19ba884c6fb4/homeassistant/components/recorder/statistics.py#L1335-L1362
- see forum
Online Resources
- pyOekofen implementation by JbPasquier
- Local Pellematic JSON page
- This repository on pypi
- HomeAssistant BinarySensor Documentation
- HomeAssistant BinarySensor Source
- Local Homeassistant Instance
- Material Icons
- Abkürzungen Sanitär
Berechnung Pelletsverbrauch
Berechnungsgrundlage: Abschnitt Calculations
in Oekofen-Spy
- Ableitung
pe1_L_modulation
via derivative minütlich- siehe Integration derivative / Code Berechnung der Ableitung
<Differenz Sensortwert alt - Sensorwert neu> / <Sekunden zwischen beiden Sensorwerten> / 1 * <Sekunden = 60>
- Einrichten als Helper
derivative_modulation
- Helper einrichten Schwellenwertsensor für
derivative_modulation
- Hysterese: 0
- Untere Grenze: 0
- Obere Grenze: 1000
- Ergebnis: True/False für den Zeitraum, wenn der Wert positiv ist
- Muss der Schwellenwertsensor evtl. vor den Ableitungssensor? (non_negative_derivative)
- Formel Pelletsverbrauch:
Schwellwert / 60 * <kW Leitung Pelletsheizung, z.B. 7.8kW> *
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oekofen_api-0.0.20.tar.gz
(12.5 kB
view details)
Built Distribution
File details
Details for the file oekofen_api-0.0.20.tar.gz
.
File metadata
- Download URL: oekofen_api-0.0.20.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05f19970ffe4c26cc0e614a93b9f0f0f6b7cc1f997e888b67500aa662a23135d |
|
MD5 | b7d9377d3e1909e488aaccdff1fe772e |
|
BLAKE2b-256 | 73aa20b8e730197ce9cdb86e7855a9c492f9ef974a9bc2c0d349f29f26a968ce |
File details
Details for the file oekofen_api-0.0.20-py3-none-any.whl
.
File metadata
- Download URL: oekofen_api-0.0.20-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a47e0e5a724ca1712d071073eb0d7a6698e8579893b7489edb9b36267441f981 |
|
MD5 | 10acd03bbb9c405ea6004bcafa9025f0 |
|
BLAKE2b-256 | 0844235f8408ecbf6367836902122cb06345fafa8d936a2a672537f716022c9c |