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
- 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/
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.11.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for oekofen_api-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d040d2a7f8f8bfb8d05842b218339af17a94f9a5f88e7e1741761f2edad659 |
|
MD5 | 9e2a90ebe530c0507ea4acea26ceb35a |
|
BLAKE2b-256 | edcce37c43fc668b8aaf9ad18cc7e79236e858bf86327968a3811cfd5b96f88d |