aioescea
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_moderefuses unless you passallow_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,
EsceaPortInUseErrorsays 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
- Fireplace LAN Communications Protocol Specification v0.3 (Kamahi Electronics for Escea, 2014): the UDP protocol.
- NCAPI (Escea document 640051_0, 2024): the Generation 3 Wi-Fi HTTP API.
- Network summary (Tussock
Innovation for Escea, 2016): the controller's ports, DHCP behaviour and
MAC address prefix (
AC:DE:48).
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
Metadata
Release files for aioescea 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aioescea-0.1.0.tar.gz | 30.5 kB | With provenance | Details for aioescea-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioescea-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aioescea-0.1.0-py3-none-any.whl |
Total release size: 54.9 kB
Release files / aioescea-0.1.0.tar.gz
| Download URL | aioescea-0.1.0.tar.gz |
|---|---|
| Size | 30.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63f9621c529b0b8d7de286c4115b938c6774beb294f14a04516faa718a9e1bd9
|
|
BLAKE2b-256 checksum How to use checksums |
4c35b7995f4df4907cc7b6344d7e32cf78dc1b3aa13d279ea539b747ccd9b610
|
| 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 logRelease files / aioescea-0.1.0-py3-none-any.whl
| Download URL | aioescea-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2286b8a8a86f6dfdded05c2501ca5859fc62be674e7b2e96f7741295fbc0d7f0
|
|
BLAKE2b-256 checksum How to use checksums |
51a185338e06cd6f133b6f0ac98ecfa050d75f5c76dbc6743731f8ac418133e1
|
| 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 logSecurity for aioescea 0.1.0
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.
Attestation for aioescea-0.1.0.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 logA 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.