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.10.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for oekofen_api-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6618ab4996a312d9b8a488ce1a92a1757c60fb45bc9ae5021354e7d12a2dc91 |
|
MD5 | abce8b7f3e73221b45011b1f7e133e73 |
|
BLAKE2b-256 | c58eed12c1bbee9964911765c33f5733c00197d499c8f893051beb3a7ba880aa |