iobroker.heishamon
v0.0.7
Published
ioBroker adapter for Panasonic Aquarea heat pumps. Talks the CN-CNT protocol directly over a serial line (RS232 levels at the heat pump; optional RS232/RS485 converter for long cable runs) — no HeishaMon/MQTT hop required.
Readme
ioBroker.heishamon
ioBroker adapter that talks the Panasonic Aquarea CN-CNT protocol directly over a serial line, without any HeishaMon module or MQTT broker in between. The heat pump's CN-CNT connector uses 5V TTL UART logic levels. A suitable level shifter is required when connecting it to a 3.3V UART, such as the Raspberry Pi GPIO UART. For long cable runs, an optional TTL/RS485 converter can be added because the protocol is half-duplex. Protocol decoding is based on insights from the HeishaMon project.
Status: Early release. Protocol library, simulator and adapter logic are complete in-process; field testing against a real heat pump is the next step.
Installation
In the ioBroker admin UI: Adapters → install from custom URL (or, once published, from the official ioBroker repository) → ioBroker.heishamon.
For detailed wiring and OS-level instructions (serial permissions, RS232 wiring, RS485 converter), see INSTALL.md.
Configuration
| Setting | Default | Description |
|---|---|---|
| device | /dev/ttyUSB0 | Path to the serial device the adapter opens. Must be readable by the ioBroker process. |
| baudRate | 9600 | Panasonic Aquarea uses 9600 8E1 — do not change unless you use a custom transceiver. |
| pollIntervalSec | 5 | How often the adapter polls the heat pump (seconds). |
| extraPollEnabled | true | Polls the additional energy data block (K/L series). Harmless on older models. |
| readOnlyMode | false | Passive listening only: do not send any polls or set commands, only decode frames from another master on the bus. |
Features
- Direct serial communication with Panasonic Aquarea heat pumps over the CN-CNT port. No HeishaMon hardware or MQTT broker required.
- 157 datapoints exposed as ioBroker states with proper roles, types and units.
- Set commands for all writable parameters supported by the CN-CNT protocol.
- Read-only mode for safe parallel operation alongside an existing HeishaMon installation (Phase-4 cut-over).
- Connection-quality statistics (frames in/out, CRC errors, timeouts) under the
info.*channel. - Optional extra data block for K/L series heat pumps (6 extra energy datapoints).
Hardware
- ioBroker host with a serial interface, such as a Raspberry Pi UART, USB-TTL UART adapter, or USB-RS485 adapter with a suitable converter.
- Logic-level shifter is required when connecting a 3.3V UART, such as the Raspberry Pi UART, directly to the heat pump's 5V TTL UART pins.
- Use a 5V-compatible USB-TTL UART adapter if connecting via USB directly.
- For long cable runs, place a TTL/RS485 converter near the heat pump or host and use shielded twisted pair cable.
Documentation
Project documentation lives under docs/:
- docs/plan/ — phase plan and roadmap.
- docs/protocol/ — CN-CNT protocol analysis.
- docs/decisions/ — architecture decision records.
Credits
Protocol decoding builds on the work of the HeishaMon community. The CN-CNT register map and many implementation hints originate there. This adapter is a clean-room TypeScript reimplementation; see vendor/heishamon-upstream/LICENSE-NOTE.md for details.
Changelog
0.0.5 (2026-05-30)
- (Tobias Hanss) Wire-queue gap is now enforced between every pair of sends, including across idle periods (previously the gap only applied while multiple tasks were already stacked in the queue — so polls and isolated sets bypassed it entirely)
- (Tobias Hanss) Queue is hard-capped at 100 pending entries; overflows are logged at warn level and the dropped send is skipped instead of silently piling up
0.0.4 (2026-05-30)
- (Tobias Hanss) Diagnostic logging for the wire queue (effective minSendGapMs on startup, debug entries for every poll/set enqueue and send with wait time and pending queue size)
0.0.3 (2026-05-26)
- (Tobias Hanss) Serialize all wire writes through a FIFO queue with a configurable inter-frame gap (default 200 ms). Fixes lost set commands when a script writes several datapoints at once
- (Tobias Hanss) Pump_Duty / Max_Pump_Duty unit removed (raw value 65-254, no physical unit)
0.0.2 (2026-05-25)
- (Tobias Hanss) Lower Node.js engine requirement to >= 20 (was 22) so the adapter installs on current ioBroker LTS hosts
0.0.1 (2026-05-25)
- (Tobias Hanss) Initial adapter release
License
MIT License
Copyright (c) 2026 Tobias Hanss [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE DEALINGS IN THE SOFTWARE.
