jebao-doser — local control for Jebao WiFi dosing pumps (no cloud)
Jebao DOSER 3.4 WiFi (product image © Jebao)
Python library and command line tool to monitor and control Jebao WiFi aquarium dosing pumps (Jebao DOSER 3.4, and other Gizwits based Jebao dosers such as DOSER 3.1, DOSER 3.2, MD 4.4) directly over your local network. No Jebao/Gizwits cloud, no account, no app, no Home Assistant needed.
Useful for reef and planted aquarium automation: know when every head doses, read the schedule (time and ml of each dose, interval in days), get alarms, and build your own scripts, dashboards or bots.
Home Assistant users: see ha-jebao-doser, the HACS integration built on this library.
Supported pumps
| Model | Heads | Status |
|---|---|---|
| Jebao DOSER 3.4 WiFi | 4 | ✅ tested (firmware 04X3000R) |
| Jebao DOSER 3.1 / DOSER 3.2 WiFi | 1 / 2 | should work (same Gizwits platform): reports welcome |
| Jebao MD 4.4 | 4 | should work (same Gizwits platform): reports welcome |
Jebao DOSER 3.4 WiFi at a glance:
| Heads | 4 peristaltic heads |
| Flow | 50 ml/min per head |
| Power | 12 V, 9 W |
| Size | 226 × 84 × 61 mm |
| Tubing | 1.5 m |
| Connectivity | Wi-Fi 2.4 GHz + Bluetooth (ESP32-C3 module, Gizwits platform) |
| Local protocol | TCP 12416, UDP 12414 (discovery) |
Features
- Local push: one TCP connection, the pump reports every change by itself (scheduled doses, doses from the app, doses from the buttons on the pump). No polling.
- Schedule of every head: up to 24 doses per head, time and amount (ml), interval in days.
- Dose events with start time and duration.
- Manual dosing: run a head for a time or an amount (ml), with the stop always sent.
- Clear the pump's own schedule of a head (and switch it off), e.g. when you schedule doses yourself.
- Alarms: open circuit, Wi-Fi module fault.
- Discovery of pumps on the LAN (UDP broadcast, like the vendor app).
- Any Gizwits product: the pump reports its product key and the data point schema is downloaded once from the public Gizwits API and cached (the DOSER 3.4 schema is bundled).
- Pure Python 3.10+, asyncio, no dependencies.
Install
pip install jebao-doser
Command line
jebao-doser discover # find pumps on the LAN
jebao-doser status 192.168.1.50 # model, firmware and schedule of every head
jebao-doser listen 192.168.1.50 # stay connected and print every dose
jebao-doser status 192.168.1.50 --json
jebao-doser dose 192.168.1.50 4 3 # run head 4 for 3 seconds
jebao-doser dose 192.168.1.50 2 --ml 2 # about 2 ml (time based, 50 ml/min)
jebao-doser clear-schedule 192.168.1.50 2 3 # delete the pump's schedule of heads 2 and 3
Example (status):
4头滴定泵WiFi_BLE (0ESP32C3, firmware 04X3000R)
power on
head 1: no schedule
head 2: 17:30 4 ml every 2 days
head 3: 17:25 4 ml every 2 days
head 4: 22:15 10 ml every 3 days
Example (listen):
12:32:49 head 1 dosed for 1.6 s
12:32:53 head 2 dosed for 3.4 s
Python
import asyncio
from jebao_doser import Doser, schedule
async def main():
doser = Doser("192.168.1.50")
status = await doser.read() # connect, read once, disconnect
print(doser.schema.product_name, schedule(status, 2))
await doser.dose_ml(4, 2) # about 2 ml from head 4
live = Doser("192.168.1.50", on_dose=print) # stay connected, reconnect by itself
live.start()
await asyncio.sleep(3600)
await live.stop()
asyncio.run(main())
⚠️ Known limitation of the pump: scheduled doses are not reported
This is a behaviour of the pump firmware, not of this library. When a dose runs from the pump's own schedule (the one set in the Jebao app), the pump sends no message at all: nothing on the LAN connection and nothing to the Gizwits cloud (verified with packet captures of both, Jebao DOSER 3.4, firmware 04X3000R). Manual doses (app, buttons on the pump, this library) are reported immediately.
So if you need to know that every dose ran, do not rely on the pump's schedule: schedule the doses yourself with Doser.dose() / dose_ml() (from cron, a script or Home Assistant). The pump then confirms every dose. Clear the pump's own schedule to avoid double dosing (Doser.clear_schedule(head) or jebao-doser clear-schedule), or keep it as a backup. Watching the power draw of the pump's plug (about +2-3 W while a head runs) is another, less precise, way to see scheduled doses.
How it works
Jebao WiFi dosers use an ESP32 module running the Gizwits (机智云) IoT platform. Besides the cloud (MQTT), the module speaks the Gizwits LAN protocol on TCP 12416 (and UDP 12414 for discovery). The pump hands out its local passcode on request, so the IP address is all that is needed to log in. Status and schedule are a fixed binary layout described by the product's public data point schema.
Packet: 00 00 00 03 + length (varint) + flag + command (2 bytes) + payload. Commands used: 0x0006/0x0007 passcode, 0x0008/0x0009 login, 0x0013/0x0014 device info (product key), 0x0015/0x0016 heartbeat, 0x0093/0x0094 read status, 0x0091 status pushed by the device, 0x0003/0x0004 UDP discovery.
Status
Reading, dose events and manual dosing work. Writes change only the fields they name (one flag bit per data point, like the vendor app), so schedules are not touched. Note: the pump does not report scheduled doses (only manual ones, from the app, the buttons or this library); if you need to know they ran, watch the power draw of the pump's plug. Clearing a head's schedule is supported; editing schedules is not exposed yet.
Tested with a Jebao DOSER 3.4 WiFi (4 heads, firmware 04X3000R). Reports for other models are welcome: open an issue with the output of jebao-doser status <ip>.
Security
Anyone who can reach the pump on TCP 12416 can do the same: keep it on an isolated IoT network or VLAN and allow that port only from the machine that needs it.
License
MIT. Not affiliated with Jebao or Gizwits.
Metadata
Release files for jebao-doser 0.3.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 |
|---|---|---|---|---|
| jebao_doser-0.3.0.tar.gz | 21.9 kB | With provenance | Details for jebao_doser-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jebao_doser-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for jebao_doser-0.3.0-py3-none-any.whl |
Total release size: 41.6 kB
Release files / jebao_doser-0.3.0.tar.gz
| Download URL | jebao_doser-0.3.0.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
211d3f8388dc77c217dc8c43e87114eec4db4df2e698899a77dd624afb60d731
|
|
BLAKE2b-256 checksum How to use checksums |
173a9e4f64deab3c334b1d31689d11862cdb58168e8e6638534c6644c0af2402
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / jebao_doser-0.3.0-py3-none-any.whl
| Download URL | jebao_doser-0.3.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58727d075625dc5919d955922305874eeb9653bb10ec2cec0d807cf6ccae35d5
|
|
BLAKE2b-256 checksum How to use checksums |
13629d325920d35be2c57b32ba2bc413c8627a6e0f14b82a441f6fb0e074945d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logSecurity for jebao-doser 0.3.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 jebao_doser-0.3.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 Oct 18, 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.