Skip to main content

aioescea

PyPI Checks Licence

Async Python client for Escea gas fireplaces on your local network. No cloud.

It supports both generations of Escea network controller:

Generation 2 (Ethernet) Generation 3 (Wi-Fi, from 2024)
Control UDP port 3300 NCAPI: HTTP and JSON on port 80
On/off, temperature, boost, flame effect ✓ (4-30 °C) ✓ (10-38 °C, 0.1 °C steps)
Room temperature ✓ ✓
What the fire is doing (starting, igniting, heating, shutting down, error) ✓
Remote present, stored errors ✓
Found by broadcast ✓ needs its IP address
Built-in timers, clock, diagnostics ✓ (from its web page)

It powers the Escea Fireplace integration for Home Assistant.

Install

pip install aioescea

Python 3.12 or later.

Use it

import asyncio
from aioescea import EsceaFireplace, EsceaTransport, FireMode, async_discover


async def main() -> None:
    async with EsceaTransport() as transport:
        for found in await async_discover(transport):
            print(found.host, found.serial, found.pin)

        fire = EsceaFireplace("192.168.1.50", transport)
        status = await fire.async_get_status()
        print(status.is_on, status.room_temperature, status.target_temperature)

        await fire.async_turn_on()  # lights the fire
        # The fire ignores commands for 66 s while it lights. Commands sent
        # in that time raise EsceaBusyError; turning off is always allowed.
        await asyncio.sleep(fire.busy_remaining)
        await fire.async_set_temperature(22)
        await fire.async_set_mode(FireMode.BOOST)
        await fire.async_turn_off()


asyncio.run(main())

Generation 3 (Wi-Fi) fires

Turn on Escea NCAPI Settings under Fire Settings in the Escea Smartheat app first (fire firmware 1.5.9 or later), and give the fire a DHCP reservation.

import aiohttp
from aioescea import EsceaNcapiClient

async with aiohttp.ClientSession() as session:
    fire = EsceaNcapiClient(session, "192.168.1.60")
    status = await fire.async_get_status()
    print(status.state, status.room_temperature, status.remote_present)
    await fire.async_set(on=True, flame_effect=True, target_temperature=22.5)

The web page (Generation 2: timers, clock, diagnostics)

import aiohttp
from datetime import time
from aioescea import EsceaWebClient, Timer

async with aiohttp.ClientSession() as session:
    web = EsceaWebClient(session, "192.168.1.50", username="123456", password="1234")
    page = await web.async_get_home_page()  # no login needed
    print(page.clock, page.timers)
    print(await web.async_get_diagnostics())  # login needed

    await web.async_set_timer(
        Timer(number=1, on_time=time(6, 30), off_time=time(8, 0), enabled=True),
        fire_is_on=False,  # must be the fire's real power state right now
        current=page.timers,
    )

On most fires the web login is the serial number and the PIN, both of which discovery returns.

Command line

aioescea discover
aioescea status 192.168.1.50
aioescea on 192.168.1.50
aioescea temp 192.168.1.50 22
aioescea mode 192.168.1.50 boost
aioescea off 192.168.1.50
aioescea timers 192.168.1.50
aioescea diagnostics 192.168.1.50 --username 123456 --password 1234

How it behaves

  • It never sends anything you didn't ask for. No background loop, no buffered commands. A missed reply can't cause an old command to be re-sent, so it can't re-light a fire someone turned off with the remote or the app. (The bug this avoids.)
  • Changing the mode while the fire is off would light it, because that's how the fire works. async_set_mode refuses unless you pass allow_ignite=True.
  • Turning off is never refused, even during the 66 s lighting window.
  • One request per fire at a time, retried, because the controller is single threaded and UDP drops packets.
  • Port 3300 is not shared. Fires always reply to port 3300, so only one program per computer can talk to them. If another program has the port, EsceaPortInUseError says so instead of silently missing replies.
  • The web page is fragile. It answers one connection at a time and can stop answering until the fire is power cycled. The client sends one request at a time with Connection: close; poll it every few minutes at most.

Protocol

Credits

  • snikch/escea by Mal Curtis: the first Python client, and the captured frames used in the tests.
  • lazdavila/pescea by Laz Davila: the 66 s busy window and the flame-effect quirk.
  • derekclapham/ha-escea by Derek Clapham: the web page's login, timer and diagnostics formats.

Licence

MIT

Metadata

Release files for aioescea 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioescea 0.1.1
File Size Uploaded Provenance Actions
aioescea-0.1.1.tar.gz 32.0 kB With provenance Details for aioescea-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aioescea 0.1.1
File Interpreter ABI Platform Actions
aioescea-0.1.1-py3-none-any.whl Python 3 none any Details for aioescea-0.1.1-py3-none-any.whl

Total release size: 56.9 kB

Release files / aioescea-0.1.1.tar.gz

Download URL aioescea-0.1.1.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1bd59eaf6678f1f39ce5e7fd61a5296aa636bc15cd8b2af8014fe487b50072e0
BLAKE2b-256 checksum
How to use checksums
52e2387fb8931e0a0f759a8952e19973a680c85d0d2e1299e218c9c18aee26ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / aioescea-0.1.1-py3-none-any.whl

Download URL aioescea-0.1.1-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a5b21145b025e0ebba68dd8f936d3c409a3b50cb2bf8601752cea099ddea750
BLAKE2b-256 checksum
How to use checksums
500b6f6e6ef9ec0c97f08eb2d1919f50ed4caa162960e4c0179a042c77038d64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for aioescea 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aioescea-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page