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-defro

v1.0.2

Published

Defro heatpump homebridge integration

Readme

Homebridge Defro heatpump integration


This is a plugin which integrates defro DHP Premium heatpump (or basically anything which uses Tech ST-5306 driver). It uses REST API communication with emodul.eu. Pooling set as a default: 1minute. Multiple languages available - as many as tech rest api offers. This plugin adds roughly >60 accessories. Not all of them might be needed for you so you're free to remove some of them from your dashboard after installation.

Defro ST-5306

This is how it looks like in Homebridge

Homebridge defro screen

[!IMPORTANT] As we all know the majority of Tech drivers have problems with network outages from time to time. If you notice some values are out of sync - it's a problem with driver itself (or connection issue between your local ST-5306 and internet)

How it works

In general the plugin re-authenticate every 30min to keep session active. Every single 1 minute there's a call triggered to get most recent data. Accessories which are created are divided into 2 separate groups:

  1. Sensors - only indicate if something is working or what's the temperature on specific sensor.
    • ContactSensor - to show true/false values
    • ContactSensor + condition - same as above but since it's not possible to show specific values on accessories, it's used to show status under a condition, like for example: Fan rate - we can't show exact number but we can show that it's currently working (as long as condition is met -> in this case RPM > 0)
    • TemperatureSensor - self describing
  2. Controls - allows to interact with a device
    • Switch - simple on/off switch for everything which can be manually enabled/disabled
    • Switch (multi) - this is a group of switches for a single element, for example: Type of central heating temperature - this can be either static value, schedule or heating curve. This plugin will create 3 simple switches for that one to allow setting all the options.
    • Thermostat - used for cooling, central heating and utility water heating, please read more about it below

More about thermostats

What is important is that an utility water thermostat ignores target temperature setting. This is because homekit has a limit of max value for temperature which is 38celcius. For utility water it's too low so to avoid messing up with heating pump -> we ignore target temperature. It's still very useful though to enable/disable utility water heating to a certain value set directly on a driver (based on schedule or static value). It can still be very usefull to work alongside with PV plugins to set the mode to "static" when there's high energy production.

Another important thing is that thermostat accessory in general is not 1:1 compatibile with what we have in Defro heating pump configuration / or ST-5306 driver to be more precise. Please keep in mind this:

  • For Central heating:

  • Changes mode by changing type of Central heating temperature set
  • 0 (Off) -> defaultCentralHeatingMode config setting
  • 1 (Heat) -> static temperature
  • 2 (Cool) -> defaultCentralHeatingMode config setting
  • 3 (AUTO) -> defaultCentralHeatingMode config setting

  • For Utility water heating:

  • Changes mode by changing type of CO temperature set
  • 0 (Off) -> defaultUtilityWaterHeatingMode config setting
  • 1 (Heat) -> static temperature
  • 2 (Cool) -> defaultUtilityWaterHeatingMode config setting
  • 3 (AUTO) -> defaultUtilityWaterHeatingMode config setting

So in general if you change the mode to heat it will force heating (of course if your selected target temperature is higher than current temperature)

Install

sudo npm install -g homebridge-defro

Sample configuration

{
...
    "platforms": [
        {
            "name": "homebridge-defro",
            "platform": "HomebridgeDefro",
            "apiUrl": "https://emodul.eu/api/v1/",
            "login": "###USER_LOGIN###",
            "password": "###USER_PASSWORD###",
            "language": "en",
            "defaultCentralHeatingMode": 2,
            "defaultUtilityWaterHeatingMode": 1,
            "_bridge": {
                "username": "0E:34:1D:26:DB:34",
                "port": 38779
            }
        }
    ]
}