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 asyncio
import time
client = oekofen_api.Oekofen("192.168.178.222", "eMlG")
asyncio.run(client.update_csv_data())
asyncio.run(client.get_version())
asyncio.run(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:
asyncio.run(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
#asyncio.run(client.set_heating_circuit_temp(celsius=23))
Todo
- dont use
domains
andattributes
- make it less complicate and pass dict to homeassistant, then use data scheme like netgear integration
References
- https://github.com/JbPasquier/pyokofen/blob/master/pyokofen/okofen.py
- http://192.168.178.222:4321/eMlG/all?
- https://pypi.org/project/oekofen-api/
- https://developers.home-assistant.io/docs/core/entity/binary-sensor
- https://github.com/home-assistant/core/blob/master/homeassistant/components/binary_sensor/__init__.py
- http://0.0.0.0:8123/lovelace/0
- https://materialdesignicons.com/
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.13.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for oekofen_api-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa44083e7e04deff258f2663ceae970fd6b29cc7ab91847e0f647d20306dcd4c |
|
MD5 | ccab25bfa73c4c5bcbe90f9e2fd6c61c |
|
BLAKE2b-256 | a5c255ced3ba75b4275682bf2de29f83dfc0bfabcc3dfad1855bdcb34bb23dc3 |