Skip to main content

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_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 and attributes- make it less complicate and pass dict to homeassistant, then use data scheme like netgear integration

References

Project details


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.11.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

oekofen_api-0.0.11-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page