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
andattributes
- make it less complicate and pass dict to homeassistant, then use data scheme like netgear integration
References
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.7.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for oekofen_api-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1ae88664012ca5dbc45080391eff6e66a0ca1177b8dc46c45cbb281704d82c0 |
|
MD5 | 2951c64cd23f0e4f6aaa5914f349bd5e |
|
BLAKE2b-256 | c3dd2c9de0a6074606a724fd804025aeafee56c403dd38be5f698b7f2f195ea3 |