Skip to content
Imeon-Energy edited this page Jul 31, 2024 · 9 revisions

Imeon Inverter Standalone API Wiki

A standalone API allowing communication with Imeon Energy inverters.

Pages

Examples

from inverter_api import Inverter
import asyncio
import json

# Test inverter
async def _test():
    i = Inverter("192.168.200.110")
    await i.login("user@local", "password")
    await i.update()
    print(json.dumps(i._storage, indent=2, sort_keys=True))
    print(i.battery)

asyncio.run(_test())
from inverter_api import Client
import asyncio
import json

# Test client
async def dataset_test() -> dict:
    c = Client("192.168.200.110")

    await c.login('user@local', 'password')
    data = await c.get_data_timed('hour')
    data_inst = await c.get_data_manager()
    data_monit = await c.get_data_monitoring()
    print(json.dumps(data, indent=2, sort_keys=True))
    print(json.dumps(data_inst, indent=2, sort_keys=True))
    print(json.dumps(data_monit, indent=2, sort_keys=True))

asyncio.run(dataset_test())
Clone this wiki locally