npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-tesy-heater-mqtt

v1.0.7

Published

Tesy heater plugin for Homebridge using MQTT control (API v4). Supports on/off control and temperature adjustment.

Downloads

25

Readme

homebridge-tesy-heater-mqtt

verified-by-homebridge Test codecov npm version License: MIT

Homebridge plugin for Tesy heaters using MQTT control (Tesy API v4).

Overview

This plugin allows you to control your Tesy smart heaters through Apple HomeKit using Homebridge. It uses the latest Tesy API v4 with MQTT for real-time device control.

Features:

  • Automatic device discovery - finds all Tesy heaters in your account
  • Multi-device support - manages multiple heaters with one configuration
  • Temperature sensor correction - automatic calibration with power loss recovery
  • Turn heater on/off
  • Set target temperature
  • View current temperature
  • View heating status
  • Temperature range configuration
  • Real-time MQTT control
  • Persistent device caching

Compatibility

This plugin has been tested and confirmed working with:

  • Tesy CN 06 100 EА CLOUD AS W

It will most likely work with other Tesy CN06 series devices and possibly with other Tesy FinEco Cloud convectors that support the Tesy Cloud v4 API.

If you successfully use this plugin with other Tesy models, please let us know!

Credits

This project is based on homebridge-tesy-heater by Dobriyan Benov. The original plugin was updated to work with Tesy API v4 and MQTT control protocol.

Major changes from original:

  • Platform plugin architecture - complete rewrite from Accessory to Platform
  • Automatic device discovery - finds all Tesy heaters automatically
  • Multi-device support - manages multiple heaters with single configuration
  • Migrated from Tesy API v3 to API v4
  • Implemented MQTT control for device commands (real-time communication)
  • Added getter for HeatingThresholdTemperature characteristic
  • Comprehensive unit tests with 44% code coverage

Installation

Option 1: Install from npm (recommended)

npm install -g homebridge-tesy-heater-mqtt

Option 2: Install from GitHub

npm install -g https://github.com/svjakrm/homebridge-tesy-heater-mqtt.git

Option 3: Manual installation

git clone https://github.com/svjakrm/homebridge-tesy-heater-mqtt.git
cd homebridge-tesy-heater-mqtt
npm install -g .

Configuration

Add this platform to your Homebridge config.json:

{
  "platforms": [
    {
      "platform": "TesyHeater",
      "name": "TesyHeater",
      "userid": "YOUR_USER_ID",
      "username": "[email protected]",
      "password": "your_password",
      "maxTemp": 30,
      "minTemp": 10,
      "pullInterval": 60000
    }
  ]
}

Note: The plugin will automatically discover all Tesy heaters linked to your account. No need to specify device IDs!

Configuration Parameters

| Parameter | Required | Description | Default | |-----------|----------|-------------|---------| | platform | Yes | Must be TesyHeater | - | | name | Yes | Platform name | TesyHeater | | userid | Yes | Your Tesy account user ID | - | | username | Yes | Your Tesy account email | - | | password | Yes | Your Tesy account password | - | | maxTemp | No | Maximum temperature (°C) | 30 | | minTemp | No | Minimum temperature (°C) | 10 | | pullInterval | No | Status update interval (ms) | 60000 | | tempCorrection | No | Temperature sensor correction (°C, -4 to +4) | 0 |

Temperature Correction

The plugin supports automatic temperature sensor correction (calibration). This is useful when your device's temperature sensor reads consistently higher or lower than the actual room temperature.

How it works:

  • Configure the correction offset in °C (integer from -4 to +4)
  • Plugin automatically applies correction when device is discovered
  • Plugin monitors device and restores correction after power loss
  • Correction is checked every status update interval (default: 60 seconds)

Example: If your heater shows 22°C but actual room temperature is 20°C, add this to your config:

"tempCorrection": -2

The device will adjust its readings by -2°C internally.

Note: Leave at 0 (default) or omit the field if your sensor is accurate. Valid range is -4 to +4 (integers only).

How to Get Configuration Values

Get your credentials (userid, username, password):

  • These are your Tesy Cloud account credentials
  • userid can be found in the Tesy Cloud web interface or via API
  • username is your email used to log in to Tesy Cloud
  • password is your Tesy Cloud password

To find your User ID:

  1. Log in to Tesy Cloud in your browser
  2. Open Developer Tools:
    • Chrome/Edge: Press F12 or right-click → Inspect
    • Firefox: Press F12 or right-click → Inspect Element
    • Safari: First enable developer menu in Safari → Settings → Advanced → check "Show features for web developers", then press Cmd+Option+I
  3. Go to the Network tab
  4. Refresh the page (Cmd+R or F5)
  5. Find a request named get-my-devices or get-my-messages in the list
  6. Click on it and look for the Payload, Headers, or Request tab
  7. Find the userID parameter - this is your User ID

Example:

GET https://ad.mytesy.com/rest/get-my-devices?userID=11111&userEmail=...

Your userID in this example is 11111.

That's it! The plugin will automatically discover all devices in your account.

Technical Details

How it Works

  1. Device Discovery: Fetches all devices from Tesy API v4 (/rest/get-my-devices) on startup
  2. Status Updates: Polls device status periodically (default: 60 seconds)
  3. Device Control: Single MQTT connection (wss://mqtt.tesy.com:8083) shared by all devices
  4. MQTT Topics: v1/{MAC}/request/{MODEL}/{TOKEN}/{COMMAND}
  5. Commands: onOff (power), setTemp (temperature), setMode (heating mode)
  6. Caching: Devices persist across Homebridge restarts

MQTT Protocol

The plugin automatically:

  • Connects to Tesy MQTT broker using shared credentials
  • Retrieves device-specific token and model from API
  • Publishes commands to device-specific MQTT topics
  • Subscribes to response topics for acknowledgments

Troubleshooting

Device not responding to commands

  • Check that your device is online in Tesy Cloud app
  • Verify your credentials are correct
  • Check Homebridge logs for MQTT connection errors

Temperature slider not showing in Home app

  • Make sure you're running the latest version of this plugin
  • Restart Homebridge after updating configuration
  • Remove and re-add the accessory in Home app if needed

HomeKit shows "No Response"

  • Check your internet connection
  • Verify Homebridge is running
  • Check if device is online in Tesy Cloud

Development

Testing MQTT Commands

Test scripts are included in the repository:

# Test connection and monitor messages
node test-mqtt.js

# Test on/off control
node test-mqtt-control.js

# Test temperature setting
node test-mqtt-temp.js

Unit Tests

The plugin includes unit tests for core functionality:

# Run tests
npm test

# Run tests with coverage report
npm run test:coverage

Tests cover:

  • MQTT connection and initialization
  • Command formatting and sending
  • Device control (on/off, temperature)
  • Error handling
  • Configuration validation

Support

If you find this plugin useful, consider supporting:

Revolut

License

MIT License

Original work Copyright (c) 2021 Dobriyan Benov Modified work Copyright (c) 2025 Aleksey Molchanov

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 USE OR OTHER DEALINGS IN THE SOFTWARE.

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

Links